Adjust the home partition in Centos 7 to expand the root partition.
Back up/home content, delete the logical volume of the/home file system, expand/root file system, create/home, and restore/home content
1. View partitions
df -h
2. Back up the home partition File
tar cvf /tmp/home.tar /home
3. Uninstall/home. If uninstallation fails, terminate the process of using the/home file system.
fuser -km /home/umount /home
4. Delete the lv of/home
lvremove /dev/mapper/centos-home
5. Increase the lv of the extended/root instance by 800 GB.
lvextend -L +800G /dev/mapper/centos-root
6. Extended/root file system
xfs_growfs /dev/mapper/centos-root
7. Recreate home lv
lvcreate -L 73G -n /dev/mapper/centos-home
8. Create a File System
mkfs.xfs /dev/mapper/centos-home
9. Mount home
mount /dev/mapper/centos-home
10. Restore the home file
tar xvf /tmp/home.tar -C /home/cd /home/home/mv * ../