Remove home partition and add to root partition

  1. Unmount home partiton with: ]# umount /home
  2. Show logical volumes and look for the home volume with: ]# lvdisplay
  --- Logical volume ---   
LV Path /dev/centos/home
LV Name home
VG Name centos

3. Remove the home volume with: ]# lvremove /dev/myhost/home This will not work on RockyLinux for RockyLinux you need to:

#] umount /dev/rl/home
#] lvchange -an -v /dev/rl/home
#] lvremove -vf /dev/rl/home
#] lvextend -l +100%FREE -r /dev/mapper/rl-root

4. Verify free space with: ]# vgs

5. Identify root location with ]# df -h

Filesystem              1K-blocks     Used Available Use% Mounted on
/dev/mapper/centos-root 410094592 27746888 382347704 7% /

6. Resize root partition to use freed space with: ]# lvextend -l +100%FREE -r /dev/mapper/centos-root

7. Remove line with home directory (comment out with #) from /etc/fstab the line that needs to be Remmed out is:
/dev/mapper/rl-home /home xfs defaults 0 0
Add # to front of line so it looks like this:
#/dev/mapper/rl-home /home xfs defaults 0 0

8. Reboot