[lfs-support] udev issue

Qrux qrux.qed at gmail.com
Tue Feb 7 23:25:10 PST 2012


Howdy, all.

This might be a bit OT, but does anyone have any clever ideas about how to name a drive with udev rules that doesn't have a ATTRS{serial} (or equivalent)?  I considered using PROGRAM=..., but the usual helpers don't seem much help here.

Here's some output:

==== hdparm ====
server# hdparm -I /dev/sdc

/dev/sdc:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument

server# hdparm -i /dev/sdc

/dev/sdc:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
 HDIO_GET_IDENTITY failed: Invalid argument
====

==== udevadm info ====
server# udevadm info --query=all --path=/sys/block/sdc
P: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/host6/target6:0:0/6:0:0:0/block/sdc
N: sdc
S: disk/by-path/pci-0000:02:02.0-scsi-0:0:0:0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/host6/target6:0:0/6:0:0: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=3ware
E: ID_VENDOR_ENC=3ware\x20\x20\x20
E: ID_MODEL=Logical_Disk_0
E: ID_MODEL_ENC=Logical\x20Disk\x200\x20\x20
E: ID_REVISION=1.2
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_PATH=pci-0000:02:02.0-scsi-0:0:0:0
E: ID_PART_TABLE_TYPE=dos
E: UDISKS_PRESENTATION_NOPOLICY=0
E: UDISKS_PARTITION_TABLE=1
E: UDISKS_PARTITION_TABLE_SCHEME=mbr
E: UDISKS_PARTITION_TABLE_COUNT=0
E: DEVLINKS=/dev/disk/by-path/pci-0000:02:02.0-scsi-0:0:0:0
====

If it's not immediately obvious, it's a 3ware hardware raid volume.

	Q




More information about the lfs-support mailing list