rss· 投稿· 设为首页· 加入收藏· 繁體版
当前位置: 火魔网 » 操作系统 » CentOS

CentOS 5连接HP EVA8000实现multipath

硬件环境:Dell PowerEdge 2850,安装一块HP的HBA卡,Qlogic芯片,具体型号待查。HBA卡连接到光纤交换机,HP EVA 8000通过四根光纤与光纤交换机相连。
操作系统:CentOS 5.2
首先在HP的网络上通过HTTP或FTP下载驱动程序。相应文档也可以从HP网站上下载。
根据文档中的说明,解压缩下载的程序,并执行./INSTALL -f安装,执行时报如下错误:
Cannot compile QLogic driver for this Linux version
Driver build unsuccessful
看起来安装程序不能正确识别操作系统,修改/etc/redhat-release为如下内容:
Red Hat Enterprise Linux Server release 5.2 (Tikanga) [root@setup hp_qla2x00-2007-10-05]# ./INSTALL -f
Writing new /etc/hp_qla2x00.conf...done
Installing hp_qla2x00src RPM...

Preparing... ########################################### [100%]
kernel-devel package is installed
1:hp_qla2x00src ########################################### [100%]
/etc/hp_qla2x00.conf already exists. Using parameters in the current file.
Copying /opt/hp/src/hp_qla2x00src/libqlsdm-ia32.so to /usr/lib/libqlsdm.so
Adding line for libqlsdm.so to /etc/hba.conf
Kernel modules directory: /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/drivers/scsi/qla2xxx
Kernel build directory: /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/build

Building FC driver modules...

make clean
make: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'
make: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'

make -j5 -C /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/build M=/opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25 modules
make: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2100.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2100_fw.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2200.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2200_fw.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2300.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2300_fw.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2322.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2322_fw.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2400.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/ql2400_fw.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_os.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_init.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_mbx.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_iocb.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_isr.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_gs.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_dbg.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_sup.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_rscn.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_attr.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_xioct.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_inioct.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_fo.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_foln.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_cfg.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_cfgln.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_32ioctl.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla_ip.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx_conf.o
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xip.o
HOSTCC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras/qla_nvr
HOSTCC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras/qla_opts
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2100.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2200.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2300.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2322.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2400.o
Building modules, stage 2.
MODPOST
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2100.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2200.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2300.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2322.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2400.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xip.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx.mod.o
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx_conf.mod.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2100.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2200.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2300.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2322.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2400.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xip.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx.ko
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/qla2xxx_conf.ko
make: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'

Copying makefile for intermodule.ko

Building intermodule.ko...

make -C /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/build M=/opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras clean
make: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'
make: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'
-j5 -C /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/build M=/opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras modules
make: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'
CC [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras/intermodule.o
Building modules, stage 2.
MODPOST
CC /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras/intermodule.mod.o
LD [M] /opt/hp/src/hp_qla2x00src/qla2xxx-8.01.07.25/extras/intermodule.ko
make: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5.centos.plus-PAE-i686'

Creating /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/kernel
Copying intermodule.ko to /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/kernel
Copying qla2xxx.ko to /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/drivers/scsi/qla2xxx
Copying qla2300.ko to /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/drivers/scsi/qla2xxx
Copying qla2400.ko to /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/drivers/scsi/qla2xxx
Copying qla2xxx_conf.ko to /lib/modules/2.6.18-92.1.6.el5.centos.plusPAE/kernel/drivers/scsi/qla2xxx
Running depmod -a

adding line to /etc/modprobe.conf: alias scsi_hostadapter2 qla2xxx_conf
adding line to /etc/modprobe.conf: alias scsi_hostadapter3 qla2xxx
adding line to /etc/modprobe.conf: alias scsi_hostadapter4 qla2300
adding line to /etc/modprobe.conf: alias scsi_hostadapter5 qla2400
adding line to /etc/modprobe.conf: options qla2xxx ql2xmaxqdepth=16 qlport_down_retry=30 ql2xloginretrycount=30 ql2xfailover=1 ql2xlbType=1 ql2xautorestore=0xa ConfigRequired=0
Adding "remove qla2xxx" line to /etc/modprobe.conf

Creating new initrd - initrd-2.6.18-92.1.6.el5.centos.plusPAE.img
Creating initial kernel inventory for smart_compile

Making symbolic link from /opt/hp/src/hp_qla2x00src/master.sh to /usr/sbin/hp_compile_qldriver
qla2x00 driver source can be found in /opt/hp/src/hp_qla2x00src

Installing fibreutils...

Preparing... ########################################### [100%]
1:fibreutils ########################################### [100%]

重新启动,或重新加载驱动模块:
# /opt/hp/src/hp_qla2x00src/unload.sh
# modprobe qla2xxx_conf
# modprobe qla2xxx
# modprobe qla2300
# modprobe qla2400
这时候执行fdisk -l,发现已经正常识别磁盘。

设置自动编译选项,使得在升级内核时自动编译相应模块:
[root@setup hp_qla2x00src]# ./set_parm -a
Auto-compile is now set to "yes"
Writing new /etc/hp_qla2x00.conf...done
adding line to /etc/modprobe.conf: alias scsi_hostadapter2 qla2xxx_conf
adding line to /etc/modprobe.conf: alias scsi_hostadapter3 qla2xxx
adding line to /etc/modprobe.conf: alias scsi_hostadapter4 qla2300
adding line to /etc/modprobe.conf: alias scsi_hostadapter5 qla2400
adding line to /etc/modprobe.conf: options qla2xxx ql2xmaxqdepth=16 qlport_down_retry=30 ql2xloginretrycount=30 ql2xfailover=1 ql2xlbType=1 ql2xautorestore=0xa ConfigRequired=0
Adding "remove qla2xxx" line to /etc/modprobe.conf
关于set_parm的用法,可以使用./set_parm -h命令查看。

参考文献:http://h50146.www5.hp.com/products/software/oe/linux/mainstream/support/doc/option/fibre.html。是日文的,但是只要看到几个关键链接就足够了。

顶一下
(0)
踩一下
(0)