SCSI devices and device reordering 2006-01-11 - By Tom Sightler
Back On Wed, 2006-01-11 at 16:14 +1100, Guy Waugh wrote: > I'm thinking it is probably because of the fact that, on the 6650, the > megaraid SCSI controller has a Host value of 2 (from > /proc/scsi/megaraid), where the QLogic HBA has a Host value of 1 (from > /proc/scsi/qla2300) (excuse me if I've got the 'Host value' terminology > wrong). On the other boxes, the megaraid SCSI controller has a Host > value of 1, and the QLogic HBA has a Host value of 2. > > I suspect that this is quite a common problem, but I can't locate any > info on what to do about it (probably not using the right search terms). > Can I do anything about it? > > Can anyone suggest what I might do to keep the local disk as /dev/sda, > or point me at relevant info?
Well, you're certainly on the right track. Basically the system is loading the Qlogic driver before the megaraid driver. In your simple case the easy answer is to simply manually reorder the drivers. To do this take a look in /etc/modules.conf. My guess is that, on your system, you will see two lines that are something like this:
alias scsi_hostadapter qla2300 alias scsi_hostadapter1 megaraid
Just reverse these two like this:
alias scsi_hostadapter megaraid alias scsi_hostadapter1 qla2300
And then rebuild the initrd with a command something like:
mkinitrd /boot/initrd-2 (See http://trd-2.ora-code.com).4.21-37.ELsmp.img 2.4.21-37.ELsmp
Of course you may need to modify the mkinitrd command slightly if you're using a different kernel.
Reboot, and that's it, you should have the behavior you want.
Of course, you could also use LVM and device labels rather than caring where disks devices end up, but I understand why you might want this behavior.
Later, Tom
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|