Skip to contentSkip to conversation

Always seeing 36 LUNs from qla2xxx HBA

DISCUSSION Arild Jensen 2 participants 3 messages Jun 20, 2006 – Jun 21, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

I have an interesting problem on my Linux box:

Setup:
IBM x445 server
2 x QLA2340 fiber HBAs
Brocade Director 12000 switch
Hitachi HDS 9960 RAID array
SLES 9 OS, kernel-bigsmp-2.6.5-7.201

Problem:
The qla2xxx driver *always* reports 36 SCSI2 LUNs, regardless of what I configure on the RAID array. It should report 17 SCSI3 LUNs. I am certain the problem is with/close to the OS because:

* I have another x445 box running the same OS and kernel version and it has no problems.
* I have swapped the HBAs with another box and the problem stayed in the box. The LUNs I have assigned to this box showed up correctly in the other server during the swap.
* I've even swapped the M/B (though not the PCI backplane, which is separate) and moved the HBAs around in the PCI slots.

I've worked on this for about six weeks now and I'm running out of ideas. Any help debugging this is appreciated.

Thanks!

Signature · 1 line
Arild Jensen
#1 lore raw
Quoted 9 lines · Arild Jensen

I have an interesting problem on my Linux box:

Setup:
IBM x445 server
2 x QLA2340 fiber HBAs
Brocade Director 12000 switch
Hitachi HDS 9960 RAID array
SLES 9 OS, kernel-bigsmp-2.6.5-7.201

Quoted 3 lines

Problem:
The qla2xxx driver *always* reports 36 SCSI2 LUNs, regardless of what I configure on the RAID array. It should report 17 SCSI3 LUNs.

why should it report 17?

if you have set up 17 luns, showing up as 36 devices is not that strange; first you have the management lun, so the kernel should see18 if you configure 17 real disk ones, and then you have 2 paths to the device, so that is times 2 ==> 36. Now the multipathing in the linux kernel then should bundle those into multipathing devices, after the kernel sees them. If that's not happening you should configure the dm multipathing component....

was the machine that is working also using multipathing?

#2 lore raw
Quoted 10 lines · Arjan van de Ven
Quoted 9 lines · Arild Jensen

I have an interesting problem on my Linux box:

Setup:
IBM x445 server
2 x QLA2340 fiber HBAs
Brocade Director 12000 switch
Hitachi HDS 9960 RAID array
SLES 9 OS, kernel-bigsmp-2.6.5-7.201

Quoted 5 lines
Quoted 3 lines

Problem:
The qla2xxx driver *always* reports 36 SCSI2 LUNs, regardless of what I configure on the RAID array. It should report 17 SCSI3 LUNs.

why should it report 17?

Because I configured our RAID array to assign that box 17 LUNs.

Quoted 9 lines

if you have set up 17 luns, showing up as 36 devices is not that strange; first you have the management lun, so the kernel should see18 if you configure 17 real disk ones, and then you have 2 paths to the device, so that is times 2 ==> 36. Now the multipathing in the linux kernel then should bundle those into multipathing devices, after the kernel sees them. If that's not happening you should configure the dm multipathing component....

From each HBA I am seeing 36 LUNs. Since they are SCSI2, the OS only

sees the first 8, though when I dig deeper, such as looking at /proc/scsi/qla2xxx/*, I see that each HBA reports 35 LUNs.

However, you might be right about something regarding the multipathing. Your math certainly adds up. I'll try to boot the box with only one HBA and see what the OS+HBA are reporting.

Quoted 1 line

was the machine that is working also using multipathing?

Yes.

Thanks for the reply, Arjan!

Signature · 1 line
Arild Jensen