RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1196585 - [RFE] Add local exclusive activation to vgchange (-aeyl)
Summary: [RFE] Add local exclusive activation to vgchange (-aeyl)
Keywords:
Status: CLOSED DUPLICATE of bug 1196580
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-26 10:35 UTC by Nenad Peric
Modified: 2021-09-08 20:25 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1196580
Environment:
Last Closed: 2016-06-06 14:14:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 677817 0 unspecified CLOSED vgchange returns success when exclusive activation fails 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1191724 0 low CLOSED vgchange returns success when exclusive activation fails 2024-05-28 07:27:00 UTC

Internal Links: 677817 1191724

Description Nenad Peric 2015-02-26 10:35:03 UTC
+++ This bug was initially created as a clone of Bug #1196580 +++

Description of problem:

There has been a long standing discussion on the behavior of vgchange in a cluster in regard to exclusive activation of volumes. From the user/admin perspective it makes more sense to have the command unambiguously do what a user may expect, and not end up having random results sometimes. 
This has been reported a few times in bugs #677817 and later in #1191724
In the former it was at some point fixed to work as one would expect, but it is no longer the case even in RHEL6 (so in RHEL6 it could be considered a regression as well).

So in short, we would benefit greatly of making vgchange more unambiguous by adding an option to LOCALLY activate LVs in a VG, in exclusive mode by supplying something like:


vgchange -aley vg_name


The command should return with an exit code of 1 (error out) if it cannot execute what the user demands due to some (or all) of LVs belonging to this VG being already active (or exclusively active) on another node. It should only return an exit code of 0 (success) if all LVs belonging to the VG in question are successfully locally activated.

Comment 2 Peter Rajnoha 2015-10-14 08:54:51 UTC
Let's move this to RHEL7 to concentrate on bug fixing in RHEL6, not adding new features. Also, customers not haven't asked for this in RHEL6 yet.

Comment 4 Peter Rajnoha 2016-06-06 14:14:59 UTC

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


Note You need to log in before you can comment on or make changes to this bug.