centos7下修改LVM分区大小(将home分区增加到根分区)

centos7的虚拟机分配硬盘200G,安装系统时候按照默认分区,根分区只有50G,home分区有146G,因为平时用不到单独的home分区,所以考虑将home分区划到跟分区中。
初始的分区情况
centos1.jpg
操作命令
[root@centos /]# umount /home/
[root@centos /]# lvremove /dev/mapper/centos-home
Do you really want to remove active logical volume centos/home? [y/n]: y
Logical volume "home" successfully removed
[root@centos /]# lvextend -l +100%free /dev/mapper/centos-root
最终效果
centos2.jpg

tag(s): centos
show comments · back · home
Edit with markdown