
https://bugzilla.novell.com/show_bug.cgi?id=755415 https://bugzilla.novell.com/show_bug.cgi?id=755415#c0 Summary: make virtio-blk generate a serial attribute Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: mjedamzik@novell.com QAContact: qa-bugs@suse.de CC: abergmann@novell.com Found By: Field Engineer Blocker: No if you add a virtio disk to a virtualized system ( kvm ) there we'll be no link in /dev/disk/by-id/ because the device is missing the serial attribute. The links should be created because of these rules in /lib/udev/rules.d/60-persistent-storage.rules : KERNEL=="vd*[!0-9]", ATTRS{serial}=="?*", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}" KERNEL=="vd*[0-9]", ATTRS{serial}=="?*", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}-part%n" However, if you examine the device: sles11sp22:~ # udevadm info --query=all --name=/dev/vdc P: /devices/pci0000:00/0000:00:0e.0/virtio4/block/vdc N: vdc W: 17 S: block/253:32 S: disk/by-path/pci-0000:00:0e.0-virtio-pci-virtio4 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:0e.0/virtio4/block/vdc E: MAJOR=253 E: MINOR=32 E: DEVNAME=/dev/vdc E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_PATH=pci-0000:00:0e.0-virtio-pci-virtio4 E: DEVLINKS=/dev/block/253:32 /dev/disk/by-path/pci-0000:00:0e.0-virtio-pci-virtio4 The same disk, now via scsi: sles11sp22:~ # udevadm info --query=all --name=/dev/sdc P: /devices/pci0000:00/0000:00:0b.0/host3/target3:0:4/3:0:4:0/block/sdc N: sdc W: 24 S: block/8:32 S: disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1-0-4 S: disk/by-path/pci-0000:00:0b.0-scsi-0:0:4:0 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:0b.0/host3/target3:0:4/3:0:4:0/block/sdc E: MAJOR=8 E: MINOR=32 E: DEVNAME=/dev/sdc E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_SCSI=1 E: ID_VENDOR=QEMU E: ID_VENDOR_ENC=QEMU\x20\x20\x20\x20 E: ID_MODEL=QEMU_HARDDISK E: ID_MODEL_ENC=QEMU\x20HARDDISK\x20\x20\x20 E: ID_REVISION=0.15 E: ID_TYPE=disk E: ID_SERIAL=0QEMU_QEMU_HARDDISK_drive-scsi1-0-4 E: ID_SERIAL_SHORT=drive-scsi1-0-4 E: ID_BUS=scsi E: ID_PATH=pci-0000:00:0b.0-scsi-0:0:4:0 E: DEVLINKS=/dev/block/8:32 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1-0-4 /dev/disk/by-path/pci-0000:00:0b.0-scsi-0:0:4:0 Therefore the udev rules can never take effect. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.