qla2300 woes 2005-10-24 - By Lee Whatley, Contractor
Back Hi All,
I recently installed a Qlogic 2300 HBA on a RHEL v3 U6 (2.4.21-37.ELsmp) system (AMD64). The HBA has two ports and both are directly connected to a StorageTek D178 array. The D178 is sharing out 6 LUNS.
When I booted the machine for the first time, kudzu recognized the qla2300 card and modified my modules.conf file to include "alias scsi_hostadapter3 qla2300". It did not remake the initrd in order to load the module on boot, so I did that by hand with "mkinitrd -f".
Now when the system boots it loads the qla2300 module and the kernel sees the HBA and its two ports. No LUNS seem to show up however. Doing a "cat /proc/scsi/scsi" only shows my locally-attached scsi disks. Doing a "cat /proc/scsi/qla2300/6 (or 7 for the second port)" outputs the following:
-- ---- ---- ---- ---- ---- --- QLogic PCI to Fibre Channel Host Adapter for QLA2342: Firmware version: 3.03.11, Driver version 7.05.00-RH1 Entry address = ffffffffa076b0c0 HBA: QLA2312 , Serial# G76899 Request Queue = 0xc238000, Response Queue = 0xc241000 Request Queue count= 512, Response Queue count= 512 Total number of active commands = 0 Total number of interrupts = 8 Total number of IOCBs (used/max) = (0/600) Total number of queued commands = 0 Device queue depth = 0x20 Number of free request entries = 503 Number of mailbox timeouts = 0 Number of ISP aborts = 0 Number of loop resyncs = 0 Number of retries for empty slots = 0 Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0 Host adapter:loop state= <READY>, flags= 0x860a13 Dpc flags = 0x1000000 MBX flags = 0x0 SRB Free Count = 4096 Link down Timeout = 000 Port down retry = 030 Login retry count = 030 Commands retried with dropped frame(s) = 0 Configured characteristic impedence: 50 ohms Configured data rate: 1-2 Gb/sec auto-negotiate
SCSI Device Information: scsi-qla0-adapter-node=200000e08b0a2354; scsi-qla0-adapter-port=210000e08b0a2354; scsi-qla0-target-0 (See http://get-0.ora-code.com)=200200a0b80ccd6e;
SCSI LUN Information: (Id:Lun) * - indicates lun is not registered with the OS. ( 0: 0): Total reqs 2, Pending reqs 0, flags 0x0*, 0:0:00, ( 0: 1): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, ( 0: 2): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, ( 0: 3): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, ( 0: 4): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, ( 0: 5): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, ( 0:31): Total reqs 1, Pending reqs 0, flags 0x0*, 0:0:00, -- ---- ---- ---- ---- -----
As you can see there are LUNS shown at the bottom, but the are "not registered with the OS". Since the OS for some reason isn't automatically seeing them, I tried installing them manually using "scsi add-single-device 6 0 0 0" replacing the last 0 with 1-5 and 31 for the rest of the LUNS. Now the LUNS show up in /proc/scsi/scsi, but as generic devices (/dev/sg3-sg9) instead of as disk devices. In addition, /proc/scsi/scsi seems to think that they are printers!
Output of "cat /proc/scsi/scsi": ---local disks removed-- Host: scsi6 Channel: 00 Id: 00 Lun: 00 Vendor: WJ Model: Rev: m Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 01 Vendor: WJ Model: Rev: u Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 02 Vendor: WJ Model: Rev: o Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 03 Vendor: WJ Model: Rev: n Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 04 Vendor: WJ Model: Rev: o Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 05 Vendor: WJ Model: Rev: u Type: Printer ANSI SCSI revision: ffffffff Host: scsi6 Channel: 00 Id: 00 Lun: 31 Vendor: WJ Model: Rev: }o Type: Printer ANSI SCSI revision: ffffffff -- ---- ---- ---- ---- ---- ----
Has anyone ever seen this behavior before? How do I get the OS to see the disks as disks and not printers? How do I get the OS to automatically load those LUNS without having to echo anything to /proc?
Any help or insight would be greatly appreciated.
Thanks, -Lee
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|