On Fri, 3 Jan 2003 01:21:40 +0200, Shaul Karl <[EMAIL PROTECTED]> wrote: > > I wonder whether these tapes are smart SCSI devices in the sense that > the host adapter is the one that actually assign their device id (0, 1 > and so on)? I believe that such ability of the host adapter and the SCSI > devices is called s.c.a.m and it can explain the randomness of the ids > of your tapes. In any case I believe that the tape with id 0 will always > turn to be st0 and the one with id1 will always turn to be st1.
That is not the case. See output of `cat /proc/scsi/scsi' : Host: scsi1 Channel: 00 Id: 03 Lun: 00 Vendor: HP Model: C5683A Rev: C104 Type: Sequential-Access ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 05 Lun: 00 Vendor: QUANTUM Model: DLT8000 Rev: 022C Type: Sequential-Access ANSI SCSI revision: 02 On private email Yedidyah Bar-David <[EMAIL PROTECTED]> wrote: > > I think Linux will always name the devices in the order of the IDs, > and would usually recommend a manual setup for this reason. Which seems to be correct from my experience (the last reversal was over a 1.5 years ago and may be because of physical tape unit change). Anyway, the symbolic link solution always works and allows one to work with meaningful names (DAT, DLT). Also, it is more portable (I have the same scripts running on several machines). Another solution is to use mknod to create a device with a name that is not used by Linux. e.g. to create /dev/DAT equivalent to /dev/st5 run the command: mknod -m660 /dev/DAT c 9 5 . Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:[EMAIL PROTECTED] Better Safe Than Sorry ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
