| Summary: | sd: ID_SERIAL and ID_SERIAL_SHORT should use ID_SCSI_SERIAL if avaiable | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | yduan |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | hutter2, knoel, systemd-maint-list, udev-maint-list, virt-maint |
| 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: | 2020-12-15 07:41:07 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: | |
|
Description
yduan
2016-04-20 09:17:20 UTC
Reassigning to udev. lsblk calls libudev for disk information. The cause is in udev, ID_WWN overrides ID_SERIAL if present, even ID_SCSI_SERIAL is there: # udevadm info -q all -n sdb P: /devices/pci0000:00/0000:00:04.0/virtio1/host2/target2:0:1/2:0:1:0/block/sdb N: sdb S: disk/by-id/scsi-300000000000abcde S: disk/by-id/wwn-0x00000000000abcde S: disk/by-path/pci-0000:00:04.0-scsi-0:0:1:0 E: DEVLINKS=/dev/disk/by-id/scsi-300000000000abcde /dev/disk/by-id/wwn-0x00000000000abcde /dev/disk/by-path/pci-0000:00:04.0-scsi-0:0:1:0 E: DEVNAME=/dev/sdb E: DEVPATH=/devices/pci0000:00/0000:00:04.0/virtio1/host2/target2:0:1/2:0:1:0/block/sdb E: DEVTYPE=disk E: ID_BUS=scsi E: ID_MODEL=QEMU_HARDDISK E: ID_MODEL_ENC=QEMU\x20HARDDISK\x20\x20\x20 E: ID_PATH=pci-0000:00:04.0-scsi-0:0:1:0 E: ID_PATH_TAG=pci-0000_00_04_0-scsi-0_0_1_0 E: ID_REVISION=2.5+ E: ID_SCSI=1 E: ID_SCSI_SERIAL=sd0 E: ID_SERIAL=300000000000abcde E: ID_SERIAL_SHORT=00000000000abcde E: ID_TYPE=disk E: ID_VENDOR=QEMU E: ID_VENDOR_ENC=QEMU\x20\x20\x20\x20 E: ID_WWN=0x00000000000abcde E: ID_WWN_WITH_EXTENSION=0x00000000000abcde E: MAJOR=8 E: MINOR=16 E: SUBSYSTEM=block E: TAGS=:systemd: E: USEC_INITIALIZED=49056 Any updates on this? We're hitting this issue when calling lsblk from our ZFS scripts: https://github.com/zfsonlinux/zfs/issues/6153 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. |