1、查看服务器上HBA卡的wwn:
cat /sys/class/fc_host/host1/port_name
2、在服务器上扫盘:
echo "- - -" > /sys/class/scsi_host/host1/scan
3、配置/etc/multipath.conf(针对inspur as5500系列)
blacklist {
devnode "^sd[a,b,d,e,c,f]"
}
defaults {
user_friendly_names yes
path_grouping_policy group_by_prio
prio alua
path_checker tur
failback immediate
no_path_retry "5"
rr_min_io 1
dev_loss_tmo 120
}
multipaths {
multipath {
wwid 360050767088100d30000000000000009
alias mpath_VOL001
}
multipath {
wwid 360050767088100d30000000000000008
alias mpath_VOL002
}
multipath {
wwid 360050767088100d30000000000000007
alias mpath_VOL003
}
multipath {
wwid 360050767088100d30000000000000006
alias mpath_VOL004
}
}
4、启动服务
systemctl start multipathd.service