RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1665458 - When different fc connected block devices having same backend luns, only the latest ones displayed under /dev/disk/by-path
Summary: When different fc connected block devices having same backend luns, only the ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 8.0
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-11 13:26 UTC by yisun
Modified: 2021-02-01 07:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-01 07:31:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yisun 2019-01-11 13:26:41 UTC
Description:
When different fc connected block devices having same backend luns, only the latest ones displayed under /dev/disk/by-path

Versions:
kernel-4.18.0-58.el8.x86_64
systemd-udev-239-10.el8.x86_64


How reproducible:
100

Steps:
1. having a online HBA card (scsi_host5)
[root@dell-per730-58 tmp]# lsscsi
[5:0:0:0]    disk    IBM      2145             0000  /dev/sdb 
[5:0:1:0]    disk    IBM      2145             0000  /dev/sdc 

2. create a virtual HBA based on scsi_host5 with following wwpn/wwnn
[root@dell-per730-58 tmp]# echo "1000000000000001:20000000c99e2b80" > /sys/class/fc_host/host5/vport_create 

3. check the newly connected storage, which is sdd/sde/sdf/sdg connected by vHBA scsi_host13
[root@dell-per730-58 tmp]# lsscsi
[5:0:0:0]    disk    IBM      2145             0000  /dev/sdb 
[5:0:1:0]    disk    IBM      2145             0000  /dev/sdc 
[13:0:0:0]   disk    IBM      2145             0000  /dev/sdd 
[13:0:0:1]   disk    IBM      2145             0000  /dev/sde 
[13:0:1:0]   disk    IBM      2145             0000  /dev/sdf 
[13:0:1:1]   disk    IBM      2145             0000  /dev/sdg 

4. check the devices under dir=/dev/disk/by-path/
[root@dell-per730-58 tmp]# ll /dev/disk/by-path/
total 0
lrwxrwxrwx. 1 root root  9 Jan  8 05:04 pci-0000:00:1f.2-ata-6 -> ../../sr0
lrwxrwxrwx. 1 root root  9 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b6-lun-0 -> ../../sdd
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b6-lun-1 -> ../../sde
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b7-lun-0 -> ../../sdf
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b7-lun-1 -> ../../sdg

5. created another virtual HBA with following wwpn/wwnn
[root@dell-per730-58 tmp]# echo "1000000000000002:20000000c99e2b80" > /sys/class/fc_host/host5/vport_create

6. check the newly connected storage, which is sdh/sdi/sdj/sdk connected by vHBA scsi_host14
[root@dell-per730-58 tmp]# lsscsi
[0:2:0:0]    disk    DELL     PERC H730 Mini   4.27  /dev/sda 
[5:0:0:0]    disk    IBM      2145             0000  /dev/sdb 
[5:0:1:0]    disk    IBM      2145             0000  /dev/sdc 
[11:0:0:0]   cd/dvd  HL-DT-ST DVD-ROM DTA0N    D3C0  /dev/sr0 
[13:0:0:0]   disk    IBM      2145             0000  /dev/sdd 
[13:0:0:1]   disk    IBM      2145             0000  /dev/sde 
[13:0:1:0]   disk    IBM      2145             0000  /dev/sdf 
[13:0:1:1]   disk    IBM      2145             0000  /dev/sdg 
[14:0:0:0]   disk    IBM      2145             0000  /dev/sdh 
[14:0:0:1]   disk    IBM      2145             0000  /dev/sdi 
[14:0:1:0]   disk    IBM      2145             0000  /dev/sdj 
[14:0:1:1]   disk    IBM      2145             0000  /dev/sdk 

7. check the devices under dir=/dev/disk/by-path/ again (the original sdd/sde/sdf/sdg gone, replaced by sdh/sdi/sdj/sdk with same path)
The reason is that the two wwpn/wwnn pairs actually pointing to the same backend storage. But the by-path should not just show the latest connected ones.
[root@dell-per730-58 tmp]# ll /dev/disk/by-path/
total 0
lrwxrwxrwx. 1 root root  9 Jan  8 05:04 pci-0000:00:1f.2-ata-6 -> ../../sr0
lrwxrwxrwx. 1 root root  9 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Jan  8 05:04 pci-0000:03:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b6-lun-0 -> ../../sdh
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b6-lun-1 -> ../../sdi
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b7-lun-0 -> ../../sdj
lrwxrwxrwx. 1 root root  9 Jan 11 08:07 pci-0000:06:00.0-fc-0x50050768030939b7-lun-1 -> ../../sdk

Actual result:
As step 7, only the latest connected devices listed under by-path dir.

Expected result:
Even the 2 wwpn/wwnn pointing to the same backend storage, the by-path dir should show them both with different path.

Additional info:
In rhel7.6.z the problem not happened, the reason is that the device name under by-path dir has a vport info, as follow:
pci-0000:08:00.0-vport-0x1000000000000001-fc-0x50050768030539b6-lun-0

Comment 1 yisun 2019-01-11 13:28:13 UTC
xuzhang, hhan, yisun

Comment 9 RHEL Program Management 2021-02-01 07:31:55 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.