Re: merge two lvms on same VG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 5, 2012 at 1:16 PM, tariq wali <ganaiwali@gmail.com> wrote:
> Hi, I had a situation to combine two LVM's on the same VG , other than
> wiping the existing ones and recreating a new one is there a way to merge
> the two on same VG ?

vgmerge.  You need to have the source VG with all your LVs inactive
and the PE size must be the same in both VGs.


Basically this would be:

lvchange -a n /dev/vg02/lv01
lvchange -a n /dev/vg02/lv02
lvchange -a n /dev/vg02/lv03
...
vgmerge vg01 vg02
vgchange -ay


this would put all the LVs from vg02 into the vg01 VG.

HTH

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux