linux多路径配置HP - P2000

更新时间:2023-12-10 05:21:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

HP P2000+RHEL 5.5多路径配置

由于最新的HP多路径驱动HPDMmultipath-4.4.1最高只支持到RHEL5.5,所以5.6及以上版本的系统无法直接安装该驱动。肯定有人想到了vi一下multipath.conf来解决问题,实际上未必能行得通,本人就经历过一次失败。

因为HPDMmultipath-4.4.1在安装的时候会检察操作系统的版本,高于5.5的话肯定要报错,安装失败。解决的办法很简单,修改文件。

将安装包用tar命令解开后,直接编辑install文件,修改sub check_OS_version() {字段里的内容,可以照抄添加一行

\”,也可以直接修改。

保存并退出后,直接就可以执行安装了

配置好LUN之后在主机上执行一下操作: multipath -ll fdisk -l

1.执行以下操作

chkconfig --add multipathd chkconfigmultipathd on modprobe dm-multipath modprobe dm-round-robin service multipathd start multipath –v2

2.安装HP多路径软件;

tar -xzvf HPDMmultipath-4.4.1.tar.gz

cd /tmp/HPDMmultipath-4.4.1

[root@localhost HPDMmultipath-4.4.1]# ./INSTALL

** HPDMmultipath-4.4.1 kit Installation. Date : Tue Feb 14 15:58:58 CST 2012 **

Checking for the Operating System version. Please wait...

HP Device Mapper Multipath v4.4.1 kit - Installation Menu

1. Install HPDM Multipath Utilities 2. Uninstall HPDM Multipath Utilities 3. Exit

Enter choice [1/2/3] : 1

Note: This will install HPDMmultipath-4.4.1 tools for HP StorageWorks disk arrays.

Warning: If you are retaining the existing /etc/multipath.conf file, you will have to manually edit the file with HP recommended parameters. Please refer user documentation for more details.

Would you like to overwrite the existing /etc/multipath.conf file with the new multipath configuration file ? (y/n) : y

Saving /etc/multipath.conf file to /etc/multipath.conf.savefile

Copying new multipath configuration file multipath.conf to /etc directory

Configuring multipath services to start at boot time....OK

Installation completed successfully!

3. vi /etc/multipath.conf

### Donot edit the first two lines of this file or remove this file ### HP Device Mapper Multipath Enablement Kit v4.4.1

### The Device Mapper Multipath Template configuration file for RHEL5U4 ### or later releases to be used with HP Storageworks Arrays.

### Use this configuration file as your /etc/multipath.conf file. ### If you already have a valid working configuration file, refer here ### for the recommended configuration for HP arrays.

### For a list of configuration options with descriptions, please refer ### to /usr/share/doc//multipath.conf.annotated

# The defaults section

defaults { udev_dir/dev polling_interval10 selector\path_grouping_policyfailover

getuid_callout\prio_callout\path_checkertur rr_min_io100

rr_weight uniform failbackimmediate no_path_retry12 user_friendly_namesyes }

# The blacklist section - use this to blacklist a multipath device based on # it's wwid ( using wwid ) or device names ( using devnode ) or # vendor and product id ( using device block).

blacklist {

#wwid26353900f02796769

devnode\devnode \#devnode\#device { #vendor \#product\#} }

# The blacklist_exceptions section - to list device names to be treated # as multipath candidates even if they are on the blacklist.

# Note: blacklist exceptions are only valid in the same class.

# It is not possible to blacklist devices using the devnode keyword # and to exclude some devices of them using the wwid keyword.

#blacklist_exceptions { #wwid2345234245647657 #devnode\#device { #vendor\#product\#} #}

# The multipaths section - uncomment this section to define a per multipath # device settings.

multipaths {

# uncomment the multipath block to modify the settings of a multipath device # based on its wwid

multipath {

wwid 3600c0ff000134c44f69f3a4f01000000 alias mpath1

path_grouping_policy group_by_prio path_selector \ failback immediate rr_weight uniform no_path_retry 10 rr_min_io 100 }

multipath {

wwid 3600c0ff000134c44bc9f3a4f01000000 alias mpath0

path_grouping_policy group_by_prio path_selector \ failback immediate rr_weight uniform no_path_retry 10 rr_min_io 100 }

}

# The devices section - used to define per storage array model settings

devices {

# If you are already using a valid configuration file and do not have a

# device subsection for HP arrays, please add the appropriate device subsection # for the respective arrays from the entries below.

# If you already have a device subsection for HP arrays which has different # parameters from the entries below, modify it appropriately.

# For EVA A/A arrays

#device {

#vendor\

#product \#path_grouping_policygroup_by_prio

# getuid_callout\# path_checkertur

# path_selector\

# prio_callout\# rr_weightuniform # failbackimmediate #hardware_handler\# no_path_retry18 #rr_min_io100 #}

# For HP P2000 family device {

vendor \

product \ path_grouping_policy group_by_prio

getuid_callout \ path_checker tur

path_selector \

prio_callout \ rr_weight uniform failback immediate hardware_handler \

本文来源:https://www.bwwdw.com/article/pv95.html

Top