Operating System - Linux
1829596 Members
1995 Online
109992 Solutions
New Discussion

Re: failover device install problem

 
steven Burgess_2
Honored Contributor

failover device install problem

he everyone

were currently trying to setup RDAC to handle failovers to the SAN. after installing the driver and creating a new initrd image, when rebooting the server seems to think that the boot partition is on /dev/sdc, it should be /dev/sda.

I am using labels in /etc/fstab.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/sda2 swap swap defaults 0 0


/etc/modules.conf looks like

alias eth1 tg3
alias scsi_hostadapter1 mptbase
alias scsi_hostadapter2 mptscsih
alias usb-controller usb-uhci
alias scsi_hostadapter3 qla2300_conf
alias scsi_hostadapter4 qla2300 ql2xretrycount=3
alias scsi_hostadapter5 qla2300_conf
alias scsi_hostadapter6 qla2300 ql2xretrycount=3
post-remove qla2200 rmmod qla2200_conf
post-remove qla2300 rmmod qla2300_conf


grub.conf

title Red Hat Enterprise Linux ES (2.4.21-27.EL HBA smp)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.ELsmp ro root=LABEL=/ ramdisk_size=15000
initrd /mpp-2.4.21-27.ELsmp.img

I think I need to ensure that the qla driver is loaded before the rdac driver,

anyone any ideas ?

TIA

Steven
take your time and think things through
2 REPLIES 2
Gopi Sekar
Honored Contributor

Re: failover device install problem


I think both of your hard disks have same label and RH used the one from sdc. use explicit device names in fstab, grub.conf then you should be in.

eg in fstab remove all LABEL entries with actual device names /dev/sda? (where ? is your partition number)

and for grub.conf modify root=LABEL=/ to root=/dev/sda

Hope this helps,
Gopi
Never Never Never Giveup
steven Burgess_2
Honored Contributor

Re: failover device install problem

Thanks Gopi

Will give it a try and let you know

Rgds

Steve
take your time and think things through