Skip to contentSkip to conversation

Boot order of LSI MPT Fusion devices controllable?

DISCUSSION Richard F. Rebel 5 participants 8 messages Nov 30, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

Hello,

I am running mdk 10.0 with kernel 2.6.3-16 out of box on a dual opteron 250 system. The system has a LSI logic U320 controller with 7 internal disks on two channels.

We are upgrading our system by adding an identical server and a small SAN so we can have an active passive failover cluster for MySQL.

I purchased quad port 2gbps fc cards from LSI as I have been very happy with the performance of the SCSI cards we already own. Upon install, dmesg shows:

Fusion MPT base driver 3.00.03
Copyright (c) 1999-2003 LSI Logic Corporation
mptbase: Initiating ioc0 bringup
ioc0: FC929X: Capabilities={Initiator,Target,LAN}
mptbase: Initiating ioc1 bringup
ioc1: FC929X: Capabilities={Initiator,Target,LAN}
mptbase: Initiating ioc2 bringup
ioc2: FC929X: Capabilities={Initiator,Target,LAN}
mptbase: Initiating ioc3 bringup
ioc3: FC929X: Capabilities={Initiator,Target,LAN}
mptbase: Initiating ioc4 bringup
ioc4: 53C1030: Capabilities={Initiator}
mptbase: Initiating ioc5 bringup
ioc5: 53C1030: Capabilities={Initiator}
SCSI subsystem initialized
Fusion MPT SCSI Host driver 3.00.03
scsi0 : ioc0: LSIFC929X, FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=25 scsi1 : ioc1: LSIFC929X, FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=26 scsi2 : ioc2: LSIFC929X, FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=27 scsi3 : ioc3: LSIFC929X, FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=24 scsi4 : ioc4: LSI53C1030, FwRev=01013d00h, Ports=1, MaxQ=255, IRQ=29

  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
scsi5 : ioc5: LSI53C1030, FwRev=01013d00h, Ports=1, MaxQ=255, IRQ=30
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: SEAGATE   Model: ST336753LC        Rev: 0006
  Type:   Direct-Access                      ANSI SCSI revision: 03

Well, the difference is that the fiber channel card seems to boot first, and thus reorders the scsi bus. If I attach the fiber channel cables to the switch (making all of our storage visible) and re-probe the scsi bus by hand using the /dev interface, access to the SAN is fine etc. Upon reboot with the fc connected, my system panics because now the root drive is no longer where it thinks it should be (sda is now a device on the fiber channel switch fabric).

Is there a way to control this process or to mitigate the problem? I really need the system to boot properly off of local disk whether or not the fc is connected or the devices available.

Thanks,

Richard F. Rebel

#1 lore raw
Quoted 11 lines · Richard F. Rebel

Well, the difference is that the fiber channel card seems to boot first, and thus reorders the scsi bus. If I attach the fiber channel cables to the switch (making all of our storage visible) and re-probe the scsi bus by hand using the /dev interface, access to the SAN is fine etc. Upon reboot with the fc connected, my system panics because now the root drive is no longer where it thinks it should be (sda is now a device on the fiber channel switch fabric).

Is there a way to control this process or to mitigate the problem? I really need the system to boot properly off of local disk whether or not the fc is connected or the devices available.

The fusion driver uses the pci_driver model, so cards are discovered in PCI bus order. If you put the existing cards at lower PCI device IDs, they'll be discovered first.

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
#2 lore raw
In reply to Richard F. Rebel
Quoted 13 lines

I am running mdk 10.0 with kernel 2.6.3-16 out of box on a dual opteron 250 system. The system has a LSI logic U320 controller with 7 internal disks on two channels.

Well, the difference is that the fiber channel card seems to boot first, and thus reorders the scsi bus. If I attach the fiber channel cables to the switch (making all of our storage visible) and re-probe the scsi bus by hand using the /dev interface, access to the SAN is fine etc. Upon reboot with the fc connected, my system panics because now the root drive is no longer where it thinks it should be (sda is now a device on the fiber channel switch fabric).

Quoted 3 lines

Is there a way to control this process or to mitigate the problem? I really need the system to boot properly off of local disk whether or not the fc is connected or the devices available.

You need to force the LSI U320 scsi driver to load before the fibre-channel driver loads.

To do this you need to modify the /etc/modules.conf file and ensure your scsi adapter driver loads first. You then have to rebuild your ramdisk, if you are using one, to ensure the modules.conf file is picked up at boot time.

Note: The load order is not determined by the entry order in modules.conf. It is determined by "scsi_hostadapter" field. If you want a scsi driver to load last, make it have the highest numbered suffix. Here is an example of entries in modules.conf that would load the sym5c38xx driver first, and the Emulex lpfc fibre-channel driver second:

alias scsi_hostadapter sym53c8xx
alias scsi_hostadapter1 lpfc

On future installs of the machine, if your fibre-channel cables are plugged in, to ensure local disks are discovered before fibre attached disks, you need to install using the "noprobe" option and then load the scsi and fibre channel drivers by hand. Making sure to load the scsi adapter driver first. e.g:

linux noprobe

Thanks,
Karen White

#3 lore raw
Quoted 2 lines · On Tue, Nov 30, 2004 at 09:31:38PM -0600, [email protected] wrote:

You need to force the LSI U320 scsi driver to load before the fibre-channel driver loads.

It's a single driver.

#4 lore raw
In reply to [email protected]
Quoted 13 lines · On Tue, 2004-11-30 at 21:31 -0600, [email protected] wrote:
Quoted 13 lines

I am running mdk 10.0 with kernel 2.6.3-16 out of box on a dual opteron 250 system. The system has a LSI logic U320 controller with 7 internal disks on two channels.

Well, the difference is that the fiber channel card seems to boot first, and thus reorders the scsi bus. If I attach the fiber channel cables to the switch (making all of our storage visible) and re-probe the scsi bus by hand using the /dev interface, access to the SAN is fine etc. Upon reboot with the fc connected, my system panics because now the root drive is no longer where it thinks it should be (sda is now a device on the fiber channel switch fabric).

Quoted 6 lines
Quoted 3 lines

Is there a way to control this process or to mitigate the problem? I really need the system to boot properly off of local disk whether or not the fc is connected or the devices available.

You need to force the LSI U320 scsi driver to load before the fibre-channel driver loads.

For the MPT Fusion based devices, the fc driver is the same drive as the scsi driver. Eg, mpt_scsih. There is no separate module to load for the SCSI nor FC cards. I guess the problem I am having is due to a quirk of having a common chipset and driver for the two cards installed on my machines.

Earlier someone responded to the tune that I needed to change the PCI boot order, and unless the bios allows me to change that, I have to move the cards around in the chassis. I have a cage monkey trying that now.

I'll write to the list with the results of moving the cards.

Thanks!!

Quoted 3 lines

Thanks,
Karen White

#5 lore raw
Quoted 4 lines · Richard F. Rebel

Earlier someone responded to the tune that I needed to change the PCI boot order, and unless the bios allows me to change that, I have to move the cards around in the chassis. I have a cage monkey trying that now.

I think you misunderstood. The PCI ID is determined by how the PCI slot is wired up -- there's nothing the BIOS can do to affect that.

[hmm. if you're particularly perverse, i suppose you could route the select lines through a chip that the BIOS could reprogram ... never seen it done though.]

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
#6 lore raw
In reply to Richard F. Rebel
Quoted 5 lines · Richard F. Rebel [[email protected]] wrote:

Earlier someone responded to the tune that I needed to change the PCI boot order, and unless the bios allows me to change that, I have to move the cards around in the chassis. I have a cage monkey trying that now.

Relying on pci / device probe order will always leave you open to possible name slippage issues in the future. You mentioned that you are running mdk so you may want to look at using udev for your device naming.

-andmike
--
Michael Anderson
[email protected]

#7 lore raw
Quoted 10 lines · Mike Anderson
Quoted 5 lines · Richard F. Rebel [[email protected]] wrote:

Earlier someone responded to the tune that I needed to change the PCI boot order, and unless the bios allows me to change that, I have to move the cards around in the chassis. I have a cage monkey trying that now.

Relying on pci / device probe order will always leave you open to possible name slippage issues in the future. You mentioned that you are running mdk so you may want to look at using udev for your device naming.

Umm, what is udev? Is this the /dev/scsi/<host>/* mapping???

BTW, I was able to resolve the problem of the fiber channel being identified first by moving the pci-x cards around. Now when the fiber fabric is visible my box still boots off the local scsi disks.

Quoted 7 lines

-andmike
--
Michael Anderson
[email protected]