官方提供的机器/root分区50G,/home分区395G,但是客户就是喜欢所有的磁盘都挂载到/root下,所以需要调整下LV分区大小。参考了这个:http://www.linuxidc.com/Linux/2017-03/141301.htm。
1、卸载/home分区
[root@localhost /]# umount /home/
2、删除 /dev/mapper/centos-home
[root@localhost /]# lvremove /dev/mapper/centos-home
Do you really want to remove active logical volume home? [y/n]: y
Logical volume “home” successfully removed
3、扩容/dev/mapper/centos-root分区,加大390G。
[root@localhost /]# lvextend -L +390G /dev/mapper/centos-root
Insufficient free space: 101120 extents needed, but only 100962 available