How to extend/merge Volumegroup

General support questions
Post Reply
himu73
Posts: 1
Joined: 2015/08/04 10:41:46

How to extend/merge Volumegroup

Post by himu73 » 2015/08/04 10:46:00

I have following configuration in my CentOS.

Code: Select all

[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  2.1G   45G   5% /
tmpfs                 7.8G   12K  7.8G   1% /dev/shm
/dev/sda2             477M   67M  385M  15% /boot
/dev/sda1             200M  260K  200M   1% /boot/efi
/dev/mapper/VolGroup-lv_home
                      860G   72M  816G   1% /home
I want to extend my /dev/mapper/VolGroup-lv_root with /dev/mapper/VolGroup-lv_home. How can I do that? Can I merge both of them in /dev/mapper/VolGroup-lv_root?

Thanks.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: How to extend/merge Volumegroup

Post by gerald_clark » 2015/08/04 12:24:44

You would have to boot in rescue mode, copy the /home filesystem into /home on the / filesystem,
unmount, deactivate and remove the home lvs, extend the root lvs and extend the root filesystem.

If you are just getting started, just reinstall with the desired layout. It would be much easier.

Post Reply