Operating System - Linux
1827783 Members
2788 Online
109969 Solutions
New Discussion

new initrd after kernel upgrade

 
westb
Advisor

new initrd after kernel upgrade

I have the Qlogic FC HBA driver setup in failover mode, confiured the HBA's with sansurfer.

Does anyone know the correct procedure to create a new initrd with the qlogic stuff after a kernel upgrade ?

Thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: new initrd after kernel upgrade

Shalom,

Should not have to generate a new kernel or initrd but:

Make required changes to /etc/modprobe.conf

cd /boot
mv initrd-....img to initrd-....img.orig

mkinitrd

mkinitrd initrd-2.6.9-42.0.3.ELsmp.img 2.6.9-42.0.3.ELsmp

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
westb
Advisor

Re: new initrd after kernel upgrade

My modprobe.conf file is still intact with everything I need.

Do I have to rebuild the Qlogic driver again ? This process rebuilds initrd.
Steven E. Protter
Exalted Contributor

Re: new initrd after kernel upgrade

To answer the second question, I would need to know the model number of the card.

Most Qlogic cards are auto detected by the kernel, necessitating only a change in modeprobe.conf, which the system does on its own as well.

before compiling the kernel and doing mkinitrd, perhaps run dmesg or hwbrowser and see if the system recognizes the hardware.

If recognized tuck this procedure away for when you need to use an emulex card, which won't auto detect and requires a ram disk rebuild in order to mount filesystems via /etc/fstab

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
westb
Advisor

Re: new initrd after kernel upgrade

I wasn't actually compiling a new kernel, just simply downloaded the latest from RH.

I had installed a new Qlogic driver (HP recommended)and was not using the one from RH.

After booting the new kernel and initrd I had no new Qlogic driver. The modprobe.conf was still intact but no module loaded.

I ended up removing the qlogic driver package and re-installing it and then setting failover which created a new initrd. Any changes made to the HBA's via sansurfer requires a new initrd.

HBA's are QMH2462.

Another reboot and all seems to be fine.

Not sure if this is the recommended procedure.

Thx.