xfs分区格式调整分区大小

调整前备份:

mkdir /tmp/home
cp -r /home/* /tmp/home/

umount /home

卸载时报错有占用
fuser -m -v -i -k /home

解除占用
umount /home
lvremove /dev/cl/home
lvextend -L 3.5T /dev/cl/root
xfs_growfs /dev/mapper/cl-root
lvcreate -l +100%FREE -n home cl
mkfs.xfs /dev/cl/home
mount /dev/cl/home /home/

调整结束,恢复备份

df -h
cp -rf /tmp/home/* /home/

 

 

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2021-08-01
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-08-14
  • 2021-04-09
  • 2021-11-18
  • 2021-08-28
  • 2021-09-06
相关资源
相似解决方案