在san环境下,一般情况下为了防止单点故障,都是多链路,如多hba卡,多光纤交换机。
在aix中默认有多路径软件,但是主备模式,所以一般情况下要装一个多路径软件,实现负载均衡。
wolf_p740db:/tmp/SDDPCM_AIX6_ds5K/Host Attachment for SDDPCM on AIX# ls
devices.fcp.disk.ibm.mpio.rte devices.fcp.disk.ibm.mpio.rte.tar ibmFCPmpio_readme.txt
p740db:/tmp/SDDPCM_AIX6_ds5K# ls
.toc devices.sddpcm.61.2.6.3.1.bff.tar
解压tar文件,把三个文件放到同一个目录下
通过smit installp 选择“./”,直接安装多路径软件,
安装成功后的状态如下
# sddpcm_get_config -Av
Frame id 0:
Storage Subsystem worldwide name: 608e5002c7eb6000050aeea7e
Controller count: 2
Partition count: 1
Partition 0:
Storage Subsystem Name = ''
hdisk LUN # Ownership User Label
hdisk4 0 A (preferred) ha_data1
hdisk5 1 B(preferred) ha_data2
hdisk6 2 A (preferred) ha_back1
hdisk7 3 B(preferred) ha_back2
这里要注意,因为有两个控制器(A控和B控),最好是指定lun走不同的控制器,这样更最佳。
# pcmpath query device
Total Active/Passive Devices : 4
DEV#: 4 DEVICE NAME: hdisk4 TYPE: 1814 ALGORITHM: Load Balance
SERIAL: 60080E50002C82B4000005BF50AF041D
==========================================================================
Path# Adapter/Path Name State Mode Select Errors
0 fscsi2/path0 CLOSE NORMAL 0 0
1 fscsi0/path1 CLOSE NORMAL 22 0
DEV#: 5 DEVICE NAME: hdisk5 TYPE: 1814 ALGORITHM: Load Balance
SERIAL: 60080E50002C82B4000005C450AF047A
==========================================================================
Path# Adapter/Path Name State Mode Select Errors
0 fscsi2/path0 CLOSE NORMAL 0 0
1 fscsi0/path1 CLOSE NORMAL 0 0
DEV#: 6 DEVICE NAME: hdisk6 TYPE: 1814 ALGORITHM: Load Balance
SERIAL: 60080E50002C82B4000005C250AF044A
==========================================================================
Path# Adapter/Path Name State Mode Select Errors
0 fscsi2/path0 CLOSE NORMAL 0 0
1 fscsi0/path1 CLOSE NORMAL 0 0
DEV#: 7 DEVICE NAME: hdisk7 TYPE: 1814 ALGORITHM: Load Balance
SERIAL: 60080E50002C82B4000005C750AF04A1
==========================================================================
Path# Adapter/Path Name State Mode Select Errors
0 fscsi2/path0 CLOSE NORMAL 0 0
1 fscsi0/path1 CLOSE NORMAL 0 0