Bug 1516035
| Summary: | misleading suggestion from `lvchange` when trying to activate a duplicated logical volume. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Federico Sun <fsun> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Activating existing Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | low | ||
| Priority: | unspecified | CC: | agk, fsun, heinzm, jbrassow, msnitzer, prajnoha, zkabelac |
| Version: | 7.4 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-15 07:31:24 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
Federico Sun
2017-11-21 21:10:06 UTC
This is also discussed in bug 1378829. Replacing VG name with --select vg_uuid=<uuid> requires that we create a new reserved symbol+word that the user would need to type in place of the VG name, e.g. a special VG name of "#UUID" could mean that the VG is specified by --select vg_uuid="123". This is a somewhat confusing and inconsistent use of the --select option, because in this case vg_uuid is the only field that's allowed after --select, and it must match only one VG. IOW, it's not the normal --select behavior at all. --select is just being used as a vehicle for passing the uuid. Say that two VGs have the name "foo". The first has uuid 123-456-789 and the second has uuid abc-def-ghi. lvchange -ay foo/test Error: duplicate VG name foo, specify VG with --select vg_uuid. lvchange -ay --select vg_uuid=123-456-789 #UUID/test Or in the case of vgrename, vgrename foo bar Error: duplicate VG name foo, specify VG with --select vg_uuid. vgrename --select vg_uuid=123-456-789 #UUID bar This seems awkward to use, in addition to being inconsistent with normal --select behavior. It strikes me that if the user has to type #UUID, why not just type the actual uuid there?, e.g. #123-456-789. That would mean defining a new rule in which a VG name could be replaced with a VG uuid by typing "#" before it. The examples above would then be: lvchange -ay #123-456-789/test vgrename #123-456-789 bar After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |