Tag Archives: decrease lv size centos 6

Decrease Logical Volume size in CentOS 6

Scenario: Decrease Logical Volume /home to 1GB size in CentOS/RHEL 6
System: CentOS/RHEL 6

– Check the drive and LV Path:

[root@centos6 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolumeGroup-lv_root 9.9G 1.8G 7.6G 20% /
tmpfs 931M 0 931M 0% /dev/shm
/dev/sda1 485M 39M 421M 9% /boot
/dev/mapper/VolumeGroup-lv_home 2.5G 68M 2.3G 3% /home
/dev/mapper/VolumeGroup-lv_opt 2.5G 68M 2.3G 3% /opt
/dev/mapper/VolumeGroup-lv_var 9.9G 199M 9.2G 3% /var
[root@centos6 ~]# lvdisplay | grep Path
 LV Path /dev/VolumeGroup/lv_root
 LV Path /dev/VolumeGroup/lv_swap
 LV Path /dev/VolumeGroup/lv_var
 LV Path /dev/VolumeGroup/lv_opt
 LV Path /dev/VolumeGroup/lv_home
[root@centos6 ~]# vgs
 VG #PV #LV #SN Attr VSize VFree
 VolumeGroup 1 5 0 wz--n- 39.51g 10.51g
[root@centos6 ~]#

got the logical volume home path is /dev/VolumeGroup/lv_home with 2.5GB size.
Continue reading