1832330 Members
3191 Online
110041 Solutions
New Discussion

Merge Volume Groups

 
Ragni Singh
Super Advisor

Merge Volume Groups

Hi all, I have a /dev/vg01 which is pretty much full now. I have another voluem group dev/vg02 which is pretty empty. How can I merge vg02 inot vg01 to make vg01 bigger. Any help is greatly appreciated and points will be assigned.
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Merge Volume Groups

Hi,

There is no merge command between two Volume groups. You could move a few filesystems from one VG to the other, or move the disks from vg01 to vg00.

Robert-Jan
Patrick Wallek
Honored Contributor

Re: Merge Volume Groups

The only thing you can really do is vgreduce some unused disks out of VG02 and vgextend them into VG01 so you can then extend your LV's.

The only other way is to backup VG02 data, vgexport VG02, vgextend the disks from VG02 into VG01, create the LVs that were in VG02 in VG01, restore the data, extend your VG01 LVs if necessary.
Peter Godron
Honored Contributor

Re: Merge Volume Groups

Sanjit,
with the use of SAM this should be a few minutes job. Remove the unused disk out of vg02 and add it to vg01.
To get it to work all use of the disks must be suspended during the operation.
Regards
Steve Lewis
Honored Contributor

Re: Merge Volume Groups

The problem you need to be aware of is the maximum PE per PV. If your disks in vg02 are twice as big as any in vg01, when you go to add them it may say that only x out of y physical extents can be used.
So check your PE and MAX PE per PV values in both volume groups to ensure that you will be able to use all of the space before you start.