Bug 677817
| Summary: | vgchange returns success when exclusive activation fails | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Nate Straz <nstraz> | |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Marthaler <cmarthal> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.1 | CC: | agk, coughlan, dwysocha, heinzm, jbrassow, mbroz, prajnoha, prockai, syeghiay, thornber, zkabelac | |
| Target Milestone: | rc | Keywords: | Regression | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | lvm2-2.02.83-3.el6 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1191724 (view as bug list) | Environment: | ||
| Last Closed: | 2011-05-03 14:56:23 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1191724 | |||
|
Description
Nate Straz
2011-02-15 22:55:51 UTC
That old chestnut! If it's already active the command has nothing to do so should it therefore fail? Or is it enough to say that you wanted it active, it is active so return success? I'm not sure we're ever going to resolve this to everyone's satisfaction. (BTW Remember that vgchange -a is a clustered command which acts symmetrically on all nodes unless 'l' is used. vgchange -aey means activate it exclusively on any one node, subject to any tag and lvm.conf constraints. We don't support '-aely' yet.) The "0 LVs active" message only queries local LVs. We probably do have the infrastructure available now to include LVs active remotely in those totals now. Alasdair, this is a regression. We ran this test throughout the RHEL6.0 process. Here is the test output from the RHEL6.0-20100818.0 tree which contained lvm2-2.02.72-8.el6.x86_64. EXCLUSIVE VOLUME GROUP LOCKING deactivating volume group grabing the exclusive lock on dash-01 attempting to also grab an exclusive lock on dash-02 Error locking on node dash-02: Volume is busy on another node attempting to grab a non exclusive lock on dash-02 Error locking on node dash-02: Volume is busy on another node Error locking on node dash-03: Volume is busy on another node Error locking on node dash-01: Device or resource busy attempting to also grab an exclusive lock on dash-03 Error locking on node dash-03: Volume is busy on another node attempting to grab a non exclusive lock on dash-03 Error locking on node dash-03: Volume is busy on another node Error locking on node dash-02: Volume is busy on another node Error locking on node dash-01: Device or resource busy releasing the exclusive lock on dash-01 Does anyone know why this behavior appears to have changed between 6.0 and 6.1? Looking through my test logs shows that this behavior was fixed at some point in the release. Testing against lvm2-2.02.83-3.el6.x86_64 passed this part of our tests. Nate, do I read comment #12 correctly that it is in fact fixed in current 6.1? |