Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Digital UNIX SCSI Question
@ 1999-04-14  4:00 Wong Yeow Whye
  1999-04-14  4:00 ` Peter da Silva
  1999-04-16  4:00 ` Wong Yeow Whye
  0 siblings, 2 replies; 6+ messages in thread
From: Wong Yeow Whye @ 1999-04-14  4:00 UTC (permalink / raw)


Does anyone know how DU (or should I call it True64 ?) assign those rz
numbers for SCSI disks? (them man pages for rz did not help.)

Our problem is namely this:

We had a machine happily running Digital^H^H^H^H^H^H^H Compaq UNIX 4.0d
with the root disk numbered rz16. Yesterday we when we had to replace the
machine we simply transferred the disk to the new machine and LO AND
BEHOLD! rz16 disappeared! In its place the new machine asked for rz0 and
refused to boot as there was no rz0 in /dev. I managed to boot under
single-user mode but since the disk was mounted as read-only, I could not
modify my fstab or make new nodes.

Both machines have essentially the same configuration except that
1. the SCSI controllers are in different PCI slots, and
2. the old machine had 2 SCSI chains while the new one has only one.

I finally solved my problem and got back my rz16 by moving my cards and
cables around but as I am expecting this problem to appear rather often at
my site (don't ask me why, but we seem to be moving things around quite a
fair bit), I would like to know: 

1. how those rz numbers are assigned (random or based on some
   logical mapping?)
2. if I am unable to get the original rz numbers back, which files do I
   have to modify besides fstab ?
3. or is there an elegant way to change/swap system disks?

Thanks.

Stephen Wong
Department of Computational Science
National Univeristy of Singapore

ps. for this I prefer IRIX or Linux where devices are named based on their
    SCSI id rather than these cryptic rz numbers.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Digital UNIX SCSI Question
  1999-04-14  4:00 Digital UNIX SCSI Question Wong Yeow Whye
@ 1999-04-14  4:00 ` Peter da Silva
  1999-04-14  4:00   ` Adam Price
  1999-04-16  4:00 ` Wong Yeow Whye
  1 sibling, 1 reply; 6+ messages in thread
From: Peter da Silva @ 1999-04-14  4:00 UTC (permalink / raw)


In article <7f1ifd$89k$1@nuscc.nus.edu.sg>,
Wong Yeow Whye <cscwyw@leonis.nus.edu.sg> wrote:
>Does anyone know how DU (or should I call it True64 ?) assign those rz

8 * B + T

	B == SCSI bus number (scsi0, scsi1, etc)
	T == SCSI target address.

Yes, this does mean that if you have an ultra-wide controller you still
can't address more than 7 devices. I believe the fix (in DU 4.0something)
involves giving a controller two bus numbers.

>Both machines have essentially the same configuration except that
>1. the SCSI controllers are in different PCI slots, and
>2. the old machine had 2 SCSI chains while the new one has only one.

Sounds like it had 3 SCSI chains. If it really only had two I'd like to
see the boot messages and /usr/sys/conf/whatever config file (email).

>2. if I am unable to get the original rz numbers back, which files do I
>   have to modify besides fstab ?

None.

>3. or is there an elegant way to change/swap system disks?

You build the fstab and device entries on the old system before moving it.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Heb jij vandaag je wolf al geaaid?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Digital UNIX SCSI Question
  1999-04-14  4:00 ` Peter da Silva
@ 1999-04-14  4:00   ` Adam Price
  1999-04-14  4:00     ` Peter da Silva
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Price @ 1999-04-14  4:00 UTC (permalink / raw)



Peter da Silva wrote in message <7f1u9i$7pr@web.nmti.com>...
>In article <7f1ifd$89k$1@nuscc.nus.edu.sg>,
>Wong Yeow Whye <cscwyw@leonis.nus.edu.sg> wrote:
>>Does anyone know how DU (or should I call it True64 ?) assign those rz
>
>8 * B + T
>
> B == SCSI bus number (scsi0, scsi1, etc)
> T == SCSI target address.
>
>Yes, this does mean that if you have an ultra-wide controller you still
>can't address more than 7 devices. I believe the fix (in DU
4.0something)
>involves giving a controller two bus numbers.
>
>>Both machines have essentially the same configuration except that
>>1. the SCSI controllers are in different PCI slots, and
>>2. the old machine had 2 SCSI chains while the new one has only one.
>
>Sounds like it had 3 SCSI chains. If it really only had two I'd like to
>see the boot messages and /usr/sys/conf/whatever config file (email).
>
>>2. if I am unable to get the original rz numbers back, which files do
I
>>   have to modify besides fstab ?
>
>None.
>
>>3. or is there an elegant way to change/swap system disks?
>
>You build the fstab and device entries on the old system before moving
it.

Peter,
No contradiction, but the personal workstations (PWXXX series) have a
pair
of ide controllers, which pretend to be scsi bus 0 and scsi bus
1,although they
can only take two devices per bus, so maybe that had something to do
with
his problems.
Just some more info
Adam








^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Digital UNIX SCSI Question
  1999-04-14  4:00   ` Adam Price
@ 1999-04-14  4:00     ` Peter da Silva
  0 siblings, 0 replies; 6+ messages in thread
From: Peter da Silva @ 1999-04-14  4:00 UTC (permalink / raw)


In article <924112155.153.0.nnrp-06.c2deb51d@news.demon.co.uk>,
Adam Price <adam+usenet@pappnase.demon.co.uk> wrote:
>No contradiction, but the personal workstations (PWXXX series) have a pair
>of ide controllers, which pretend to be scsi bus 0 and scsi bus 1,

How Microsoft of them. Yes, that could certainly have produced the results
he saw.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Heb jij vandaag je wolf al geaaid?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Digital UNIX SCSI Question
  1999-04-16  4:00 ` Wong Yeow Whye
@ 1999-04-16  4:00   ` Serguei Patchkovskii
  0 siblings, 0 replies; 6+ messages in thread
From: Serguei Patchkovskii @ 1999-04-16  4:00 UTC (permalink / raw)


Wong Yeow Whye (cscwyw@leonis.nus.edu.sg) wrote:
: Wong Yeow Whye (cscwyw@leonis.nus.edu.sg) wrote:
: : Does anyone know how DU (or should I call it True64 ?) assign those rz
: : numbers for SCSI disks? (them man pages for rz did not help.)
: :
: :

: Thanks for all your replies. I think I have more or less figured it out as
: follows:
: 	if narrow chain and pseudo chain (i.e. IDE devices) are both empty
: 	then
: 		treat wide chain as chain 0
: 	else
: 		treat wide chain as chain 2

This is not quite right. The numbers assigned to SCSI chains are determined
by the contents of the kernel configuration file. Take a look at the
/sys/conf/HOST_NAME_IN_CAPS, and you will see one or more entries of the
kind:

controller      scsi0      at ...
controller      scsi1      at ...

These entries determine the exact location of each SCSI (or SCSI-on-IDE)
controller; by reassigning the numbers appearing in scsi?? you can change
the controller number and hence the rzXY number assigned to the SCSI
devices. This may come quite handy if you have several SCSI controllers
in a single box, and have to physically reshuffle them whithout disturbing
the software configuration.

Regards,

/Serge.P




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Digital UNIX SCSI Question
  1999-04-14  4:00 Digital UNIX SCSI Question Wong Yeow Whye
  1999-04-14  4:00 ` Peter da Silva
@ 1999-04-16  4:00 ` Wong Yeow Whye
  1999-04-16  4:00   ` Serguei Patchkovskii
  1 sibling, 1 reply; 6+ messages in thread
From: Wong Yeow Whye @ 1999-04-16  4:00 UTC (permalink / raw)


Wong Yeow Whye (cscwyw@leonis.nus.edu.sg) wrote:
: Does anyone know how DU (or should I call it True64 ?) assign those rz
: numbers for SCSI disks? (them man pages for rz did not help.)
:
:

Thanks for all your replies. I think I have more or less figured it out as
follows:
	if narrow chain and pseudo chain (i.e. IDE devices) are both empty
	then
		treat wide chain as chain 0
	else
		treat wide chain as chain 2

Thanks also for the information about the pseudo chain. I did not know
about it until today.

Stephen Wong
Department of Computational Science
National University of Singapore



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-04-16  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-14  4:00 Digital UNIX SCSI Question Wong Yeow Whye
1999-04-14  4:00 ` Peter da Silva
1999-04-14  4:00   ` Adam Price
1999-04-14  4:00     ` Peter da Silva
1999-04-16  4:00 ` Wong Yeow Whye
1999-04-16  4:00   ` Serguei Patchkovskii

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