Label: Adjust centos partition sizecentos
Second, the steps
fuser -m -v -i -k /home
cp -r /home/ homebak/
umount /home
4. Delete the lv where /home is located
lvremove /dev/mapper/centos-home
lvextend -L +100G /dev/mapper/centos-root
6. Extended/root file system
xfs_growfs /dev/mapper/centos-root
lvcreate -L 40G -n home centos
8. Create a file system
mkfs.xfs /dev/centos/home
mount /dev/centos/home /home
Restore /home related files and corresponding directory permissions
result:
Three, attach a screenshot of the operation
Recommended Posts