[rhn-users] qlogic 2300 attached luns not enabled with 2.4.21-32.EL

Ray Stell stellr at cns.vt.edu
Thu May 26 13:00:07 UTC 2005


On Thu, May 26, 2005 at 12:37:42PM -0000, Raj  Kumar wrote:
> Ooops. Sorry but I dont have many clues. I didn't install the new kernel yet. May be installing HP fibreutils RPM is worth a try.


rh released a patch to the 2.4.21-32 kernel this morning that changes things yet
again. Now the disk won't mount after a modprobe, this confirms to me that
the kernel people are hitting this stuff:

[root at pecan root]# uname -a
Linux pecan.cc.vt.edu 2.4.21-32.0.1.EL #1 Tue May 17 18:01:37 EDT 2005 i686 i686 i386 GNU/Linux
[root at pecan root]# mount /dev/sda1 /db01
mount: /dev/sda1 is not a valid block device
[root at pecan root]# lsmod | grep qla
qla2300_conf          301592   0  (unused)
qla2300               689020   0  (unused)
scsi_mod              106664   5  [sg sr_mod ide-scsi qla2300 sd_mod]
[root at pecan root]# modprobe -r qla2300
[root at pecan root]# modprobe qla2300
[root at pecan root]# mount /dev/sda1 /db01
mount: /dev/sda1 is not a valid block device

This worked yesterday with the 2.4.21-32 kernel.  Is there a list I
should try to report this to rh?



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

-- 
============================================================
Ray Stell  stellr at vt.edu  (540) 231-4109  Tempus fugit  28^D




More information about the rhn-users mailing list