这次是在真机上的安装,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 p_w_picpath...
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 p_w_picpath...
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 = <DOWN>, 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号

 

转载请注明:

本文转自:http://www.liusuping.com/ubuntu-linux/redhat-linux-hba-wwn.html