All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple SCSI host adapters, naming of attached devices
@ 2001-01-30 22:49 Michael Pacey
  2001-01-30 23:06 ` Michael Pacey
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michael Pacey @ 2001-01-30 22:49 UTC (permalink / raw)
  To: linux-kernel

Sorry for posting this here, I'm sure you're all busy with 2.4.1 and 2.2.18
but I'm read the SCSI HOWTO and asked on #LinPeople to no avail:

Given two host adapters each with 1 disk of ID 0, how do I tell Linux which
is sda and which sdb?

After this I'll be filling the 2nd SCSI chain completely, so assigning a
different ID is not an option.

Thanks in advance.

--
Michael Pacey
michael@wd21.co.uk
ICQ: 105498469

wd21 ltd - world domination in the 21st century

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-30 22:49 Multiple SCSI host adapters, naming of attached devices Michael Pacey
@ 2001-01-30 23:06 ` Michael Pacey
  2001-01-31  8:26   ` Andrzej Krzysztofowicz
  2001-01-31  0:38 ` Wolfgang Wegner
  2001-01-31  1:05 ` Andreas Dilger
  2 siblings, 1 reply; 10+ messages in thread
From: Michael Pacey @ 2001-01-30 23:06 UTC (permalink / raw)
  To: linux-kernel

Of course I should have said this is linux kernel 2.2.17, an IBM PS/2 9585,
in-built 'IBM MCA' SCSI adapter and an AHA-1640 MCA card.

I now realise that in 2.4 I can use scsihosts=ibmmca:aha1542, but have no
info for 2.2.17.

Sorry for the lack of info previously :)

Thanks again.


On Tue, 30 Jan 2001 22:49:12 Michael Pacey wrote:
> Sorry for posting this here, I'm sure you're all busy with 2.4.1 and
> 2.2.18
> but I'm read the SCSI HOWTO and asked on #LinPeople to no avail:
> 
> Given two host adapters each with 1 disk of ID 0, how do I tell Linux
> which
> is sda and which sdb?
> 
> After this I'll be filling the 2nd SCSI chain completely, so assigning a
> different ID is not an option.
> 
> Thanks in advance.
> 
> --
> Michael Pacey
> michael@wd21.co.uk
> ICQ: 105498469
> 
> wd21 ltd - world domination in the 21st century
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
> in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
> 
> 

--
Michael Pacey
michael@wd21.co.uk
ICQ: 105498469

wd21 ltd - world domination in the 21st century

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-30 22:49 Multiple SCSI host adapters, naming of attached devices Michael Pacey
  2001-01-30 23:06 ` Michael Pacey
@ 2001-01-31  0:38 ` Wolfgang Wegner
  2001-01-31  8:31   ` Andrzej Krzysztofowicz
  2001-01-31  1:05 ` Andreas Dilger
  2 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Wegner @ 2001-01-31  0:38 UTC (permalink / raw)
  To: Michael Pacey; +Cc: linux-kernel

Hi,
> Given two host adapters each with 1 disk of ID 0, how do I tell Linux which
> is sda and which sdb?
[...]
which leads me to the question:
Is there any reason for the (IMHO stupid) "dynamic" naming of
SCSI devices (in contrast to e.g. IDE devices or the "physical"
device naming used in Solaris)?
It may be possible always maintaining the "right" order with
one SCSI chain, but as soon as there is a second bus, it is
really a pain. Is devfs the only solution?

Regards,
Wolfgang

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-30 22:49 Multiple SCSI host adapters, naming of attached devices Michael Pacey
  2001-01-30 23:06 ` Michael Pacey
  2001-01-31  0:38 ` Wolfgang Wegner
@ 2001-01-31  1:05 ` Andreas Dilger
  2001-01-31  1:22   ` Michael Pacey
  2001-01-31  2:06   ` Michael Pacey
  2 siblings, 2 replies; 10+ messages in thread
From: Andreas Dilger @ 2001-01-31  1:05 UTC (permalink / raw)
  To: Michael Pacey; +Cc: linux-kernel

Michael Pacey writes:
> Given two host adapters each with 1 disk of ID 0, how do I tell Linux which
> is sda and which sdb?

You can't - you need to make sure either the cards are different and check
the SCSI host probe order, or the detection order in the PCI bus.  You
should only need to do this once, and simply use the order you get.

> After this I'll be filling the 2nd SCSI chain completely, so assigning a
> different ID is not an option.

If you are using ext2 filesystems, you don't care which is which, because
you can mount by filesystem UUID or LABEL, so just ignore the device names.
The same is true with LVM.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-31  1:05 ` Andreas Dilger
@ 2001-01-31  1:22   ` Michael Pacey
  2001-01-31  2:28     ` Andreas Dilger
  2001-01-31  2:06   ` Michael Pacey
  1 sibling, 1 reply; 10+ messages in thread
From: Michael Pacey @ 2001-01-31  1:22 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: linux-kernel


On Wed, 31 Jan 2001 01:05:51 Andreas Dilger wrote:

> If you are using ext2 filesystems, you don't care which is which, because
> you can mount by filesystem UUID or LABEL, so just ignore the device
> names.
> The same is true with LVM.
> 
> Cheers, Andreas


Well, I do care... This machine is confusing it's root filesystem with an
external SCSI disk.

But it looks like I can change the order in driver/scsi/hosts.c, though
this is not an elegant solution :(

Trying it now....

--
Michael Pacey
michael@wd21.co.uk
ICQ: 105498469

wd21 ltd - world domination in the 21st century

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-31  1:05 ` Andreas Dilger
  2001-01-31  1:22   ` Michael Pacey
@ 2001-01-31  2:06   ` Michael Pacey
  1 sibling, 0 replies; 10+ messages in thread
From: Michael Pacey @ 2001-01-31  2:06 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: linux-kernel


On Wed, 31 Jan 2001 01:05:51 Andreas Dilger wrote:

> 
> If you are using ext2 filesystems, you don't care which is which, because
> you can mount by filesystem UUID or LABEL, so just ignore the device
> names.
> The same is true with LVM.

Well, I tried changing the order of driver loading in driver/scsi/hosts.c
after reading something on the web but that didn't work.

Then I tried what you (and another kind soul) suggested, i.e. mount by
label, and the machine fails to mount the / filesystem read-write on boot,
though I can do it manually. This is a Debian potato system. Well, I'm
tired and I've had too much wine and whisky so I am going to bed, but I
will attack this afresh tomorrow night...

Thanks for the advice, perhaps I'll need more tomorrow :)
 

--
Michael Pacey
michael@wd21.co.uk
ICQ: 105498469

wd21 ltd - world domination in the 21st century

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-31  1:22   ` Michael Pacey
@ 2001-01-31  2:28     ` Andreas Dilger
  0 siblings, 0 replies; 10+ messages in thread
From: Andreas Dilger @ 2001-01-31  2:28 UTC (permalink / raw)
  To: Michael Pacey; +Cc: Andreas Dilger, linux-kernel

Michael Pacey writes:
> But it looks like I can change the order in driver/scsi/hosts.c, though
> this is not an elegant solution :(

You can compile the "primary (rootfs)" adapter into the kernel, and load
the second adapter as a module.  This is supposed to work.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-30 23:06 ` Michael Pacey
@ 2001-01-31  8:26   ` Andrzej Krzysztofowicz
  2001-01-31 21:39     ` Michael Pacey
  0 siblings, 1 reply; 10+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-01-31  8:26 UTC (permalink / raw)
  To: Michael Pacey; +Cc: linux-kernel

"Michael Pacey wrote:"
> Of course I should have said this is linux kernel 2.2.17, an IBM PS/2 9585,
> in-built 'IBM MCA' SCSI adapter and an AHA-1640 MCA card.
> 
> I now realise that in 2.4 I can use scsihosts=ibmmca:aha1542, but have no
> info for 2.2.17.
> 
> Sorry for the lack of info previously :)

If the scsihosts= parameter helps you, you can look for a devfs patch for
2.2 kernels at
ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/kernel-patches/

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-31  0:38 ` Wolfgang Wegner
@ 2001-01-31  8:31   ` Andrzej Krzysztofowicz
  0 siblings, 0 replies; 10+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-01-31  8:31 UTC (permalink / raw)
  To: Wolfgang Wegner; +Cc: Michael Pacey, linux-kernel

"Wolfgang Wegner wrote:"
> > Given two host adapters each with 1 disk of ID 0, how do I tell Linux which
> > is sda and which sdb?
> [...]
> which leads me to the question:
> Is there any reason for the (IMHO stupid) "dynamic" naming of
> SCSI devices (in contrast to e.g. IDE devices or the "physical"
> device naming used in Solaris)?

Yes. Shortage of 16-bit major/minor numbers.

> It may be possible always maintaining the "right" order with
> one SCSI chain, but as soon as there is a second bus, it is
> really a pain. Is devfs the only solution?

You can try:
- loading scsi drivers as modules in appropriate order (possibly using
  initrd if root filesystem is located on any of them)
- using devfs names.

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: Multiple SCSI host adapters, naming of attached devices
  2001-01-31  8:26   ` Andrzej Krzysztofowicz
@ 2001-01-31 21:39     ` Michael Pacey
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Pacey @ 2001-01-31 21:39 UTC (permalink / raw)
  To: linux-kernel


Well, just so you know I am now building a 2.4.1 kernel for this machine so
I can use devfs.

So perhaps I'll try ReiserFS on this too... lots of fun :)

Thanks for everyone's kind words of wisdom.

--
Michael Pacey
michael@wd21.co.uk
ICQ: 105498469

wd21 ltd - world domination in the 21st century

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-31 21:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-30 22:49 Multiple SCSI host adapters, naming of attached devices Michael Pacey
2001-01-30 23:06 ` Michael Pacey
2001-01-31  8:26   ` Andrzej Krzysztofowicz
2001-01-31 21:39     ` Michael Pacey
2001-01-31  0:38 ` Wolfgang Wegner
2001-01-31  8:31   ` Andrzej Krzysztofowicz
2001-01-31  1:05 ` Andreas Dilger
2001-01-31  1:22   ` Michael Pacey
2001-01-31  2:28     ` Andreas Dilger
2001-01-31  2:06   ` Michael Pacey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.