public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI device order changed
@ 2006-07-16 15:42 Yuri van Oers
  2006-07-16 15:53 ` Jan Engelhardt
  2006-07-16 18:03 ` Gary Funck
  0 siblings, 2 replies; 6+ messages in thread
From: Yuri van Oers @ 2006-07-16 15:42 UTC (permalink / raw)
  To: linux-kernel


Hi,

I've come across an issue which might be unintentional and in need of
fixing, in 2.6.17:

My machine has two SCSI adapters, one of which always has some disks
connected to it. One of those holds the root partition. The other card
occasionally gets some devices connected (burners and such), when I have
need for such a device.

Hard disks are sda thru sdd, the devices start at sde. That is, up until I
booted 2.6.17 _with_ the external devices attached. The kernel swapped
the order of the cards: devices start at sda, and the disks come after,
which means it can't find / on sda.

I found a related post here: http://lkml.org/lkml/2005/12/3/192
which suggests this situation arose around 2.6.15. It also says ordering
can't be guaranteed. If that's the final verdict, I'll simply swap the
cards on the PCI bus and be done with it.

So, is this a bug/problem?

Please CC me, I'm not on the list.

Thanks,
Yuri van Oers


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

* Re: SCSI device order changed
  2006-07-16 15:42 SCSI device order changed Yuri van Oers
@ 2006-07-16 15:53 ` Jan Engelhardt
  2006-07-16 19:28   ` Yuri van Oers
  2006-07-16 18:03 ` Gary Funck
  1 sibling, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2006-07-16 15:53 UTC (permalink / raw)
  To: Yuri van Oers; +Cc: linux-kernel

>
>Hard disks are sda thru sdd, the devices start at sde. That is, up until I
>booted 2.6.17 _with_ the external devices attached. The kernel swapped
>the order of the cards: devices start at sda, and the disks come after,
>which means it can't find / on sda.
>
>I found a related post here: http://lkml.org/lkml/2005/12/3/192
>which suggests this situation arose around 2.6.15. It also says ordering
>can't be guaranteed. If that's the final verdict, I'll simply swap the
>cards on the PCI bus and be done with it.
>
And then, hope it does not change again?

It usually depends on link time order (when compiled in) or module load 
order (with initrd), both of which, esp. the latter, can be fine-tuned to 
the user's needs.

Also note CONFIG_BLK_DEV_OFFBOARD.



Jan Engelhardt
-- 

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

* RE: SCSI device order changed
  2006-07-16 15:42 SCSI device order changed Yuri van Oers
  2006-07-16 15:53 ` Jan Engelhardt
@ 2006-07-16 18:03 ` Gary Funck
  1 sibling, 0 replies; 6+ messages in thread
From: Gary Funck @ 2006-07-16 18:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: Yuri van Oers

Yuri van Oers wrote:
> I found a related post here: http://lkml.org/lkml/2005/12/3/192
> which suggests this situation arose around 2.6.15. It also says ordering
> can't be guaranteed. If that's the final verdict, I'll simply swap the
> cards on the PCI bus and be done with it.
> 

We saw this change in behavior also.  Labeling the root volume, and
mounting via label may help to keep things more portable, however,
I recall that labels and the device manager managed devices interacted
in some way that made mounting / via a label more difficult, however.

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

* Re: SCSI device order changed
  2006-07-16 15:53 ` Jan Engelhardt
@ 2006-07-16 19:28   ` Yuri van Oers
  2006-07-17  9:44     ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Yuri van Oers @ 2006-07-16 19:28 UTC (permalink / raw)
  To: linux-kernel


On Sun, 16 Jul 2006, Jan Engelhardt wrote:

> >Hard disks are sda thru sdd, the devices start at sde. That is, up until I
> >booted 2.6.17 _with_ the external devices attached. The kernel swapped
> >the order of the cards: devices start at sda, and the disks come after,
> >which means it can't find / on sda.
>
> It usually depends on link time order (when compiled in) or module load
> order (with initrd), both of which, esp. the latter, can be fine-tuned to
> the user's needs.
>
> Also note CONFIG_BLK_DEV_OFFBOARD.

Ok, but I think none of the above applies in this situation, because the
cards use the same driver (AIC7xxx).


Regards,
Yuri van Oers
(please CC me, I'm not on the list)


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

* Re: SCSI device order changed
  2006-07-16 19:28   ` Yuri van Oers
@ 2006-07-17  9:44     ` Jan Engelhardt
  2006-07-29 13:09       ` Yuri van Oers
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2006-07-17  9:44 UTC (permalink / raw)
  To: Yuri van Oers; +Cc: linux-kernel

>
>Ok, but I think none of the above applies in this situation, because the
>cards use the same driver (AIC7xxx).
>
In which case the ... usual(!) ... behavior is "the lowest PCI 
slot/address" gets the first c0 (as in c0t0d0s0) and therefore the first 
disk spots sda, sdb, etc.
But anything may happen :>


Jan Engelhardt
-- 

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

* Re: SCSI device order changed
  2006-07-17  9:44     ` Jan Engelhardt
@ 2006-07-29 13:09       ` Yuri van Oers
  0 siblings, 0 replies; 6+ messages in thread
From: Yuri van Oers @ 2006-07-29 13:09 UTC (permalink / raw)
  To: linux-kernel


On Mon, 17 Jul 2006, Jan Engelhardt wrote:

> >Ok, but I think none of the above applies in this situation, because the
> >cards use the same driver (AIC7xxx).
>
> In which case the ... usual(!) ... behavior is "the lowest PCI
> slot/address" gets the first c0 (as in c0t0d0s0) and therefore the first
> disk spots sda, sdb, etc.
> But anything may happen :>

Indeed. I tracked the change to 2.6.13-rc4, which includes a patch to
always probe in bus order.

So I'll turn my machine off now and swap the cards.

Regards,
Yuri


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

end of thread, other threads:[~2006-07-29 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-16 15:42 SCSI device order changed Yuri van Oers
2006-07-16 15:53 ` Jan Engelhardt
2006-07-16 19:28   ` Yuri van Oers
2006-07-17  9:44     ` Jan Engelhardt
2006-07-29 13:09       ` Yuri van Oers
2006-07-16 18:03 ` Gary Funck

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