Summary: | [RHEL 6.4] LVM allows setting of clustered attribute on VG even though clvmd or cluster configured or running. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Kevin Toyama <ktoyama> |
Component: | lvm2 | Assignee: | Jonathan Earl Brassow <jbrassow> |
lvm2 sub component: | Clustering / clvmd (RHEL6) | QA Contact: | Cluster QE <mspqa-list> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | agk, bmr, dwysocha, heinzm, jbrassow, jshortt, msnitzer, nperic, prajnoha, prockai, thornber, zkabelac |
Version: | 6.4 | ||
Target Milestone: | rc | ||
Target Release: | 6.6 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.107-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
If a user attempts to assign the clustered attribute to a volume group (i.e. 'vgchange -cy VG') and the system is not yet properly configured for it, they will be prompted to confirm the change. The prompt can be overriden by supplying the '--yes' argument.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-14 08:24:37 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: | |
Bug Depends On: | |||
Bug Blocks: | 1056252, 1075263 |
Comment 6
Zdenek Kabelac
2013-08-08 23:06:17 UTC
For users who do rely on the code to work as it is, we will provide a release note saying they need to add --yes to the command in their scripts. Fix checked-in upstream: commit 9399b74356f9d0c2fbbac824908b15d63c3935cd Author: Jonathan Brassow <jbrassow> Date: Thu Jun 5 22:27:40 2014 -0500 vgchange: Prompt when setting VG cluster attr if cluster is not setup If clvmd is not running or the locking type is not clustered and someone attempts to set the cluster attribute on a volume group, prompt them to see if they are sure. (Only prompt for one though. If neither are true, simply ask them once.) TO TEST, DO THE FOLLOWING: vgchange should prompt if clvmd is not running or the locking_type is not a clustered locking type. (Before the patch, vgchange would simply change the attribute regardless.) [root@bp-01 lvm2]# vgchange -cy vg LVM cluster daemon (clvmd) is not running. Make volume group "vg" clustered anyway? [y/n]: n Command failed with status code 5. [root@bp-01 lvm2]# clvmd [root@bp-01 lvm2]# vgchange -cy vg LVM locking type is not clustered. Make volume group "vg" clustered anyway? [y/n]: n Command failed with status code 5. [root@bp-01 lvm2]# nano /etc/lvm/lvm.conf [root@bp-01 lvm2]# vgchange -cy vg Volume group "vg" successfully changed [root@bp-01 lvm2]# vgchange -cn vg Volume group "vg" successfully changed Additional commit upstream: commit c0f9c79ae8e1df16d23f3eb608fb4bf5455ec841 Author: Jonathan Brassow <jbrassow> Date: Thu Jun 5 22:45:19 2014 -0500 vgchange: With '--yes', don't prompt the user If the user supplies a '--yes' argument, then don't bother them with a question to confirm whether to change the cluster attribute (even if clvmd isn't running). LVM is prompting for confirmation regarding the marking of a VG as a member of cluster. It adds a human-readable error message as well. [root@virt-015 ~]# vgchange -cy my_vg LVM cluster daemon (clvmd) is not running. Make volume group "my_vg" clustered anyway? [y/n]: n No volume groups changed. [root@virt-015 ~]# vgchange -cy my_vg connect() failed on local socket: No such file or directory Internal cluster locking initialisation failed. WARNING: Falling back to local file-based locking. Volume Groups with the clustered attribute will be inaccessible. LVM cluster daemon (clvmd) is not running. Make volume group "my_vg" clustered anyway? [y/n]: LVM cluster daemon (clvmd) is not running. Make volume group "my_vg" clustered anyway? [y/n]: n No volume groups changed. Providing the --yes argument, the command proceeds without the checks mentioned above: [root@virt-015 ~]# vgchange -cy --yes two Volume group "two" successfully changed All tests were done on a single server (no HA/clusering set up) Marking VERIFIED with: lvm2-2.02.107-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 lvm2-libs-2.02.107-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 lvm2-cluster-2.02.107-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 udev-147-2.55.el6 BUILT: Wed Jun 18 13:30:21 CEST 2014 device-mapper-1.02.86-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 device-mapper-libs-1.02.86-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 device-mapper-event-1.02.86-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 device-mapper-event-libs-1.02.86-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 device-mapper-persistent-data-0.3.2-1.el6 BUILT: Fri Apr 4 15:43:06 CEST 2014 cmirror-2.02.107-1.el6 BUILT: Mon Jun 23 16:44:45 CEST 2014 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1387.html |