Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: SCSI drive installation?
Date: 2000/02/03	[thread overview]
Message-ID: <87ci8f$3ar$1@news.ndsu.nodak.edu> (raw)
In-Reply-To: 38999c74.4130269@news.earthlink.net

In article <38999c74.4130269@news.earthlink.net>,
Matt Tanquary <mtanquary@earthlink.net> wrote:
> I removed a drive which recently failed and replaced it with another.
> The old drive was a Seagate Barracuda 4.5 gig. The new drive is an IBM
> DNES-309170 9.1 gig. The SCSI ID is 5, on bus 'scsi1'.
> 
> I rebuilt the device drivers for rz5&rrz5, but disklabel still gives
> me the following:

If it's on bus 1, you're off by 8 ids: rz0-7 (7 == controller) is bus 0,
rz8-15 is bus 1, etc.  The formula is given (in words) in the SCSI(7) man
page:

  ...                                   The unit number is eight times
  the bus number plus the target ID.


You want rz13, I think (bus # * 8) + 1 = (1 * 8) + 5 = 13.

Note that some of this may change at 5.x -- device names change and
I think I remember seeing support for wide addressing, but I'm not sure
if the tried-and-true formula shown above actually did change or not.  I
haven't done enough with 5.x yet to know.

> 
> >># disklabel -rw rz5 not_in_drivetab             
> >>disklabel: /dev/rrz5a: No such device or address
> 
> I have tried several other methods getting my machine to recognize the
> drive to no avail. I'm a former SGI administrator, so the techniques
> and labeling mechanisms I'm used to are no good to me.
> 
> I am also interested in knowing how you can distinguish a drive on
> bus0, id5 from a drive on bus1, id5.

With the 4.x system, integer division of the unit # gives you the bus
#, and the unit # mod 8 gives you the SCSI ID.

	rz13 -> unit 13

	13 / 8 = 1		(bus #, integer division!)
	13 % 8 = 5		(scsi id)

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



  parent reply	other threads:[~2000-02-03  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-03  5:00 SCSI drive installation? Matt Tanquary
2000-02-03  5:00 ` Ron S
2000-02-03  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-02-03  5:00 ` Tim Mooney [this message]
2000-02-06  5:00   ` Michael Krauss
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox