How to Reduce LVM (Logical Volume Management) in CentOS/Rhel 7.x
Prerequisites : https://www.natsav.com/blog/2017/01/09/configure-lvm-logical-volume-management-disc-management-on-centosrhel-7-x/
Now we reduce Logical Volume as follow :
Now check the Logical Volume
#lvs
First we need to unmount the mount point :
#umount /lvm
Check for the file-system error using following command
#e2fsck -ff /dev/myvol/lv1
Reduce the Logical volume using following command :
#lvreduce -L -1G /dev/myvol/lv1
Now reduce the file-system using following command :
#resize2fs /dev/myvol/lv1
Mount the file-system as same directory :
#mount /dev/myvol/lv1 /lvm
check size of the Logical Volume :
#lvdisplay /dev/myvol/lv1