<P>
alias scsi_hostadapter qla2300<BR>
alias scsi_hostadapter1 qla2300_conf<BR>
^^<BR>
change "scsi_hostadapter" to "scsi_hostadapter1" on the line that has qla2300_conf.<BR>
<BR>
mkinitrd is a shell script that looks for aliases "scsi_hostadapter*" and includes them in initrd image. <BR>
<BR>
grep -i scsi_hostadapter /sbin/mkinitrd:<BR>
<BR>
scsimodules=`grep "alias[[:space:]]scsi_hostadapter" $modulefile | grep -v '^[ ]*#' | LC_ALL=C sort -u | awk '{ print $3 }'`<BR>
<BR>
note the command "sort -u" in the above line, it sorts and gets unique (-u: unique) scsi_adapters.<BR>
<BR>
Change the modules.conf and try again. <BR>
<BR>
Cheers,<BR>
Raj<BR>
<BR>
<BR>
On Wed, 25 May 2005 Ray Stell wrote :<BR>
><BR>
>Looks like the diff is that qla2300_conf is not being included in the<BR>
>custom ram disk, even though it is in /etc/modules.conf when the<BR>
>ramdisk is created.<BR>
><BR>
>boot with custom qlogic ram disk:<BR>
><BR>
>[root@pecan root]# lsmod | grep qla<BR>
>qla2300 689020 0 (unused)<BR>
>scsi_mod 106664 5 [sg sr_mod ide-scsi qla2300 sd_mod]<BR>
>[root@pecan root]# mount /dev/sda1 /db01<BR>
>mount: /dev/sda1 is not a valid block device<BR>
><BR>
>[root@pecan modules]# cp /boot/initrd-2.4.21-32.EL.qlogic.img /tmp/.<BR>
>[root@pecan modules]# cd /tmp<BR>
>[root@pecan tmp]# mv initrd-2.4.21-32.EL.qlogic.img initrd-2.4.21-32.EL.qlogic.img.tgz<BR>
>[root@pecan tmp]# gunzip initrd-2.4.21-32.EL.qlogic.img.tgz<BR>
>[root@pecan tmp]# ls -l /tmp/initrd-2.4.21-32.EL.qlogic.*<BR>
>-rw-r--r-- 1 root root 8192000 May 25 06:04 /tmp/initrd-2.4.21-32.EL.qlogic.img.tar<BR>
>[root@pecan tmp]#<BR>
>[root@pecan tmp]# mount -o loop initrd-2.4.21-32.EL.qlogic.img.tar /mnt/tmp<BR>
>[root@pecan tmp]# cd /mnt/tmp<BR>
>[root@pecan tmp]# ls<BR>
>bin dev etc lib linuxrc loopfs proc sbin sysroot<BR>
>[root@pecan tmp]# find . -name qla\*<BR>
>./lib/qla2300.o<BR>
>[root@pecan root]# modprobe -r qla2300<BR>
>[root@pecan root]# modprobe qla2300<BR>
>[root@pecan root]# lsmod | grep qla<BR>
>qla2300_conf 301656 0 (autoclean)<BR>
>qla2300 689052 0 (unused)<BR>
>scsi_mod 106664 5 [qla2300 sg sr_mod ide-scsi sd_mod]<BR>
>[root@pecan root]# mount /dev/sda1 /db01<BR>
>[root@pecan root]# df /db01<BR>
>Filesystem 1K-blocks Used Available Use% Mounted on<BR>
>/dev/sda1 20184644 8811972 10347328 46% /db01<BR>
>[root@pecan root]# cat /etc/modules.conf<BR>
>alias eth0 tulip<BR>
>alias eth1 e1000<BR>
>alias eth2 e1000<BR>
>alias scsi_hostadapter qla2300<BR>
>alias scsi_hostadapter qla2300_conf<BR>
>alias usb-controller usb-uhci<BR>
>alias usb-controller1 ehci-hcd<BR>
>alias sound-slot-0 i810_audio<BR>
>post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :<BR>
>pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :<BR>
>options qla2300 ql2xuseextopts=1 ConfigRequired=1<BR>
><BR>
>I had added the qla2300_conf to /etc/modules.conf after the breakage. It was<BR>
>not there for the working 27 kernel. I found a comment in qlogic docs about it<BR>
>so I added it. Why is it not being included in the ram disk? Is this just<BR>
>a red herring, http://www.fallacyfiles.org/redherrf.html<BR>
><BR>
>root@pecan modules]# cd /lib/modules/<BR>
>[root@pecan modules]# find . -name qla2300\*<BR>
>./2.4.21-32.EL/kernel/drivers/addon/qla2200/qla2300_conf.o<BR>
>./2.4.21-32.EL/kernel/drivers/addon/qla2200/qla2300.o<BR>
>./2.4.21-32.EL/kernel/drivers/addon/qla2200_70003RH1/qla2300_70003RH1.o<BR>
>./2.4.21-27.0.2.EL/kernel/drivers/addon/qla2200/qla2300_conf.o<BR>
>./2.4.21-27.0.2.EL/kernel/drivers/addon/qla2200/qla2300.o<BR>
>./2.4.21-27.0.2.EL/kernel/drivers/addon/qla2200_70003RH1/qla2300_70003RH1.o<BR>
>./2.4.21-27.0.4.EL/kernel/drivers/addon/qla2200/qla2300_conf.o<BR>
>./2.4.21-27.0.4.EL/kernel/drivers/addon/qla2200/qla2300.o<BR>
>./2.4.21-27.0.4.EL/kernel/drivers/addon/qla2200_70003RH1/qla2300_70003RH1.o<BR>
><BR>
><BR>
><BR>
><BR>
>On Tue, May 24, 2005 at 09:54:43PM -0000, Raj Kumar wrote:<BR>
> > Hi Ray,<BR>
> ><BR>
> > Please try the following steps to verify your initrd contents:<BR>
> ><BR>
> > cp initrd.version.qlogic.img /temp<BR>
> > cd /temp<BR>
> > mv initrd.version.qlogic.img initrd.version.qlogic.img.gz [just change the extension] ?<BR>
> > gunzip initrd.version.qlogic.img.tgz<BR>
> > mount -o loop initrd.version.qlogic.img /mnt/temp<BR>
> > cd /mnt/temp<BR>
> > ls<BR>
> ><BR>
> > cd to lib directory and then check for qla2300.o file<BR>
> ><BR>
> > let us know if you need help!!<BR>
> ><BR>
> > Cheers,<BR>
> > Raj<BR>
> ><BR>
> > On Wed, 25 May 2005 Ray Stell wrote :<BR>
> > ><BR>
> > >Thanks Raj.<BR>
> > ><BR>
> > >I used the qlogic "scli" command that enables all the luns (I'm not<BR>
> > >sure what it does at OS level), but after I enabled with scli, I did<BR>
> > >a modprobe -r and then a modprobe qla2300 and then I could mount the<BR>
> > >luns. However, it would loose the config on a reboot.<BR>
> > ><BR>
> > >So, I did the above and created a new initrd:<BR>
> > ><BR>
> > >[root@pecan qlogic]# cat /etc/modules.conf<BR>
> > >alias eth0 tulip<BR>
> > >alias eth1 e1000<BR>
> > >alias eth2 e1000<BR>
> > >alias scsi_hostadapter qla2300<BR>
> > >alias scsi_hostadapter qla2300_conf<BR>
> > >alias usb-controller usb-uhci<BR>
> > >alias usb-controller1 ehci-hcd<BR>
> > >alias sound-slot-0 i810_audio<BR>
> > >post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :<BR>
> > >pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :<BR>
> > ><BR>
> > >with this command:<BR>
> > ><BR>
> > >mkinitrd initrd-2.4.21-32.EL.qlogic.img 2.4.21-32.EL<BR>
> > ><BR>
> > >and booted this entry of grub:<BR>
> > ><BR>
> > >title Red Hat Enterprise Linux AS (2.4.21-32.EL.qlogic)<BR>
> > > root (hd0,0)<BR>
> > > kernel /vmlinuz-2.4.21-32.EL ro root=LABEL=/ hdc=ide-scsi<BR>
> > > initrd /initrd-2.4.21-32.EL.qlogic.img<BR>
> > ><BR>
> > >As is I get:<BR>
> > ><BR>
> > >[root@pecan qlogic]# mount /dev/sda1 /db01<BR>
> > >mount: /dev/sda1 is not a valid block device<BR>
> > ><BR>
> > >...<BR>
> > ><BR>
> > >Looks like you are right, I don't have to do the scli thing, I<BR>
> > >just modprobe and the devices are ready:<BR>
> > ><BR>
> > >[root@pecan qlogic]# modprobe -r qla2300<BR>
> > >[root@pecan qlogic]# modprobe qla2300<BR>
> > >[root@pecan qlogic]# mount /dev/sda1 /db01<BR>
> > ><BR>
> > >Not sure what you mean about "mount the initrd image using option -oloop."<BR>
> > >Is that on the boot loader command line? Example, please.<BR>
> > >I wanted to check to see if I was getting the right ram disk, but didn't<BR>
> > >know how.<BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > >On Tue, May 24, 2005 at 09:02:29PM -0000, Raj Kumar wrote:<BR>
> > > > Hi,<BR>
> > > ><BR>
> > > > I had this problem recently. But rebuilding initrd solved it.<BR>
> > > > After reboot, what commands do you execute to make the luns available?<BR>
> > > > One solution that I used for a while was to include "modprobe qla2300" in rc.local file. You can also mount the initrd image using option "-oloop " and then check if the qla2300.o is in it. Can you post your /etc/modules.conf ?<BR>
> > > ><BR>
> > > > Cheers,<BR>
> > > > Raj<BR>
> > > ><BR>
> > > ><BR>
> > > > On Wed, 25 May 2005 Ray Stell wrote :<BR>
> > > > ><BR>
> > > > >After an recent download of kernel update vmlinuz-2.4.21-32.EL<BR>
> > > > >the qlogic attached luns will not retain an enabled status<BR>
> > > > >on reboot. This was not true with the last kernel, vmlinuz-2.4.21-27.0.4.EL.<BR>
> > > > >I'm trying to use the built into redhat qla2300.o.<BR>
> > > > ><BR>
> > > > >I can enable the luns with qlogic software and they work, but<BR>
> > > > >the config does not survive a reboot. I've created a new<BR>
> > > > >initrd with the modules.conf and the disks enabled, but<BR>
> > > > >the OS scsi mapping to the qlogic card does not show up<BR>
> > > > >in messages. If I boot the old kernel the luns come up.<BR>
> > > > ><BR>
> > > > >Is there something else I have to do to make the mapping persistant.<BR>
> > > > ><BR>
> > > > >Old (working) /var/log/messages lines:<BR>
> > > > ><BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Found a QLA2312 @ bus 1, device 0xa, irq 11, iobase 0xf88dd000<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): 32 Bit PCI Addressing Enabled.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Configure NVRAM parameters...<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Verifying loaded RISC code...<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Verifying chip...<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Waiting for LIP to complete...<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): LOOP UP detected.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Port database changed.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0): Topology - (F_Port), Host Loop address 0xffff<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi-qla0-adapter-node=200000e08b0a8deb\;<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi-qla0-adapter-port=210000e08b0a8deb\;<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi-qla0-tgt-0-di-0-port=5005076300c89456\;<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi-qla0-tgt-1-di-0-port=5005076300c49456\;<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi0 : QLogic QLA2312 PCI to Fibre Channel Host Adapter: bus 1 device 10 irq 11<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0:0:0:0): Enabled tagged queuing, queue depth 32.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0:0:0:1): Enabled tagged queuing, queue depth 32.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0:0:1:0): Enabled tagged queuing, queue depth 32.<BR>
> > > > >May 19 15:47:21 pecan kernel: scsi(0:0:1:1): Enabled tagged queuing, queue depth 32.<BR>
> > > > >May 19 15:47:21 pecan kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0<BR>
> > > > >May 19 15:47:21 pecan kernel: Attached scsi disk sdb at scsi0, channel 0, id 0, lun 1<BR>
> > > > >May 19 15:47:22 pecan kernel: Attached scsi disk sdc at scsi0, channel 0, id 1, lun 0<BR>
> > > > >May 19 15:47:22 pecan kernel: Attached scsi disk sdd at scsi0, channel 0, id 1, lun 1<BR>
> > > > >May 19 15:47:22 pecan kernel: scsi(0) qla2x00_isr MBA_PORT_UPDATE ignored<BR>
> > > > >May 19 15:47:22 pecan kernel: scsi(0) qla2x00_isr MBA_PORT_UPDATE ignored<BR>
> > > > ><BR>
> > > > >new (broken) /var/log/messages lines:<BR>
> > > > ><BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Found a QLA2312 @ bus 1, device 0xa, irq 11, iobase 0xf88de000<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): 32 Bit PCI Addressing Enabled.<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Configure NVRAM parameters...<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Verifying loaded RISC code...<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Verifying chip...<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Waiting for LIP to complete...<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): LOOP UP detected.<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Port database changed.<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0): Topology - (F_Port), Host Loop address 0xffff<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi-qla0-adapter-node=200000e08b0a8deb\;<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi-qla0-adapter-port=210000e08b0a8deb\;<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi0 : QLogic QLA2312 PCI to Fibre Channel Host Adapter: bus 1 device 10 irq 11<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0) qla2x00_isr MBA_PORT_UPDATE ignored<BR>
> > > > >May 24 14:53:45 pecan kernel: scsi(0) qla2x00_isr MBA_PORT_UPDATE ignored<BR>
> > > > >============================================================<BR>
> > > > >Ray Stell stellr@vt.edu (540) 231-4109 Tempus fugit 28^D<BR>
> > > > ><BR>
> > > > >_______________________________________________<BR>
> > > > >rhn-users mailing list<BR>
> > > > >rhn-users@redhat.com<BR>
> > > > >https://www.redhat.com/mailman/listinfo/rhn-users<BR>
> > ><BR>
> > >--<BR>
> > >============================================================<BR>
> > >Ray Stell stellr@vt.edu (540) 231-4109 Tempus fugit 28^D<BR>
><BR>
>--<BR>
>============================================================<BR>
>Ray Stell stellr@vt.edu (540) 231-4109 Tempus fugit 28^D<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>