SUMMARY: Kernal SCSI disk addressing question

From: Randy Davis (megatek!randy@uunet.UU.NET)
Date: Thu Oct 07 1993 - 22:58:11 CDT


I asked:
| Can anyone explain the interesting kernal numbering system used for
|SCSI ID numbering, and how to change it, especially for the 4/300 sm0
|controller?
|
| disk sr0 at sm0 drive 060 flags 2

  Actually, we finally found it ourselves in the manual before anyone
responded (I *KNEW* I'd seen it somewhere :-), and I was beginning to think
my message had never gotten out (wish I could have canceled the message). As
of this morning, I had received about seven replies, so here is the summary
(thanks for all the answers):

  We found it in the manual, finally. The only place it is mentioned in any
detail that I found seems to be the "st" manual page. So, to answer my own
question:

  The "drive ???" number for a 4/3XX contains the SCSI address - if the number
is represented as octal ("0??") as it is in my "sm0" controller example above,
the middle digit is the SCSI ID, the last number is the logical unit ID, which,
unless you have a bridge controller (which are increasingly rare), might as
well always be zero. If the drive number is not prefixed by a zero, it is in
decimal, which means you get to convert it to octal (or simply divide by
eight) to find the SCSI ID; i.e., "drive 9" would mean SCSI ID 1, LUN 1.

  The "flags" pertain to what type of drive it is. For a 4/3XX, flag "0" means
scsi disk, flag "1" means scsi tape, and "2" is CDROM.

  The person who mentioned that the first digit in the octal triplet is
SCSI bus number is wrong, as far as I know. The bus number is determined
by the controller - the leading zero in this triplet simply indicates octal,
as opposed to decimal, notation...

Randy Davis Email: randy@megatek.com
Corporate Network and System Administrator megatek!randy@uunet.uu.net
Megatek Corporation, San Diego, California ucsd!megatek!randy



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:22 CDT