Reduce Logical Volume Size on Debian
Reduce Logical Volume Size on Debian/CentOS/RedHat
Reduce the logical volume size is not a good practice in terms of data therefore if you want to reduce the logical volume size must take the backup of data. Here we are reducing the size of logical volume "home" in Debian 9.8, you can also use this process on CentOS and RedHat.
To Check the complete details of Debian version, type the below mention command.
To check how many users available in home directory first use command "cd" to enter in the directory "home" then use command "ls" to list the available users in directory "home".
umount -v /home
e2fsck -ff /dev/NEWLVMGROUP/home
Here we are reducing size of logical volume "home" from 4.6GB to 3GB.
First resize logical volume "home", type the below mention command.
resize2fs /dev/NEWLVMGROUP/home 3G
lvreduce -L -1.66G /dev/NEWLVMGROUP/home
mount /dev/NEWLVMGROUP/home /home