把/home內容備份,然後將/home文件系統所在的邏輯卷刪除,擴大/root文件系統,新建/home ,恢復/home內容
df -h
tar cvf /tmp/home.tar /home
fuser -km /home/umount /home
lvremove /dev/mapper/centos-home
lvextend -L +800G /dev/mapper/centos-root
xfs_growfs /dev/mapper/centos-root
lvcreate -L 73G -n /dev/mapper/centos-home
mkfs.xfs /dev/mapper/centos-home
mount /dev/mapper/centos-home
tar xvf /tmp/home.tar -C /home/cd /home/home/mv * ../
http://xxxxxx/Linuxjc/1156008.html TechArticle