Redhat Linux下安裝HBA卡並檢視WWN號

shilei1發表於2013-09-07

這次是在真機上的安裝,HBA卡的型號是QLA2460。

首先下載Qlogic HBA卡的驅動,上傳到tmp目錄,解壓縮,並進入解壓縮目錄

[root@redhat tmp]# cd qlafc-linux-8.02.23-3-install

解壓縮後生成的檔案

[root@redhat qlafc-linux-8.02.23-3-install]# ls
agents      qla2xxx-v8.02.23-3.noarch.rpm  ql-pci.ids            scli-1.7.2-7.i386.rpm  scli-1.7.2-7.ppc64.rpm
LinuxTools  qlinstall                      README.qlinstall.txt  scli-1.7.2-7.ia64.rpm  set_driver_param

執行安裝命令,之前我安裝了一個低版本的沒安裝成功,下面是升級安裝的介面

[root@redhat qlafc-linux-8.02.23-3-install]# ./qlinstall

#*********************************************************#
#           SANsurfer Driver Installer for Linux          #
#             Installer Version:  1.01.00pre22            #
#*********************************************************#

Kernel version: 2.6.18-164.el5
Distribution: Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Found following QLogic Adapter in the system
    1. QLE2460
Installation will begin for following driver
    1. qla2xxx version: v8.02.23

Warning: Found an installed driver. Version: v8.01.06
Overriding the already installed version....

Unloading any loaded drivers
Uninstall of rpm version v8.01.06-1 beginning...

Restoring original QLogic drivers....

Removing installation changes from /etc/modprobe.conf....

Building module dependency....
depmod...

QLA2XXX -- Rebuilding ramdisk image...
Removing QLogic HBA API library...
Done.
Installing scli....
Preparing packages for installation...
scli-1.7.2-7

Installing Driver...
Preparing...                ##################################################
qla2xxx                     ##################################################

QLA2XXX -- Building the qla2xxx driver, please wait...
Installing intermodule.ko in /lib/modules/2.6.18-164.el5/kernel/kernel/
 


QLA2XXX -- Installing the qla2xxx modules to 
/lib/modules/2.6.18-164.el5/kernel/drivers/scsi/qla2xxx/...

Setting up QLogic HBA API library...
Please make sure the /usr/lib/libqlsdm.so file is not in use.
Installing ia32 api binary.
Library 4.00 build25 already installed at /usr/lib/libqlsdm.so.
Done.

Loading module qla2xxx_conf version: v8.02.23....
Loaded module qla2xxx_conf
Loading module qla2xxx version: v8.02.23....
Loaded module qla2xxx


Building default persistent binding using SCLI
Warning: PrefOpenPreferenceFile: Failed to open preference file (/etc/agent.properties).

Saved copy of /etc/modprobe.conf as
/usr/src/qlogic/v8.02.23-3/backup/modprobe.conf-2.6.18-164.el5-082110-015423.bak

Saved copy of /boot/initrd-2.6.18-164.el5.img as
/boot/initrd-2.6.18-164.el5_QLI.org
QLA2XXX -- Rebuilding ramdisk image...
Ramdisk created.

Reloading the QLogic FC HBA drivers....
Unloaded module qla2xxx
Loading module qla2xxx_conf version: v8.02.23....
Loaded module qla2xxx_conf
Loading module qla2xxx version: v8.02.23....
Loaded module qla2xxx


Target Information on all HBAs:
==============================
Warning: PrefOpenPreferenceFile: Failed to open preference file (/etc/agent.properties).
--------------------------------------------------------------------------------
HBA Instance 0: QLE2460 Port 1 WWPN 21-00-00-1B-32-1E-75-A6 PortID 00-00-00
--------------------------------------------------------------------------------
No device connected to selected HBA (Instance 0)!
Installing the qlinstall-autoload script. in /etc/init.d/

#*********************************************************#
#               INSTALLATION SUCCESSFUL!!                 #
#    SANsurfer Driver installation for Linux completed    #
#*********************************************************#

安裝成功

如果在/proc/scsi/目錄下出現qla2xxx/目錄說明安裝已經成功,裝置正常執行

[root@redhat qlafc-linux-8.02.23-3-install]# cat /proc/scsi/qla2xxx/5 
QLogic PCI to Fibre Channel Host Adapter for QLE2460:
        Firmware version 4.06.03 [IP] [84XX] , Driver version 8.02.23
BIOS version 1.24
FCODE version 1.24
EFI version 1.08
Flash FW version 4.00.26 0002
ISP: ISP2432, Serial# RFC0712U08693
Request Queue = 0x36100000, Response Queue = 0x359b0000
Request Queue count = 4096, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 4159
    Device queue depth = 0x10
Number of free request entries = 4095
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 = , flags = 0x5803
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout = 045
Port down retry = 045
Login retry count = 045
Commands retried with dropped frame(s) = 0
Product ID = 0000 0000 0000 0000


SCSI Device Information:
scsi-qla0-adapter-node=2000001b321e75a6;
scsi-qla0-adapter-port=2100001b321e75a6;

FC Port Information:

SCSI LUN Information:
(Id:Lun)  * - indicates lun is not registered with the OS.
[root@redhat qlafc-linux-8.02.23-3-install]#

紅色標註的就是HBA卡的WWN號

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-772335/,如需轉載,請註明出處,否則將追究法律責任。

相關文章