2012年(33)
分类: LINUX
2012-03-01 22:37:09
一、老版本的FC HBA卡驱动安装(qlinstall命令直接安装):
1、首先下载Qlogic HBA卡的驱动(qlafc-linux-8.02.23-3-install.tgz),上传到tmp目录,解压缩,并进入解压
缩目录
[root@redhat tmp]# cd qlafc-linux-8.02.23-3-install
2、解压缩后生成的文件:
[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
3、执行安装命令:
[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 #
#*********************************************************#
4、安装成功
如果在/proc/scsi/目录下出现qla2xxx/目录说明安装已经成功,设备正常运行
[root@redhat qlafc-linux-8.02.23-3-install]# cat /proc/scsi/qla2xxx/5 |grep adapter-port
scsi-qla0-adapter-port=2100001b321e75a6;
[root@redhat qlafc-linux-8.02.23-3-install]#
5、查看驱动版本:
$ rpm -qa |grep qla
qla2xxx-v8.02.23-3
6、qlinstall命令其他参数
qlinstall -h 查看帮助
qlinstall -i 安装
qlinstall -up 升级
qlinstall -u 卸载
二、新版本驱动安装(源码,src,需要手工生产ko文件)
1、第一种方法
看自带的readme文件
2、第二种方法
先安装老版本如8.02.23
然后,解压新版本
:~ $ tar -xzf qla2xxx-src-8.03.01.06.05.06-k.tar.gz
:~ $ cd qla2xxx-src-8.03.01.06.05.06-k
$
使用make命令指定-C参数,在当前目录生成.ko文件
$ make -C /usr/src/kernels/2.6.18-164.el5
-x86_64 M=`pwd` modules
make: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_os.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_init.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_mbx.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_iocb.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_isr.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_gs.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_dbg.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_sup.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_attr.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_mid.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla_nlnk.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2100_fw.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2200_fw.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2300_fw.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2322_fw.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2400_fw.o
CC [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/ql2500_fw.o
LD [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla2xxx.o
Building modules, stage 2.
MODPOST
CC /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla2xxx.mod.o
LD [M] /home/jason.wy/qla2xxx-src-8.03.01.06.05.06-k/qla2xxx.ko
make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
将新生产的qla2xxx.ko文件,替换老版本的qla2xxx.ko文件
以下内容为补充:
6、查看HBA卡模块的信息
$ /sbin/modinfo qla2xxx|head
filename: /lib/modules/2.6.18-164.el5/kernel/drivers/scsi/qla2xxx/qla2xxx.ko
version: 8.02.23
license: GPL
description: QLogic Fibre Channel HBA Driver
author: QLogic Corporation
srcversion: BBC3E01BB8B551306290FC7
alias: pci:v00001077d00002532sv*sd*bc*sc*i*
alias: pci:v00001077d00005432sv*sd*bc*sc*i*
alias: pci:v00001077d00005422sv*sd*bc*sc*i*
alias: pci:v00001077d00008432sv*sd*bc*sc*i*
zjcnew2014-09-27 09:44:03
hp qlogic fc hba卡驱动,HP Storage Fibre Channel 适配器驱动程序,适用于 HP Qlogic CNA、HBA 和 mezzanine HBA 的 Linux FCoE/FC 驱动程序套件
QLogic QMH2562 8Gb 光纤信道主机总线适配器(用于 c-Class BladeSystem)
QLogic QMH2462 4Gb 光纤信道主机总线适配器(用于 c-Class BladeSystem)
支持QLogic ISP 2432-based 4Gb Fibre Channel HBA卡
下载地址:http://kuai.xunlei.com/d/rNHUAD02hYwlVAQAb78