关于AIX平台下HA环境安装HDLM的步骤

 
前提 产看HDLM与主机和HA的兼容性,确保兼容性。
 
上传HDLM软件
1、将HDLM上传到/tmp下
 修改目录权限chown -R root:staff /tmp/HDLM_AIX066200
 
2、拷贝license文件 可以直接将license文件直接上传到/var/tmp  "license命名规则hdlm_license"
 /var/tmp/hdlm_license
 
3、解压软件 cd /tmp/HDLM_AIX066200/AIX_ODM\HTC_ODM  tar -xvf HDLM_AIX.tar
 
4、安装ODM库 cd /tmp/HDLM_AIX066200/AIX_ODM\HTC_ODM 
  smitty install #安装odm
- 5.0.0.1:  initial install fileset (reboot required)
- 5.0.0.5:  Hitachi storage array model support update
- 5.0.52.1: Hitachi storage array model support update
- 5.0.52.2: Hitachi storage array model support update
- 5.0.52.3: Hitachi storage array model support update
   lslpp -la |grep Hitachi #检查安装软件
 
5、安装HDLM主文件
 smitty install进行安装  DLManager.mpio.rte     6.50.00
 检查安装情况 lslpp -la DLManager.mpio.rte
 
6、修改光纤卡属性
Finish defining the parent device (fscsin). 
# rmdev -l fscsin -R 
 Change the fc_err_recov setting of the parent device (fscsin) to fast_fail. 
# chdev -l fscsi0 -a fc_err_recov=fast_fail 
 Verify that the settings for the parent device (fscsin) are enabled. 
Also, verify that the fc_err_recov setting has been changed to fast_fail. 
# lsattr -El fscsin 
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy TRUE 
 
7、查看并修改HDLM参数设置
查看DLM信息 /usr/DynamicLinkManager/bin/dlnkmgr view -sys
注意 @需要修改的参数
启用健康检查:
#/usr/DynamicLinkManager/bin/dlnkmgr set -pchk on -intvl 10
启用automatic failback:
#/usr/DynamicLinkManager/bin/dlnkmgr set -afb on -intvl 20
 
8、修改磁盘队列深度
AIX操作系统默认队列深度为2,HDS建议改为8。
chdev -l hdisk3 -a queue_depth=8 -a rw_timeout=60 
 
9、创建HACMP参数:
在两台主机分别使用smitty HACMP进入
Communications Applications and Services》HACMP for AIX》Extended Configuration》Extended Resource Configuration》HACMP Extended Resource Configuration》Configure Custom Disk Methods
选择 Add Custom Disk Methods.
 
按照如下填写:
Disk Type (PdDvLn field from CuDv):
disk/fcp/Hitachi
Method to identify ghost disks:
SCSI3
Method to determine if a reserve is held:
/usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_reserve_check
Method to break a reserve:
TARGET
Break reserves in parallel:
false
Method to make the disk available:
MKDEV
选择OK 回车。
 
10、解锁磁盘
chdev -l hdisk3 -a reserve_policy=no_reserve
 
12、重新同步HACMP
 
13、查看链路状态