Bug 484956
| Summary: | qdiskd does not prune partitions mapped to dm-mpio devices | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Lon Hohberger <lhh> |
| Component: | cman | Assignee: | Lon Hohberger <lhh> |
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.3 | CC: | cfeist, cluster-maint, cmarthal, edamato, fdinitto, rlerch, tao, tmichael |
| 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:27 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
Lon Hohberger
2009-02-10 20:48:01 UTC
Hi guys,
I believe this is now fixed in our git trees.
I tested on ora1 and it works fine for me.
Lon the commits in master/stable2/stable3 branch are:
commit 02bdf16609905e52a2ba6f52b202f764cd42d650
Author: Fabio M. Di Nitto <fdinitto>
Date: Wed Feb 11 10:54:05 2009 +0100
qdisk: propagate parent_holder information to childs
Bug 484956 part 3.
If a device (e.g. sda) has holders (lvm or mpath), it's children
do not have holders information in sysfs.
Make sure to propagate the information from parent to children
when scanning in sysfs.
Signed-off-by: Fabio M. Di Nitto <fdinitto>
commit 9e427e336fd6b0cc4d1467e93392232ec96b4e6c
Author: Fabio M. Di Nitto <fdinitto>
Date: Wed Feb 11 10:41:48 2009 +0100
qdisk: remove debugging printf.
remove leftover from previous commit "Bug 484956 part 2".
Signed-off-by: Fabio M. Di Nitto <fdinitto>
commit cb1e3dc19959f6193acc700000f0110c3dd58c13
Author: Fabio M. Di Nitto <fdinitto>
Date: Wed Feb 11 10:40:34 2009 +0100
qdisk: fix device scanning order.
Bug 484956 part 2.
This patch re-arrange the check so that full devices are always scanned
before the underneath partitions.
Signed-off-by: Fabio M. Di Nitto <fdinitto>
commit 054e9285257ea034c9ea8dc72095869bf82c0794
Author: Fabio M. Di Nitto <fdinitto>
Date: Wed Feb 11 09:41:08 2009 +0100
qdisk: fix device scanning.
Bug 484956 part 1.
The basic sysfs scanning filter was completely wrong and it
was not scanning for full devices at all.
So entire devices like multipaths or sda where missing from the
original allocation.
This patch re-arrange the check so that we perform a full scan.
Signed-off-by: Fabio M. Di Nitto <fdinitto>
Reassign to lon for final cherry pick and test from RHEL branches. Those patches look fine. I will build a package for Tes to run on his cluster, but I think for the purposes of Tes's work, that 'device=' should be used again. Pushed these 3 patches to RHEL5 branch. Fix verified in cman-2.0.99-1.el5.
Label is on partition 4.
[root@grant-01 ~]# mkqdisk -L
mkqdisk v0.6.0
/dev/dm-7:
/dev/mapper/mpath1p4:
/dev/mpath/mpath1p4:
Magic: eb7a62c2
Label: GRANT
Created: Tue Mar 17 16:32:39 2009
Host: grant-01
Kernel Sector Size: 512
Recorded Sector Size: 512
Mar 17 16:47:16 grant-01 qdiskd[10524]: <info> Quorum Partition: /dev/dm-7 Label: GRANT
Mar 17 16:47:16 grant-01 qdiskd[10525]: <info> Quorum Daemon Initializing
Mar 17 16:47:19 grant-01 qdiskd[10525]: <info> Heuristic: 'ping -c3 -t5 sts.lab.msp.redhat
Mar 17 16:47:26 grant-01 qdiskd[10525]: <info> Initial score 1/1
Mar 17 16:47:26 grant-01 qdiskd[10525]: <info> Initialization complete
Mar 17 16:47:26 grant-01 openais[10427]: [CMAN ] quorum device registered
Mar 17 16:47:26 grant-01 qdiskd[10525]: <notice> Score sufficient for master operation (1/
Mar 17 16:47:32 grant-01 qdiskd[10525]: <info> Assuming master role
[root@grant-01 ~]# cman_tool nodes
Node Sts Inc Joined Name
0 M 0 2009-03-17 16:47:26 /dev/dm-7
1 M 26176 2009-03-17 16:46:22 grant-01
2 M 26188 2009-03-17 16:46:22 grant-02
3 M 26184 2009-03-17 16:46:22 grant-03
This bug was present whenever multipath was used with qdiskd. Because qdiskd could not discern slaves from master devices in dm-mpio configurations, it would select the first device from /proc/partitions, which was usually wrong. This would reduce availability of qdiskd by making it immediately fail even when multipath was used. Administrators could configure around this problem by specifying device name directly (e.g. /dev/dm-1) in cluster.conf instead of using a label. However, the fix included allows the use of qdiskd labels in cluster.conf instead of device names. 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 |