domingo, 17 de enero de 2016

Instalar Tarjeta de fibra en Ubuntu HOW TO CONFIGURAR TARJETA QLA2340

Configuración QLA2340 en Ubuntu 6.10 con IBM DS4800 SAN (Storage Manager)
(borrador 0.1)
El soporte oficial tanto desde IBM como desde Qlogic sólo incluye RH y Suse. Nosotros utilizamos los de RH, así que hay que instalar rpm() y utilizarlo siempre con "--nodeps". También es necesario cambiar el enlace /bin/sh para que apunte a /bin/bash y **no** a /bin/dash.

Los drivers qla2xxx que vienen con la distro no parecen funcionar aunque se dejan instalar en el kernel.

Bajar el código fuente de Qlogic desde aquí
http://support.qlogic.com/support/os_detail_all.aspx?OS=Linux%20Red%20Hat%20(32BIT)&OSID=26&catid=82&pid=253&product=QLA2340&category=39&type=FCHBASolaris&nosid=22
README para los drivers:
http://download.qlogic.com/drivers/60491/readme_driver_8010715.html#installing
Informe Gentoo sobre las instalación de un HBA Qlogic
http://gentoo-wiki.com/HOWTO_Boot_From_SAN
Qlogic instalación de los drivers
http://download.qlogic.com/drivers/60491/readme_driver_8010715.html#installing
IBM readme para las version 8.01 con RH
ftp://ftp.software.ibm.com/systems/support/system_x/ibm_dd_ds4kfc_8.01.07-kx_linux2.6_anycpu.txt

$ mkdir src
$ cd src
$ tar xzf ../qla2xxx-v8.01.07.15-2-dist.tgz
$ cd qlogic
  • Lanzar script de instalación de binarios
$ ./drvrsetup
$ cd qla2xxx-8.01.07.15
$ extras/build.sh
$ sudo extras/build.sh install
Password:
QLA2XXX -- Building the qla2xxx driver, please wait...
QLA2XXX -- Build done.
QLA2XXX -- Installing the qla2xxx modules to
/lib/modules/2.6.17-10-server/kernel/drivers/scsi/qla2xxx/...
$ sudo /sbin/modinfo qla2300
filename: /lib/modules/2.6.17-10-server/kernel/drivers/scsi/qla2xxx/qla2300.ko
author: QLogic Corporation
description: QLogic ISP23xx FC-SCSI Host Bus Adapter driver
license: GPL
version: 8.01.07.15
vermagic: 2.6.17-10-server SMP mod_unload 686 REGPARM gcc-4.1
depends: qla2xxx
alias: pci:v00001077d00002300sv*sd*bc*sc*i*
alias: pci:v00001077d00002312sv*sd*bc*sc*i*
alias: pci:v00001077d00006312sv*sd*bc*sc*i*
srcversion: 7B4DC93265AC4A03C852B1E
  • Sin estos no usa los drivers nuevos al botar
$ depmod -a
$ update-initramfs -c -k `uname -r`
$ cat /etc/modules.d/qlogic
$ alias scsi_hostadapter0 qla2xxx_conf
$ alias scsi_hostadapter1 qla2300
options scsi_mod max_luns=128
options qla2xxx ql2xextended_error_logging=1 ql2xfailover=0
$ lsmod | grep ql
qla2300 127232 0
qla2xxx 312952 1 qla2300
qla2xxx_conf 302980 1
intermodule 5508 2 qla2xxx,qla2xxx_conf
scsi_mod 144392 2 qla2xxx,scsi_transport_fc
$ tail /var/log/syslog
Nov 8 10:12:05 norway kernel: [43022228.800000] ACPI: PCI Interrupt 0000:00:0f.0[A] -> GSI 18 (level, low) -> IRQ 177
Nov 8 10:12:05 norway kernel: [ 43022228.800000] qla2300 0000:00:0f.0: Found an ISP2312, irq 177, iobase 0xde8da000
Nov 8 10:12:05 norway kernel: [43022228.800000] qla2300 0000:00:0f.0: Configuring PCI space...
Nov 8 10:12:05 norway kernel: [43022228.800000 ] qla2300 0000:00:0f.0: Configure NVRAM parameters...
Nov 8 10:12:05 norway kernel: [43022228.900000] qla2300 0000:00:0f.0: Verifying loaded RISC code...
Nov 8 10:12:05 norway kernel: [43022228.970000] qla2300 0000:00: 0f.0: Allocated (412 KB) for firmware dump...
Nov 8 10:12:05 norway kernel: [43022229.000000] qla2300 0000:00:0f.0: Waiting for LIP to complete...
Nov 8 10:12:07 norway kernel: [43022231.550000] qla2300 0000:00:0f.0 : LIP reset occured (f700).
Nov 8 10:12:07 norway kernel: [43022231.560000] qla2300 0000:00:0f.0: LIP occured (f700).
Nov 8 10:12:07 norway kernel: [43022231.580000] qla2300 0000:00:0f.0: LOOP UP detected (2 Gbps).
Nov 8 10:12:07 norway kernel: [43022231.620000] qla2300 0000:00:0f.0: Topology - (F_Port), Host Loop address 0xffff
Nov 8 10:12:07 norway kernel: [43022231.710000] scsi1 : qla2xxx
Nov 8 10:12:07 norway kernel: [ 43022231.710000] qla2300 0000:00:0f.0:
Nov 8 10:12:07 norway kernel: [43022231.710000] QLogic Fibre Channel HBA Driver: 8.01.07.15-fo
Nov 8 10:12:07 norway kernel: [43022231.710000] QLogic QLA2340 - 133MHz PCI-X to 2Gb FC, Single Channel
Nov 8 10:12:07 norway kernel: [43022231.710000] ISP2312: PCI (33 MHz) @ 0000:00:0f.0 hdma+, host#=1, fw=3.03.19 IPX
$ cat /proc/scsi/qla2xxx/2
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
       Firmware version 3.03.19 IPX, Driver version 8.01.07.15-fo

ISP: ISP2312, Serial# A27379
Request Queue = 0x1cf40000, Response Queue = 0x1cf30000
Request Queue count = 2048, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 85
   Device queue depth = 0x10

Number of free request entries = 2046
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
Number of reqs in failover_q= 0
Host adapter:loop state = , flags = 0x41a03
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout = 000
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Product ID = 4953 5020 2020 0002

SCSI Device Information:
scsi-qla0-adapter-node=200000e08b80f36a;
scsi-qla0-adapter-port=210000e08b80f36a;
FC Port Information:
SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with the OS.
$ ln -s /opt/QLogic_Corporation/SANsurferCLI/scli /usr/local/bin/qla-util
$ qla-util
HBA 0: QLA2340 Port 1 WWPN 21-00-00-E0-8B-80-F3-6A Port ID 61-08-13
$ lspci -v -s 0: 0f.0
0:0f.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
       Subsystem: QLogic Corp. Unknown device 0100

       Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 177

       I/O ports at 9800 [size=256]

       Memory at e5800000 (32-bit, non-prefetchable) [size=4K]

       [virtual] Expansion ROM at 20000000 [disabled] [size=128K]

       Capabilities: [44] Power Management version 2

       Capabilities: [4c] PCI-X non-bridge device

       Capabilities: [54] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

       Capabilities: [64] #06 [0080]

  • aquí se nota como el driver selecciona el número PCI de su dispositivo
$ modprobe --showconfig | grep alias | grep qla
alias scsi_hostadapter0 qla2xxx_conf
alias scsi_hostadapter1 qla2300
alias pci:v00001077d00002422sv*sd*bc*sc*i* qla2400
alias pci:v00001077d00002432sv*sd*bc*sc*i* qla2400
alias pci:v00001077d00005422sv*sd*bc*sc*i* qla2400
alias pci:v00001077d00005432sv*sd*bc*sc*i* qla2400
alias pci:v00001077d00002322sv*sd*bc*sc*i* qla2322
alias pci:v00001077d00006322sv*sd*bc*sc*i* qla2322
alias pci:v00001077d00002300sv*sd*bc*sc*i* qla2300
alias pci:v00001077d00002312sv*sd*bc*sc*i* qla2300
alias pci:v00001077d00006312sv*sd*bc*sc*i* qla2300
alias pci:v00001077d00002200sv*sd*bc*sc*i* qla2200
alias pci:v00001077d00002100sv*sd*bc*sc*i* qla2100
alias pci:v00001077d00001216sv*sd*bc*sc*i* qla1280
alias pci:v00001077d00001020sv*sd*bc*sc*i* qla1280
alias pci:v00001077d00001080sv*sd*bc*sc*i* qla1280
alias pci:v00001077d00001240sv*sd*bc*sc*i* qla1280
alias pci:v00001077d00001280sv*sd*bc*sc*i* qla1280
alias pci:v00001077d00001016sv*sd*bc*sc*i* qla1280
alias symbol:qla2x00_ip_inquiry qla2xxx
alias symbol:qla2x00_remove_one qla2xxx
alias symbol:qla2x00_probe_one qla2xxx
  • ver la opinion de si misma en /proc
$ cat /proc/scsi/qla2xxx/0
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
       Firmware version 3.03.19 IPX, Driver version 8.01.07.15-fo

ISP: ISP2312, Serial# A27379
Request Queue = 0x1cf00000, Response Queue = 0x1ddf0000
Request Queue count = 2048, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 87
   Device queue depth = 0x10

Number of free request entries = 2046
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
Number of reqs in failover_q= 0
Host adapter:loop state = , flags = 0x41a03
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout = 000
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Product ID = 4953 5020 2020 0002

SCSI Device Information:
scsi-qla0-adapter-node=200000e08b80f36a;
scsi-qla0-adapter-port=210000e08b80f36a;
FC Port Information:
SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with the OS.

No hay comentarios:

Publicar un comentario

Nota: solo los miembros de este blog pueden publicar comentarios.