1、检查操作系统的版本是否满足多路径软件的需求。

        最新的Device Mapper Multipath的版本号为V4.41,支持的Linux系统如下:RHEL 4 Update 6 / RHEL 4 Update 7 / RHEL 4 Update 8 / RHEL 5 Update 2 / RHEL 5 Update 3 / RHEL 5 Update 4 / RHEL 5 Update 5 / SLES 10 - SP2 / SLES 10 - SP3 / SLES 11,如果你的操作系统不在上述列表中,需要在HP网站去下载更老的软件版本。HP Device Mapper Multipath的下载地址为:http://www.hp.com/go/devicemapper/

      检查系统中是否安装了Device Mapper Multipath tools,可以通过命令插卡
#rpm -qa | grep device*,确保系统安装如下RPM包,比如,如果是Redhat Linux As4.8,则需要有如下的安装包
·         For RHEL 4 Update 8:

·         device-mapper-1.02.28-2.el4 or later

·         device-mapper-multipath-0.4.5-35.el4 or later

2、检查HBA卡驱动是否安装正常

#lsmod
qla2xxx              1513504  24
scsi_transport_fc     205040  1 qla2xxx
mptspi                170792  4
mptscsih              196088  1 mptspi
mptbase               287248  2 mptspi,mptscsih
scsi_transport_spi    184056  1 mptspi

#modinfo qla2xxx
filename:       /lib/modules/2.6.18-164.el5/kernel/drivers/scsi/qla2xxx/qla2xxx.ko
version:        8.03.00.10.05.04-k
license:        GPL
description:    QLogic Fibre Channel HBA Driver
author:         QLogic Corporation
srcversion:     AC7B23750E4AA3A4A2E581C

3、获取HBA卡的WWNP号

#more /proc/scsi/qla2xxxx/0  /proc/scsi/qla2xxxx/1
在Redhat Linux上为EVA4400安装多路径软件_第1张图片

4、在EVA Command View中做好磁盘映射

5、安装 HPDMmultipath-4.4.1.tar.gz

     .    a:) Download the HPDM Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.4.1 available at: http://www.hp.com/go/devicemapper.

            b:) Log in as root to the host system.

           c:) Copy the installation tar package to a temporary directory (for example, /tmp/HPDMmultipath).

           d:) Unbundle the package by executing the following commands:

                      #cd /tmp/HPDMmultipath

                     #tar -xvzf HPDMmultipath-4.4.1.tar.gz

                     #cd HPDMmultipath-4.4.1

            e:) Verify that the directory contains the following files and folders:

·         INSTALL

·         README.txt

·         COPYING

·         bin

·         SRPMS

·         conf

·         docs

          f:)  To install HPDM Multipath 4.4.1, execute the following command:

                 #./INSTALL

6、编辑/etc/multipath.conf,正常情况下安装最新版本的HPDM Multipath后,这个文件不需要再改变,看到很多以前的版本,需要改这个文件,可以做更多个性化的设置。

7、使用multipath –ll检查LUN是否挂载成功

mpath2 (360014380024d1db50001200000c80000) dm-3 HP,HSV300
[size=2.0G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=200][active]
\_ 4:0:1:1  sdc 8:32  [active][ready]
\_ 5:0:1:1  sdd 8:48  [active][ready]
\_ 4:0:8:1  sde 8:64  [active][ready]
\_ 5:0:8:1  sdj 8:144 [active][ready]
mpath1 (35001d3800004d350) dm-2 HP 73.4G,ST373455LC
[size=68G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 2:0:6:0  sdb 8:16  [active][ready]

mpath3 (3600508b400090718000150000a3f0000) dm-4 HP,HSV210
[size=3.0G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=200][active]
\_ 4:0:9:1  sdf 8:80  [active][ready]
\_ 4:0:11:1 sdh 8:112 [active][ready]
\_ 5:0:9:1  sdk 8:160 [active][ready]
\_ 5:0:11:1 sdm 8:192 [active][ready]
\_ round-robin 0 [prio=40][enabled]
\_ 4:0:10:1 sdg 8:96  [active][ready]
\_ 4:0:12:1 sdi 8:128 [active][ready]
\_ 5:0:10:1 sdl 8:176 [active][ready]
\_ 5:0:12:1 sdn 8:208 [active][ready]

8、挂载成功后,使用fdisk /dev/mapper/mpath*来分区了