1、准备多路径软件
上传到redhat服务器上
2、检查hdlm版本
# ./installhdlm -v
KAPL09177-I HDLM version: 8.5.2-00
3、准备license文件
手工创建
#mkdir /etc/opt/DynamicLinkManager
#echo "XXXXXXX">/etc/opt/DynamicLinkManager/dlm.lic_key
# cp /etc/opt/DynamicLinkManager/dlm.lic_key /var/tmp/hdlm_license
4、安装
# ./installhdlm
5、检查
# rpm -qi HDLM
Name : HDLM Relocations: (not relocatable)
Version : 8.5.2.0.808 Vendor: Hitachi, Ltd.
Release : 8 Build Date: Mon 10 Apr 2017 04:02:15 PM CST
Install Date: Sun 03 Dec 2017 11:08:16 PM CST Build Host: inspire.hitachi.co.jp
Group : System Environment/Driver Source RPM: HDLM-8.5.2.0.808-8.src.rpm
Size : 25571224 License: All Rights Reserved. Copyright (C) 2014, 2017, Hitachi, Ltd.
Signature : (none)
Packager : Hitachi, Ltd.
Summary : I/O Path Management Software
Description :
HDLM manages paths between a host and storage subsystem.
HDLM evenly distributes the load across paths and switches to another path if there is a failure in a path being used, thus improving system reliability.
# /sbin/dlmcfgmgr -r
KAPL10350-E The HDLM driver(s) is not loaded. Refer to the Messages section of the HDLM User's Guide for instructions to correct this problem.
6、添加环境变量
#vi .bash_profile
PATH=$PATH:/opt/DynamicLinkManager/bin
export PATH
7、启动hdlm管理软件
# /etc/init.d/DLMManager start
Starting DLMManager: [ OK ]
8、重启操作系统
9、查看多路径
[root@xmcs01 ~]# dlnkmgr view -path
Paths:000002 OnlinePaths:000002
PathStatus IO-Count IO-Errors
Online 18 0
PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0003.0000.0000000000000000.0000 HITACHI .OPEN-V .413080 000B00 1F Online Own 12 0 0 sddlmaa
000001 0002.0000.0000000000000000.0000 HITACHI .OPEN-V .413080 000B00 2F Online Own 6 0 0 sddlmaa
KAPL01001-I The HDLM command completed normally. Operation name = view(-vstv), completion time = 2017/12/03 23:21:43
[root@xmcs01 ~]# dlnkmgr view -lu
Product : VSP_Gx00
SerialNumber : 413080
LUs : 1
iLU HDevName Device PathID Status
000B00 sddlmaa /dev/sdb 000000 Online
/dev/sdc 000001 Online
KAPL01001-I The HDLM command completed normally. Operation name = view(-vstv), completion time = 2017/12/03 23:21:50
[root@xmcs01 ~]# dlnkmgr view -sys
HDLM Version : 8.5.2-00
Service Pack Version :
Load Balance : on(extended lio)
Support Cluster :
Elog Level : 3
Elog File Size (KB) : 9900
Number Of Elog Files : 2
Trace Level : 0
Trace File Size (KB) : 1000
Number Of Trace Files : 4
Path Health Checking : on(30)
Auto Failback : on(1)
Reservation Status :
Intermittent Error Monitor : off
Dynamic I/O Path Control : off(10)
HDLM Manager Ver WakeupTime
Alive 8.5.2-00 2017/12/03 23:20:35
HDLM Alert Driver Ver WakeupTime ElogMem Size
Alive 8.5.2-00 2017/12/03 23:20:34 1000
HDLM Driver Ver WakeupTime
Alive 8.5.2-00 2017/12/03 23:20:34
License Type Expiration
Permanent -
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2017/12/03 23:21:54