Home > 存储 > CentOS 5连接HP EVA8000实现multipath

CentOS 5连接HP EVA8000实现multipath

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。是日文的,但是只要看到几个关键链接就足够了。

Categories: 存储 Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin