* Re: More AHA 2940 info
@ 2000-01-21 12:50 Kurt Ludwig
2000-01-21 14:14 ` Jay.Estabrook
0 siblings, 1 reply; 7+ messages in thread
From: Kurt Ludwig @ 2000-01-21 12:50 UTC (permalink / raw)
To: axp-list
What I think is happening here is that the scan order for the different
chipsets is different in MILO / Kernel vs. the BIOS
so if my understanding is correct, BIOS sees the root drive as the first
one (the one on the internal controller), and sees the drive on the
external controller as the 2nd one.
when you go to MILO / Kernel, the order is reversed correct (ie the
internal drive is now the 2nd drive and the external drive is now the 1st
drive)
if this is true try this:
(example is for milo)
MILO>boot sdb1:/boot/vmlinuz root=/dev/sdb1
(you'll need to change /etc/fstab to reflect the fact that your root drive
is sdb now and the other drive is sda.... also goes for any other
partitions)
this will at least get you up and running, things won't match between BIOS
and MILO/ Kernl, but hey it works right?
I don't think the 'pci=reverse' option for boot will work to change this.
does anyone know if there's a scan order option for the SCSI drivers (to
reverse the order)?
Michal Jaegermann <michal@ellpspace.math.ualberta.ca> wrote:
>tfleisch@homemail.com wrote:
>>
>> - BIOS points to file on sda1 (sda1 is connected to SCSI controller
embedded on motherboard)
>>
>> - System then initializes all other "stuff" on cpu
>> - Recognizes Adaptec 2940
>>
>> - System then looks for hard drives
>> - Finds external drive FIRST and calls it sda
>>
>> - Finds internal drive next and calls it sdb
>>
>> Therefore the system tries to use the external drive and halts.
>
>I have to admit that I fail to understand this "therefore" above.
>Device names and numbering used by firmware, or milo, have only weak
>relationship with what can be used by kernel. In all Alphas which I
>have seen so far the system boots from this device from which it was
>told to boot and kernel does not have to be even located on a partition
>which will serve as a root file system. As long as you can read it,
>i.e. at least one device which can hold it and is recognized by a
>firmware, this will do - be that some hard drive, floppy or CD. If you
>are spooked by the fact that devices are relabelled in a boot process
>then mount your file systems by LABEL or UUID. This works for a looong
>time even if it is rarely used ('man mount' and 'man fstab' for more
>information).
>
>I have a system here which boots - totally different configuration in
>each case - from all three hard drives attached. Normally it totally
>ignores all partitions on /dev/sda, when I not booted from that disk,
>unless I mount them "manually". The reason for that is that I happened
>to configure it that way. In the past I had a disk from which one could
>boot RH 6.0 from one partition and SuSE 6.1 from another one. So what
>is the problem here?
>
> Michal
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: More AHA 2940 info
2000-01-21 12:50 More AHA 2940 info Kurt Ludwig
@ 2000-01-21 14:14 ` Jay.Estabrook
0 siblings, 0 replies; 7+ messages in thread
From: Jay.Estabrook @ 2000-01-21 14:14 UTC (permalink / raw)
To: axp-list
>>> Kurt Ludwig said:
>
> What I think is happening here is that the scan order for the different
> chipsets is different in MILO / Kernel vs. the BIOS
That's very possible, but the *names* of the drives/controllers have *always*
been different between the console (SRM or ARC/AlphaBIOS) and MILO or kernel,
so I don't think that that is causing the confusion here.
> I don't think the 'pci=reverse' option for boot will work to change this.
> does anyone know if there's a scan order option for the SCSI drivers (to
> reverse the order)?
All "pci=reverse" does is to reverse the order in which new devices are
added to the device list, and therefore affects the scanning order which the
drivers see. As mentioned before, this is really only useful if one has
multiple instances of the *same* device present, so that when the driver
asks "get me the next device of this type" it will get a *different*
sequence of devices depending on the ordering (default vs pci=reverse)
requested.
I don't believe there's any way short of editing the hosts.c file to change
the default ordering of the drivers, nor is it very advisable under most
conditions. I believe, relative to some comments made in the h0osts.c file
itself, that there are certain dependencies inherent in that ordering; ie a
certain device *must* be probed for before another, or unhealthy things (of
some sort) occur.
As always, YMMV... ;-}
--Jay++
---------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: More AHA 2940 info
@ 2000-01-20 22:02 Jemiolo, John
0 siblings, 0 replies; 7+ messages in thread
From: Jemiolo, John @ 2000-01-20 22:02 UTC (permalink / raw)
To: 'axp-list@redhat.com'
The way you describe it, the firmware recognizes the onboard controller
first and assigns the drive a logical similar to "dka0"
You boot the Linux kernel off this drive, the kernel starts, then probes the
PCI, where it recognizes the Adaptec first assigning it's first drive as
"sda", the onboard controller is recognized second and its drive is assigned
"sdb".
now your boot fails because the drive assigned as "sda"
does not contain your root file system.
This occurs when the Linux Kernel probes the pci bus in the reverse order
from the onboard Console firmware.
Try adding "pci=reverse" to your boot flags
example -fl "root=/dev/sda2 pci=reverse"
JJ
-----Original Message-----
From: Hoover, Tony [mailto:hoover@sal.ksu.edu]
Sent: Thursday, January 20, 2000 4:41 PM
To: 'axp-list@redhat.com'
Subject: RE: More AHA 2940 info
play with your SCSI IDs. The lowest SCSI ID (hard drive) your host adapter
finds will be sda, the next will be sdb ...
---------------------------------------------------------------------------
Tony Hoover, Network Administrator
KSU - Salina, College of Technology
mailto:hoover@sal.ksu.edu
"Wash Uffitzi drive me to Firenze"
----------------------------------------------------------------------------
> ----------
> From: tfleisch@homemail.com[SMTP:tfleisch@homemail.com]
> Reply To: axp-list@redhat.com
> Sent: Thursday, January 20, 2000 3:34 PM
> To: axp-list@redhat.com
> Subject: More AHA 2940 info
>
> Since I last wrote, I've learned a bit more about our Alpha/Linux system.
> Hopefully this extran info will lead to a solution.
>
> I should have stated before that one SCSI controller is embedded on the
> motherboard. So here's the sequence of events that take place at boot up:
>
> - BIOS points to file on sda1 (sda1 is connected to SCSI controller
> embedded on motherboard)
>
> - System then initializes all other "stuff" on cpu
> - Recognizes Adaptec 2940
>
> - System then looks for hard drives
> - Finds external drive FIRST and calls it sda
>
> - Finds internal drive next and calls it sdb
>
> Therefore the system tries to use the external drive and halts.
>
> I've thought about copying the contents of the internal drive to the
> external - but have yet to try it. Let me know what you think. Thanks
> again!
>
> ------------------------------------------------------
> Get the Latest News at CNN Interactive: http://CNN.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: More AHA 2940 info
@ 2000-01-20 21:41 Hoover, Tony
2000-01-20 22:00 ` Jay.Estabrook
0 siblings, 1 reply; 7+ messages in thread
From: Hoover, Tony @ 2000-01-20 21:41 UTC (permalink / raw)
To: 'axp-list@redhat.com'
play with your SCSI IDs. The lowest SCSI ID (hard drive) your host adapter
finds will be sda, the next will be sdb ...
---------------------------------------------------------------------------
Tony Hoover, Network Administrator
KSU - Salina, College of Technology
mailto:hoover@sal.ksu.edu
"Wash Uffitzi drive me to Firenze"
----------------------------------------------------------------------------
> ----------
> From: tfleisch@homemail.com[SMTP:tfleisch@homemail.com]
> Reply To: axp-list@redhat.com
> Sent: Thursday, January 20, 2000 3:34 PM
> To: axp-list@redhat.com
> Subject: More AHA 2940 info
>
> Since I last wrote, I've learned a bit more about our Alpha/Linux system.
> Hopefully this extran info will lead to a solution.
>
> I should have stated before that one SCSI controller is embedded on the
> motherboard. So here's the sequence of events that take place at boot up:
>
> - BIOS points to file on sda1 (sda1 is connected to SCSI controller
> embedded on motherboard)
>
> - System then initializes all other "stuff" on cpu
> - Recognizes Adaptec 2940
>
> - System then looks for hard drives
> - Finds external drive FIRST and calls it sda
>
> - Finds internal drive next and calls it sdb
>
> Therefore the system tries to use the external drive and halts.
>
> I've thought about copying the contents of the internal drive to the
> external - but have yet to try it. Let me know what you think. Thanks
> again!
>
> ------------------------------------------------------
> Get the Latest News at CNN Interactive: http://CNN.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: More AHA 2940 info
2000-01-20 21:41 Hoover, Tony
@ 2000-01-20 22:00 ` Jay.Estabrook
0 siblings, 0 replies; 7+ messages in thread
From: Jay.Estabrook @ 2000-01-20 22:00 UTC (permalink / raw)
To: axp-list
>>> "Hoover, Tony" said:
>
> play with your SCSI IDs. The lowest SCSI ID (hard drive) your host adapter
> finds will be sda, the next will be sdb ...
This is true *only* on the first adapter whose disks get probed.
The original problem is that there are now *two* adapters, and the
non-embedded one is the one whose disks get probed first.
Try adding "pci=reverse" to the bootcommand arguments, but be aware that
this will *only* work if the two adapters are the same make, ie both Adaptec
or both Symbios or both Qlogic. If they are mixed, it is the builtin
ordering of SCSI adapter probing that will be the determining factor, and
given an embedded controller, nearly impossible to override without
modifying the source, IIRC.
The original post doesn't say what make the embedded adapter is, but given
that it is anything except Adaptec, the Adaptec will *always* be probed for
first, because of the builting ordering within the SCSI subsystem code. At
least that's how I remember the ordering from when last I looked; for the
one you are using, examine drivers/scsi/hosts.c and look at the order of
the "makes" in the builtin_scsi_hosts[] array. In 2.2.14 it looks like
the following, for the more common ones found in Alphas:
BusLogic
Adaptec
QLogic
Symbios (sym53c8xx)
NCR (ncr53c8xx)
So, if the embedded is NCR, and the added is Adaptec, bad news... :-\
Good luck.
--Jay++
---------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* More AHA 2940 info
@ 2000-01-20 21:34 tfleisch
2000-01-20 23:36 ` Michal Jaegermann
0 siblings, 1 reply; 7+ messages in thread
From: tfleisch @ 2000-01-20 21:34 UTC (permalink / raw)
To: axp-list
Since I last wrote, I've learned a bit more about our Alpha/Linux system. Hopefully this extran info will lead to a solution.
I should have stated before that one SCSI controller is embedded on the motherboard. So here's the sequence of events that take place at boot up:
- BIOS points to file on sda1 (sda1 is connected to SCSI controller embedded on motherboard)
- System then initializes all other "stuff" on cpu
- Recognizes Adaptec 2940
- System then looks for hard drives
- Finds external drive FIRST and calls it sda
- Finds internal drive next and calls it sdb
Therefore the system tries to use the external drive and halts.
I've thought about copying the contents of the internal drive to the external - but have yet to try it. Let me know what you think. Thanks again!
------------------------------------------------------
Get the Latest News at CNN Interactive: http://CNN.com
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: More AHA 2940 info
2000-01-20 21:34 tfleisch
@ 2000-01-20 23:36 ` Michal Jaegermann
0 siblings, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 2000-01-20 23:36 UTC (permalink / raw)
To: axp-list
tfleisch@homemail.com wrote:
>
> - BIOS points to file on sda1 (sda1 is connected to SCSI controller embedded on motherboard)
>
> - System then initializes all other "stuff" on cpu
> - Recognizes Adaptec 2940
>
> - System then looks for hard drives
> - Finds external drive FIRST and calls it sda
>
> - Finds internal drive next and calls it sdb
>
> Therefore the system tries to use the external drive and halts.
I have to admit that I fail to understand this "therefore" above.
Device names and numbering used by firmware, or milo, have only weak
relationship with what can be used by kernel. In all Alphas which I
have seen so far the system boots from this device from which it was
told to boot and kernel does not have to be even located on a partition
which will serve as a root file system. As long as you can read it,
i.e. at least one device which can hold it and is recognized by a
firmware, this will do - be that some hard drive, floppy or CD. If you
are spooked by the fact that devices are relabelled in a boot process
then mount your file systems by LABEL or UUID. This works for a looong
time even if it is rarely used ('man mount' and 'man fstab' for more
information).
I have a system here which boots - totally different configuration in
each case - from all three hard drives attached. Normally it totally
ignores all partitions on /dev/sda, when I not booted from that disk,
unless I mount them "manually". The reason for that is that I happened
to configure it that way. In the past I had a disk from which one could
boot RH 6.0 from one partition and SuSE 6.1 from another one. So what
is the problem here?
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-01-21 14:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-21 12:50 More AHA 2940 info Kurt Ludwig
2000-01-21 14:14 ` Jay.Estabrook
-- strict thread matches above, loose matches on Subject: below --
2000-01-20 22:02 Jemiolo, John
2000-01-20 21:41 Hoover, Tony
2000-01-20 22:00 ` Jay.Estabrook
2000-01-20 21:34 tfleisch
2000-01-20 23:36 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox