max_scsi_luns not working anymore ?

jason andrade jason at rtfmconsult.com
Mon Aug 25 21:38:01 CDT 2003


Hi,

Has anyone had issues with getting multiple scsi luns to be
detected under RH Linux ?  In particular RH Linux 9 running
the 2.4.20-20.9 kernel.

I've got a IDE-SCSI unit which has two RAID5 arrays configured
and presented as SCSI ID 0, LUN 0 and LUN 1.  I can happily
detect the first lun without issues but can't see the second.

If i recompile the kernel to use CONFIG_SCSI_MULTI_LUN=y
i don't have any problems detecting both luns.  But to try
and avoid the stack trace errors that come up more frequently
with a custom compiled kernel i'd like to get this working
with the stock kernel. I can also manually do:

echo "scsi add-single-device 2 0 0 1" > /proc/scsi/scsi
echo "scsi add-single-device 3 0 0 1" > /proc/scsi/scsi

which will let me see the 'hidden' arrays, fdisk them,
format them, mount them etc, but this is less than
optimal as i end up with scsi0lun0 -> sdb, scsi1lun0 > sdc,
scsi0lun1 -> sdd, scsi1lun1 -> sde

(from dmesg after the above)
scsi singledevice 2 0 0 1
blk: queue f769ea18, I/O limit 4095Mb (mask 0xffffffff)
  Vendor: SB-3143   Model:                   Rev: 0001
  Type:   Direct-Access                      ANSI SCSI revision: 03
blk: queue f769e818, I/O limit 4095Mb (mask 0xffffffff)
scsi2:A:0:0: Tagged Queuing enabled.  Depth 253
scsi2:A:0:1: Tagged Queuing enabled.  Depth 253
Attached scsi disk sdd at scsi2, channel 0, id 0, lun 1
SCSI device sdd: 2930327552 512-byte hdwr sectors (1500328 MB)
 sdd: sdd1
scsi singledevice 3 0 0 1
  Vendor: SB-3143   Model:                   Rev: 0001
  Type:   Direct-Access                      ANSI SCSI revision: 03
blk: queue f77ca018, I/O limit 4095Mb (mask 0xffffffff)
scsi3:A:0:0: Tagged Queuing enabled.  Depth 253
scsi3:A:0:1: Tagged Queuing enabled.  Depth 253
Attached scsi disk sde at scsi3, channel 0, id 0, lun 1
SCSI device sde: 2930327552 512-byte hdwr sectors (1500328 MB)
 sde: sde1

i have tried to add the following to /etc/modules.conf:

options scsi_mod max_scsi_luns=8

i have tried to add the following to /etc/grub.conf

kernel /boot/vmlinuz-2.4.20-20.9 ro root=LABEL=/ max_scsi_luns=8

and neither seems to work on reboot.  i've even rebuilt the
initrd file with no luck..

i've also tried (in grub) values of 1, 2, 8, 128 and 255 with no
success.

ideas anyone ?

regards,

-jason




More information about the Linux-PowerEdge mailing list