Centos7 如何减少/home分区,扩大/root分区

2024-10-15 21:04:53

1、查看分区接口,输入df命令可以查看/home

Centos7 如何减少/home分区,扩大/root分区

3、删除/home挂载设置之后,可以取消/home的暂时使用

Centos7 如何减少/home分区,扩大/root分区

5、取消挂载/home ,umount /home输入之后取消/home挂载。

Centos7 如何减少/home分区,扩大/root分区

7、卸载/home的lv分区之后,再次使用lvscan查询确认。

Centos7 如何减少/home分区,扩大/root分区

9、将刚删除的/home分区的容量,扩容到/root分区,使用lvextend命令如图

Centos7 如何减少/home分区,扩大/root分区
猜你喜欢