Hi,

I spent some time reworking Eric Youngdale's scsidev program, which assigns
names based on its physical properties, like host, channel, scsi id and lun
to a scsi device. It also inquires the devices and optionally sets up aliases
based on the outcome of this, so you can assign an alias to a device by
specifying the manufacturer name and the serial number, if you wish. 
(That way, you can even change it's ID, without breaking your /etc/fstab.)

Some bugfixes have been done, resulting in scsidev-1.6.

Some major changes have been done done on the scanning process, resulting in
faster operation and having removable devices and more than 16 SCSI disks
being supported.
The result is scsidev-2.0.
http://www.garloff.de/kurt/linux/scsidev/

There is one bug, BTW, which I found by thinking about it: The scsidev-2.0
assumes that the disks have the same order than the scsi generic devices.
This is always true after booting, but you might fool scsidev by removing a
tape and inserting a disk (with a low SCSI ID). So the disk gets the sg
number of your tape, which might be lower than the next disk, but a disk
number which is higher.
I will add sanity checks to detect and handle such a situation.
(Can only be handled, if the (block) device is accessible and will fail for
 removable media in absence of a medium, sigh!)
Wait for scsidev-2.1, in case you have situations like described here ...

Enjoy!
-- 
Kurt Garloff  <[EMAIL PROTECTED]>                              Eindhoven, NL
GPG key: See mail header, key servers             Linux kernel development
SuSE GmbH, Nuernberg, FRG                                   SCSI, Security

PGP signature

Reply via email to