Operating System - Linux
1830899 Members
2740 Online
110017 Solutions
New Discussion

lun is not registered with the OS

 

lun is not registered with the OS

Hi there,

Is there anyone who knows, how to make the scsi-layer add all disks to the system (at boot time)? I know there is a patchfix for kernel 2.4 and that RHEL 3.0 U5 should have the patch incorporated. Nevertheless it still seems to be problem for RHEL 4.0 U3, kernel 2.6.9-34.ELsmp.

Problem,

(1:0) is found and as there is no disks at (1:1) the systems stop adding disks,

SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with the OS.
( 1: 0): Total reqs 74, Pending reqs 0, flags 0x0, 0:0:82 00
( 1:48): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82 00
( 1:49): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:82 00

We have a dualport qla2342 adapter on RHEL 4.0 AS (AMD64), connected to HDS 9960 SAN with SAN switches.

Anyone?

Brgds Troels
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: lun is not registered with the OS

How do you add the disks after the system boot? What if you rescan the bus during startup by using rc.sysinit or rc.local?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: lun is not registered with the OS

This is a new environment, so I'm not doing anything at moment. But it is possible to manually add the disks after the system is up, this will not present disks to Veritas Volumemanager, so you have to re-discover them afterwards. On a further note, I have tried an Emulex adapter, but with no luck. Also tried to make LUN numbering from 0, 1, 2, 3, no luck. Samething happens it adds disks until (1:0) then rest of them unregistered.

Re: lun is not registered with the OS

So now it looks more like all disks after (1:0) is not been registered !!! Is this due to the scsi_mod? And what should the solution be?
gatouillat
Occasional Advisor

Re: lun is not registered with the OS

Hello,

I have the same problem with RHEL 4 and kernel 2.6.9-34, a qlogic 2340 connected to a SAN EVA 3000. I posted some questions on the thread "online resizing disk", http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=956044

Redhat said to me, to add options in /etc/modprobe.conf :
options scsi_mod max_luns=128 max_report_luns=128
then generate a new initrd
But it doesn't work...
I only see a device /dev/sda, no sdb or sdc... but sg0, sg1, sg2.

How do you add device when your system is booted up ? do you do something like echo "scsi add_single_device 0 0 0 2" > /proc/scsi/scsi ?

I will try to boot with an ubuntu live CD because the CONFIG_SCSI_MULTI_LUN is set on this distribution, unlike redhat.

Pierre-Damien GATOUILLAT / SCC

Re: lun is not registered with the OS

Yes like this,

echo "scsi add-single-device $host 0 $dec_target $lun" >/proc/scsi/scsi
Marius Pana_1
Regular Advisor

Re: lun is not registered with the OS

You can also append those lines to grub.conf and pass into the kernel at boot time.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds