Bug 735292
Summary: | Multipath overwrites permissions set via udev RUN+= | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Garrett Ellis <orthostatic> |
Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> |
Status: | CLOSED WONTFIX | QA Contact: | Storage QE <storage-qe> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.5 | CC: | agk, bdonahue, bmarzins, bmr, dkelson, dwysocha, heinzm, prajnoha, prockai, zkabelac |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-02-06 23:03:29 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
Garrett Ellis
2011-09-02 07:50:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. (In reply to Garrett Ellis from comment #0) > Suggestions for remedy: > 1) Add a setting to /etc/multipath.conf which disables the application of > any permission. This would permit udev rules, even those relying on > RUN+=chmod to set and maintain permissions for the /dev/mapper/mpathX files > created. > 2) Enable multipath.conf to specify different uid/gid/mode settings for > partitions of multipath devices in /dev/mapper/mpathX. This would eliminate > the need for udev permissions modification altogether. kpartx creates the partitions and it doesn't use a configuration file. Making kpartx use multipath.conf is non-trivial, and this issue is already solved in RHEL6, by udev having total control over creating the device nodes. Since device-mapper and not udev creates the device nodes in RHEL5, I'm not sure that a race is avoidable. The only tested way to set permissions in RHEL5 is to use multipath.conf, which like you mentioned, doesn't work with kpartx. I'm willing to troubleshoot workarounds, but there's no way to make device-mapper device creation go through udev in RHEL5, and adding a configuration file for kpartx it a significant amount of development for this late in RHEL5's lifetime. If you're still experiencing this issue, let me know, and I'll see if something can be changed in the udev rules files to deal with it. |