Naming SCSI devices persistently using udev

With udev you can create persistent SCSI device names.

About this task

As of kernel 2.6 Linux distributions use udev as the mechanism to handle devices that appear or disappear at run time. udev provides a /dev directory that contains a minimal set of device nodes for devices that are actually used. The udev utility uses the /sys file system and the hotplug mechanism. Whenever a new device is detected, the kernel creates the entries in the /sys file system and creates hotplug events. Finally, the hotplug mechanism triggers udev, which uses a set of rules to create the device node for the detected device.

An additional benefit of udev is the possibility to create persistent device names. In contrast to the usual Linux device names, persistent names are independent of the order in which the devices appear in the system. Based on a given unique property a device can be recognized and is always accessible under the same name in /dev.