1 查看磁盘空间情况
2 备份后卸载/home分区
umount /home/
3 删除/home所在的lv
lvremove /dev/mapper/centos-home
#yes
4 扩容/dev/mapper/centos-root分区
lvextend -L +100G /dev/mapper/centos-root
5 扩展/root文件系统
xfs_growfs /dev/mapper/centos-root
6 重新创建home lv磁盘
lvcreate -L 1G -n /dev/mapper/centos-home
7 创建文件系统,
mkfs.xfs /dev/mapper/centos-home
8 挂载/home
mount /dev/mapper/centos-home