CentOS:ResizeLVM
lastmod 2018-08-17created 2016-06-116 edits
How to resize the /home directory that is set up by default in a CentOS7 minimal installation.
How to
The following assumes you are logged in with administrator privileges.
## Unmount the centos-home partition.
$ umount /home/
## Next show the logical volumes.
$ lvdisplay
## Now remove the logical volume for centos-home.
$ lvremove /dev/centos/home
## You should now have the free space available in VFree when you have a look using vgs.
$ vgs
## Now resize the centos-root partition.
$ lvextend --size +22.13GB -r /dev/mapper/centos-root
## Confirm your new partition size.
$ lsblk
## Remove the centos-home mount from fstab so that the system does not try to mount it at startup
$ sed -i '/centos-home/d' /etc/fstab
See also
Favorite site
References
-
Resizing_partitions_in_Centos7_-_Tips_and_Tricks_from_a_Mac_Admin.pdf ↩