First check what filesystem are you using on you /home
logical volume (for example with lsblk -f
. It it is XFS (which is default in CentOS) then there's nothing you can do, because XFS currently doesn't support shrinking. If you are using Ext4 (or other shrinkable filesystem), you can shrink your /home
with
lvresize -L-50G --resizefs centos/home
(this will reduce size of your /home
by 50 GB)
and then grow your root logical volume with
lvresize -L+50G --resizefs centos/root
Depending on the filesystem you are using you might need to do this from a LiveCD environment because resizing of mounted filesystems isn't usually fully supported (ext4 supports online growing but not shrinking for example).
As with all storage related operations, making a backup first is strongly recommended.
I see you are currently using only 356 MB from your /home
so if it is XFS, you should be able to backup the data, remove the /home
logical volume with lvremove centos/home
and create new smaller logical volume and then grow the root logical volume. Or reformat the /home
LV to ext4 and resize it. In both cases you'll need to update /etc/fstab
because the /home
LV is most likely referenced there by UUID.
You could also try converting the filesystem with fstransform. I have no experience with this tool and with /home
being basically unused in your case, reformatting or recreating the LV will probably be easier and safer.