Below is a "cleaned up" version of the posting from Nov 2007 to clone a volume group.
Did I correctly interpret the instructions/text??
From: Alasdair G Kergon <agk redhat com>
To: LVM general discussion and development <linux-lvm redhat com> Subject: Re: Steps to "clone" a volume group Date: Thu, 22 Nov 2007 16:05:40 +0000 --------------------------------------------------------------------------------
> 1. For each original PV, create a filter entry in /etc/lvm/lvm.conf to > temporarily mask the PV from the LVM tools. > 2. Create a temporary alternative lvm system directory holding > a copy of lvm.conf that has filters to accept only > the new copies of the PVs and set LVM_SYSTEM_DIR to use it. > 3. Create the cloned PV(s)
> 4. Modify the cloned volume group name, ID and physical volume IDs to
> avoid name and UUID clashes between the original and cloned devices: (with LVM_SYSTEM_DIR set)
> 5. Remove filtering rules & verify both VGs co-exist correctly > 6. discard LVM_SYSTEM_DIR env var & directory
--- On Fri, 12/5/08, Alasdair G Kergon <agk@redhat.com> wrote: From: Alasdair G Kergon <agk@redhat.com> |
_______________________________________________ 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/