[Bug 207470] Need ability to handle duplicate VG names for Xen

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 10 16:08:01 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=207470

Peter Rajnoha <prajnoha at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |prajnoha at redhat.com

--- Comment #25 from Peter Rajnoha <prajnoha at redhat.com> 2011-11-10 11:07:55 EST ---
LVM device filtering could be used here to make use of some problematic
devices, using the "--config" option for LVM2 commands, like:

  --config 'devices { filter = [ "r|/dev/sda|...|" ] }'

..where you can give the list of devices which should be filtered out (devices
used as PVs where a duplicate VG is). Then you can manage the problematic
VG/LV. However, you can't rely on activation to work since you could already
have the duplicate VG activated of course (we would need to do something like
Dave suggested already in comment #12, however, I think this is a no-go for
now).

As for supporting the --force option to allow renaming to a duplicate name as
mentioned in comment #9 - we could probably add support for this... But it's
really not very nice.

As for using the libguestfs to access the contents of the image (as mentioned
in comment #21), this seems to be the most elegant solution I think (together
with defining a filter directly in /etc/lvm/lvm.conf to exclude all LVM devices
used as guest images so any LVM setup inside won't interfere with the host LVM
setup). However, we need to take into account that libguestfs runs a new VM
instance with it's own minimalistic kernel/rootfs and the image we need to
access added.

I think we could go with the filters set + libguestfs for now. Would that be
satisfactory?

(Just a note, that there's also an RFE filed for using UUID on input of other
LVM2 commands: bug #449832)

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the triage mailing list