centos7将/home的磁盘空间转移到/root

umount /dev/centos/home
lvremove /dev/centos/home
lvextend -l +100%FREE /dev/centos/root
xfs_growfs /dev/centos/root
sed -i '/^/dev/mapper/centos-home/d' /etc/fstab

标签: centos7将/home的磁盘空间转移到/root

添加新评论