Bug 1032218
Summary: | /dev/disk/by-path does not account for NPIV paths | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Dave Allan <dallan> | ||||||||||
Component: | udev | Assignee: | Harald Hoyer <harald> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Radka Brychtova <rskvaril> | ||||||||||
Severity: | unspecified | Docs Contact: | Jana Heves <jsvarova> | ||||||||||
Priority: | unspecified | ||||||||||||
Version: | 6.5 | CC: | dallan, jsvarova, mgandhi, mlombard, msekleta, pbokoc, psklenar, rick.beldin, rskvaril, udev-maint-list, yanyang | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | udev-147-2.72.el6 | Doc Type: | Bug Fix | ||||||||||
Doc Text: |
`/dev/disk/by-path/` now accounts for NPIV paths
Previously, if two or more virtual host bus adapters (HBAs) were created on a single physical HBA, only a single link to the device was created in the `/dev/disk/by-path/` directory instead of one link for each path. As a consequence, creating a *virsh* pool with virtual HBAs by using Fibre Channel N_Port ID Virtualization (NPIV) did not work correctly. With this update, symbolic links in `/dev/disk/by-path/` are created correctly and are unique. Symbolic links in `/dev/disk/by-path/` created by *udev* for logical unit numbers (LUNs) connected through a physical Fibre Channel N_Port stay the same.
|
Story Points: | --- | ||||||||||
Clone Of: | |||||||||||||
: | 1266934 (view as bug list) | Environment: | |||||||||||
Last Closed: | 2016-05-11 00:26:03 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: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | |||||||||||||
Bug Blocks: | 1266934, 1270825 | ||||||||||||
Attachments: |
|
Description
Dave Allan
2013-11-19 17:56:04 UTC
Created attachment 826224 [details]
output of cat /proc/scsi/scsi
Created attachment 826225 [details]
ls of /dev/disk/by-id
Created attachment 826226 [details]
output of virsh nodedev-list --tree (shows the device hierarchy)
I didn't quite finish the description before submitting the BZ: /sys/class/block/sdg/device/scsi_device/9\:0\:0\:0/ shows the relationship between the block device and the SCSI device This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. I'm working on it right now, So the by-path format /dev/by-path/pci-xxx-fc-<port_name>-<lun> is ambiguous when there are multiple virtual HBAs on the same physical HBA (NPIV), I'm not sure about how to properly fix this bug yet, we could add the scsi host number to by-path as Dave suggests or maybe the port_name of the virtual HBA? I'll try to come up with a solution. Maurizio, any progress with that patch for path_id? Michal, see bz 1266934 comment 22 Maurizio, can you please post the patch upstream via GitHub pull request? Michal, I will post it soon. Sorry for the delay but one customer reported some problems with the first version of the patch and I had to modify it. They are going to test the new version right now, if they confirm the patch works then I proceed to send it upstream. I've reverted current patch and merged patch proposed in https://github.com/systemd/systemd/pull/2731 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. https://rhn.redhat.com/errata/RHBA-2016-0903.html |