Sometimes, for security audit purposes it might be required to find files with specific permissions. find command comes handy to achieve this kind of requirements. The post describes few examples of find command used to find files with specific sets of permissions. Before we dive into the examples, here are few basics on the permission […]
Archives for November 2016
CentOS / RHEL 6 : How to Change the Volume Group Name for Root Disk Device
The post describes the renaming of the volume group (vg) being used for the root file system. For example purpose we will be renaming the disk group from vg_old to vg_new. Steps 1. Rename the Volume Group from vg_old to vg_new : # vgs VG #PV #LV #SN Attr VSize VFree vg_old 1 2 0 […]
CentOS / RHEL : How to remove a mirror with mdadm
The post describes the procedure to remove the mirror with mdadm. The example used here has RAID1 created with devices /dev/sdb and /dev/sdc. We are going to remove the device /dev/sdb. To start with lest create the RAID1 mirror first. Steps 1. Create a raid1 device with the disks /dev/sdb and /dv/sdc : # mdadm […]