關於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、查看鏈路狀態