[linux-lvm] merge two lvms on same VG

tariq wali ganaiwali at gmail.com
Mon Sep 10 11:29:45 UTC 2012


thanks for the reply , but wouldn't that merge LV's from two different
volume groups and for some weird requirement I wanted to merge LV's from
the same VG , say

merge /dev/vg0/data and /dev/vg0/data1 into a  merged volume without any
data loss .

On Mon, Sep 10, 2012 at 4:02 PM, Fran Garcia <franchu.garcia at gmail.com>wrote:

> On Wed, Sep 5, 2012 at 1:16 PM, tariq wali <ganaiwali at 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 at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>



-- 
*Tariq Wali.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20120910/2521475b/attachment.htm>


More information about the linux-lvm mailing list