Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem: worldwide name (WWN) for storage need to be uniquely identifiable. If you specified the same WWN for two storage disk, QEMU did not to refuse it and the second disk fail to be named by the /dev/disk/by-id/scsi-*. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm 2.6.32-548.el6.x86_64 qemu-kvm-0.12.1.2-2.462.el6.x86_64 guest info: RHEL-Server-7.1.z-64bit How reproducible: 100% Steps to Reproduce: 1.launch a KVM guest with two virtio-scsi disk specified the same WWN. e.g:...-drive file=/home/RHEL-Server-7.1.z-64bit.raw,if=none,id=drive-system-disk,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x4,id=scsi0 -device scsi-hd,drive=drive-system-disk,id=system-disk,bus=scsi0.0,scsi-id=0,lun=0,channel=0,***wwn=0x5000c50015ea71aa***,bootindex=1 ... -drive file=/home/my-data-disk.raw,if=none,id=drive-data-disk,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi1 -device scsi-hd,drive=drive-data-disk,id=data-disk,bus=scsi0.0,scsi-id=1,lun=0,channel=0,***wwn=0x5000c50015ea71aa*** 2.check it in guest. # ls -lh /dev/disk/by-path/* # ls -lh /dev/sd* Actual results: after step 2, the second disk(sdb) fail to be named by the /dev/disk/by-id/scsi-*. # ls -l /dev/disk/by-id/* lrwxrwxrwx. 1 root root 9 Apr 1 2015 /dev/disk/by-id/ata-QEMU_DVD-ROM_QM00003 -> ../../sr0 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/dm-name-rhel_reserved_for_network_devices-root -> ../../dm-0 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/dm-name-rhel_reserved_for_network_devices-swap -> ../../dm-1 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/dm-uuid-LVM-Ew32qX8tCRMQeJ37Zf2VK4ZsBSMhFDaReSHWbeAfXQeZChWA9NoFsswcwMyuH3m1 -> ../../dm-0 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/dm-uuid-LVM-Ew32qX8tCRMQeJ37Zf2VK4ZsBSMhFDaRUCfYOHVx2fdRrct0irttXdhpVpYC7J0A -> ../../dm-1 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/lvm-pv-uuid-cYvCgc-x2yG-NhtJ-PfY8-CN7p-EBeK-BY4nc5 -> ../../sda2 lrwxrwxrwx. 1 root root 9 Apr 1 2015 /dev/disk/by-id/scsi-35000c50015ea71aa -> ../../sda lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/scsi-35000c50015ea71aa-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/scsi-35000c50015ea71aa-part2 -> ../../sda2 lrwxrwxrwx. 1 root root 9 Apr 1 2015 /dev/disk/by-id/wwn-0x5000c50015ea71aa -> ../../sda lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/wwn-0x5000c50015ea71aa-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Apr 1 2015 /dev/disk/by-id/wwn-0x5000c50015ea71aa-part2 -> ../../sda2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<no sdb naming here>. # ls -lh /dev/disk/by-path/* lrwxrwxrwx. 1 root root 9 Apr 1 22:36 /dev/disk/by-path/pci-0000:00:04.0-virtio-pci-virtio1-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx. 1 root root 10 Apr 1 22:36 /dev/disk/by-path/pci-0000:00:04.0-virtio-pci-virtio1-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Apr 1 22:36 /dev/disk/by-path/pci-0000:00:04.0-virtio-pci-virtio1-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx. 1 root root 9 Apr 1 22:36 /dev/disk/by-path/pci-0000:00:04.0-virtio-pci-virtio1-scsi-0:0:1:0 -> ../../sdb # ls -lh /dev/sd* brw-rw----. 1 root disk 8, 0 Apr 1 2015 /dev/sda brw-rw----. 1 root disk 8, 1 Apr 1 2015 /dev/sda1 brw-rw----. 1 root disk 8, 2 Apr 1 2015 /dev/sda2 brw-rw----. 1 root disk 8, 16 Apr 1 2015 /dev/sdb # sg_inq -p 0x83 /dev/sda VPD INQUIRY: Device Identification page Designation descriptor number 1, descriptor length: 21 designator_type: vendor specific [0x0], code_set: ASCII associated with the addressed logical unit vendor specific: drive-system-disk Designation descriptor number 2, descriptor length: 12 designator_type: NAA, code_set: Binary associated with the addressed logical unit NAA 5, IEEE Company_id: 0xc50 Vendor Specific Identifier: 0x15ea71aa [0x5000c50015ea71aa] # sg_inq -p 0x83 /dev/sdb VPD INQUIRY: Device Identification page Designation descriptor number 1, descriptor length: 19 designator_type: vendor specific [0x0], code_set: ASCII associated with the addressed logical unit vendor specific: drive-data-disk Designation descriptor number 2, descriptor length: 12 designator_type: NAA, code_set: Binary associated with the addressed logical unit NAA 5, IEEE Company_id: 0xc50 Vendor Specific Identifier: 0x15ea71aa [0x5000c50015ea71aa] Expected results: worldwide name (WWN) for storage need to be uniquely identifiable, QEMU should refuse to launch the KVM with a correct prompt when specified the same WWN for the storage. Additional info: