0
点赞
收藏
分享

微信扫一扫

linux 分配磁盘空间

Mezereon 2023-02-14 阅读 81


umount卸载
umount /dev/mapper/centos-home

删除home
lvremove /dev/centos/home

重新调整root的大小
lvextend -L 90G /dev/centos/root

xfs_growfs刷新root
xfs_growfs /dev/mapper/centos-root

将剩下的空间重新划分到home中
lvcreate -l+100%free -n home centos

格式化home
mkfs.xfs /dev/centos/home

重新挂载mount home
mount /dev/mapper/centos-home

举报

相关推荐

0 条评论