Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 487436

Summary: Qdisk should choose first disk if multiple disks containing same label exist
Product: Red Hat Enterprise Linux 5 Reporter: Corey Marthaler <cmarthal>
Component: cmanAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: cfeist, cluster-maint, edamato
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cman-2.0.100-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:09:36 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:

Description Corey Marthaler 2009-02-25 23:15:01 UTC
Description of problem:
Currently it doesn't choose either of them and just fails to initialize.

Feb 25 11:32:29 taft-04 qdiskd[23382]: <crit> Initialization failed

Version-Release number of selected component (if applicable):
2.6.18-128.el5
cman-2.0.98-1.el5

Comment 1 Corey Marthaler 2009-02-25 23:15:52 UTC
It should also give a warning about 2 being found.

Comment 3 Corey Marthaler 2009-03-17 16:22:12 UTC
Fix verified in cman-2.0.99-1.el5.

Mar 17 11:18:19 taft-01 qdiskd[7705]: <warning> 2 matches found for label 'TAFT'; please use 'device=' instead!
Mar 17 11:18:19 taft-01 qdiskd[7705]: <info> Quorum Partition: /dev/disk/by-id/scsi-3600805f3000a05b0000000005022000e-part1 Label: TAFT
Mar 17 11:18:19 taft-01 qdiskd[7706]: <info> Quorum Daemon Initializing
Mar 17 11:18:22 taft-01 qdiskd[7706]: <info> Heuristic: 'ping -c3 -t5 sts.lab.msp.redhat.com' UP
Mar 17 11:18:29 taft-01 qdiskd[7706]: <info> Initial score 1/1
Mar 17 11:18:29 taft-01 qdiskd[7706]: <info> Initialization complete
Mar 17 11:18:29 taft-01 openais[7633]: [CMAN ] quorum device registered
Mar 17 11:18:29 taft-01 qdiskd[7706]: <notice> Score sufficient for master operation (1/1; required=1); upgrading
Mar 17 11:18:35 taft-01 qdiskd[7706]: <info> Assuming master role

Comment 5 Lon Hohberger 2009-07-22 19:18:22 UTC
Cause: Having two or more qdisk partitions with the same label available to a node

Consequence: Qdiskd selects one at random, with no warning.  This may be the wrong
quorum disk for a given cluster, causing split-brain behavior.

Fix: Add a warning when two quorum disk partitions with the same label are found.

Result: Warnings are now placed in the logs if qdiskd detects more than one device with the same label.  Administrators should only ever have one quorum disk with a given label available to any given cluster node.

Comment 7 errata-xmlrpc 2009-09-02 11:09:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-1341.html