Bug 429033
Summary: | fence_scsi is broken with lvm stripes and mirrors | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Corey Marthaler <cmarthal> |
Component: | cman | Assignee: | Ryan O'Hara <rohara> |
Status: | CLOSED ERRATA | QA Contact: | GFS Bugs <gfs-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.2 | CC: | cluster-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2008-0347 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-05-21 15:58:38 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: | 428726 | ||
Bug Blocks: |
Description
Corey Marthaler
2008-01-16 22:00:12 UTC
We have other fence_scsi fixes going in, so we might as well get this one in too since the code is already done. Fixed. Old SCSI reservation scripts (scsi_reserve, fence_scsi, fence_scsi_test) would query clvm for devices that existed withing cluster volumes by executing the command: lvs -o vg_attr,devices ... This caused the scripts to not recognize devices that were in LVM stripes and mirrors. This was due to parsing problems, since the scripts must parse the output by looking at the vg_attr for the cluster bit to determine if the value of device contains a device we need to register with. In the presences of LVM stripes or mirrors, "devices" was not return scsi devices was we could register with. Fix is to use replace the command shown above with: vgs -o vg_attr,pv_name ... This works quite nicely, since the pv_name will give us the name of the device every time, even for LVM stripes and mirrors. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. 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 the 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/RHBA-2008-0347.html |