Files
Knowledge/1 使用/Linux/麒麟系统逻辑分区调整.md

21 lines
619 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
硬盘大小120G,安装系统时选择了自动分区,结果进系统后发现有个/backup挂载点占了40G的空间,于是准备把这个挂载点删除,把空出来的40G分给根。
开始操作
1、查看[逻辑卷](https://so.csdn.net/so/search?q=%E9%80%BB%E8%BE%91%E5%8D%B7&spm=1001.2101.3001.7020)
> lvdisplay
2、删除挂载到/backup的逻辑卷
> lvremovo /dev/mapper/klas-backup
 3、把空闲出来的存储空间加到/下
> lvextend -L +40G /dev/mapper/klas-root
4、执行调整,使之生效
> xfs_growfs /
注意最后一步xfs_growfs后面跟的是挂载点,不是设备名。