LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multiple LUN support & need scsi inquiry command... (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-lun-support-and-need-scsi-inquiry-command-77385/)

mvega 07-30-2003 02:37 PM

Multiple LUN support & need scsi inquiry command...
 
Hi:

I just compiled and installed the Qlogic qla2x00 module on RH8.
I also edited the /etc/modules.conf file and added the following
lines:
alias scsi_hostadapter0 qla2200
options scsi_mod max_scsi_luns=128

A subsequent "modprobe qla2200" installed the module
without compaint. The problem is that I only see one of
three drives/luns as shown here (luns 1 & 2 are missing):

=====================================
cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HITACHI Model: OPEN-9 Rev: 0118
Type: Direct-Access ANSI SCSI revision: 02
=====================================

Here are my 3 questions

(1) How can I tell if my kernel has Multiple LUN Support
built in? (other than modprobe not compaining above).

(2) What command can I use to perform an inquiry on
available scsi disks (similar to the format command in
Solaris)? I tried scsidev 1.5-3 but it fails as follows:

root# scsidev
Found scsi device /dev/scsi/s
h0-0c0i0l0 QLogic QLA2200 PCI to Fibre Channel Host Adapter:
bus 3 device 6
mknod (/dev/scsi/s
h0-0c0i0l0) failed

Is there a better command (or am I doing something wrong
with scsidev). BTW... fdisk is not quite doing it for me.

(3) Why might I not be seeing the other two LUNs (located at
lun 1 & lun 2)?

Thanks In Advance.
Milton

niverson 09-23-2003 10:10 AM

Have you gone to /usr/src/linux-2.x and done a 'make xconfig' to create a kernel configurator xwindow. Inside xconfig load the config file from /boot. You can then see what options are selected in the various kernel fields.


Enabling multiple LUNs is an option in the SCSI submenu.
Nate

Thymox 09-23-2003 05:48 PM

Or, for a quick check, go into your Linux source directory (/usr/src/linux-X.X.X) and type cat .config | grep -i "lun". If you see a line like this: CONFIG_SCSI_MULTI_LUN=y, then you do (at least in your .config file - so presumably in your running kernel it compiliing went OK). If not, then possibly not.


All times are GMT -5. The time now is 08:05 AM.