From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d431723fa090d135 X-Google-Attributes: gidfee84,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: SCSI drive installation? Date: 2000/02/03 Message-ID: <87ci8f$3ar$1@news.ndsu.nodak.edu>#1/1 X-Deja-AN: 581191384 Content-Transfer-Encoding: 7bit References: <38999c74.4130269@news.earthlink.net> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: news.ndsu.nodak.edu 949603407 3419 134.129.106.23 (3 Feb 2000 18:43:27 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 3 Feb 2000 18:43:27 GMT Newsgroups: comp.unix.osf.osf1 In article <38999c74.4130269@news.earthlink.net>, Matt Tanquary 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