Monthly Archives: January 2017

Extend Logical Volume size on RHEL/CentOS

Scenario: Extend/Growing Logical Volume size for /opt on RHEL/CentOS.
System: CentOS/RHEL 6/7

Login as root then follow below steps:
1) Check free size in Volume Group (vgs). If still there free size then continue to step-2.
# vgs

[root@VTEST01 ~]# vgs
 VG #PV #LV #SN Attr VSize VFree
 VolGroup 2 7 0 wz--n- 59.50g 12.00g
[root@VIDHOLXDTESTAP01 ~]#

Continue reading

Added New VMware Disk and Mount to new Directory on CentOS 6

Scenario:
Added new 10GB VMware Hard Disk,create new Volume Group(Vgs),Create new LVM,format to ext4 and mount to /data

Steps in VMware vSphere:
– Right click on VM -> Select Edit Settings… -> Click Add... -> on Device Type select Hard Disk -> Click Next
– Select Create a new virtual disk -> Click Next
– Specify disk size (this scenario is 10GB), select default Thick Provision Lazy Zeroed then specify the disk location (default is Store with virtual machine) -> Click Next
– Specify Virtual Device Node (default for 2nd Hard disk will be SCSI (0:1), on Mode box leave blank -> Click Next
– Click Finish.
Continue reading