United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Release Found: Red Hat Enterprise Linux 4
Limitation:
udev is found in Red Hat Enterprise 4. This article is not applicable to Red Hat Enterprise 3 and earlier releases.
# options=-b
options=-g
This tells udev to assume that all the SCSI devices on the system will return a UUID.
# scsi_id -g -s /block/sdc
The output will look something like the following:
[root@devices]# scsi_id -g -s /block/sdc 3600a0b800013275100000015427b625e
The result (the long string of charecters) will be the UUID. Verify that the UUID ID is the same for each path to the device. The UUID is what the device names will be keyed off of. UUIDs do not change if a device is added to the system.
Within this file, the naming rule will be added. Any subsequent rules will be added in this file with the same format.
Rules should have the following format:
KERNEL="sd*", BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="UUID", NAME="devicename%n"
Replace UUID and devicename with the UUID retrived above, and the desired name for the device. In the example, the rule would look as follows:
KERNEL="sd*", BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="3600a0b800013275100000015427b625e", NAME="mydevice%n"
This will cause the system to check all devices which match /dev/sd* to be checked for the given UUID. When it finds a matching device, it will create a device node named /dev/devicename. In the example, the device node would be /dev/mydevice.