Bug 1021715

Summary: lvm tools should accept vg uuid as a substitute for name when duplicates are present
Product: [Fedora] Fedora Reporter: David Lehman <dlehman>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-22 07:03:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Lehman 2013-10-21 21:31:01 UTC
Description of problem:
During OS installation it is alarmingly common to find multiple VGs with the same name -- often, some of these VGs are also incomplete. Managing this in the context of trying to lay down a sane storage configuration for a new OS installation is impossible when the only way to specify a VG is by name.

Version-Release number of selected component (if applicable):
lvm2-2.02.99

How reproducible:
always

Steps to Reproduce:
1. install system with LVM autopart on system with 2 HDDs
2. install system again with LVM autopart but only with one of those HDD available
3. boot the system with both HDDs present and try to specify which of the two identically-named VGs you want lvm to act on.

Actual results:
problems due to there being no way to differentiate the duplicate VGs when running LVM commands

Expected results:
A way to specify a VG in a way that can reasonably be expected to be unique.

Additional info:
For now, it would suffice to add this ability to lvs, vgchange, and vgremove.

Comment 1 Zdenek Kabelac 2013-10-22 07:03:47 UTC
Yes - we have long term outstanding RFE Bug #449832.

If during the installation process various disks are present to the lvm2 tools - it's probably the best to add some salt to vgname created by installer then,
since no validation could prevent in duplicate name creation.

But anyway specifically in this case the only tool which is designed and does fully work with UUIDs is the vgrename tool  i.e.:

vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 VolGroup00_tmp

*** This bug has been marked as a duplicate of bug 449832 ***