persistent device naming problem
Hello,
I have a problem defining persistent device naming on a Debian Lenny server. I have: RAID1 controller on the server machine with two SCSI disks. external storage with RAID5. I have / mount on the first partition on the server SCSI disk and /storage mount on the external storage. I'm experiencing a problem: The system recognizes the system disk (RAID 1), as sda or sdb – randomly. I want: To control the recognition, and tell the system that sda (sda1) will always be the system disk. The motivation: GRUB is configured to work with sda, and when the system disk doesn't, boot process fails, and I end up in the initramfs shell-like interface. Code:
Booting the kernel Code:
# fdisk -l Code:
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet What I tried to do: 1. Tried to configure /etc/fstab with UUID option (instead of mentioning sda or sdb). The following is the contents of /etc/fstab (scsi disks are defined too - with UUID) Code:
proc /proc proc defaults 0 0 This is the file content - (each rule in one line of course, the attributes and values are taken from udevadm info –name=<dev-name> --attribute-walk ,when the disks names was O.K) Code:
#rule for /dev/sda (server disk [RAID1]) One more important question: What is the reason Linux is not recognizing the system disk always as /dev/sda? I will appreciate your help, D-niX. |
Dirty solution :
Blacklist the sdb scsi controller module. Then make it loaded in some rc.local, and mount it in rc.local too. Anyway, what you did seems correct to me, although i think your udev rules may have to be tweaked furthermore, adding UUID parameter. I don't know how to do it. |
Though about the fact that maybe both of your scsi cards uses the same driver/module.
I remember i had this kind of problem with audio cards. Show us the output of : lsmod |
lsmod output
Code:
lsmod Thank you. |
This qla2xxx driver supports all QLogic Fibre Channel PCI and PCIe host adapters.
As far as i know, it seems only one scsi controller module is loaded, so both of your controllers uses this same module. To ensure, type : lspci This will list the hardware. If i'm right, then you will have to create modules aliases for your cards in /etc/modprobe.d/modprobe.conf, specifying which one is first. Can't remember syntax by now. |
Quote:
I want to thank you for your help so far. here is lspci output: Code:
lspci |
.
Hello ,
I still have this problem with the device naming :banghead: I will appreciate if someone can help me solve it. TNX |
Still need help with this problem
Thenk in advance .
|
All times are GMT -5. The time now is 09:48 PM. |