1.安装软件
#yum install -y device-mapper*
2.开启并设置开机启动
#systemctl start multipathd && systemctl enable multipathd
3.连接存储
在存储上对主机进行卷映射
4.修改配置文件
注:此配置文件可能存在,也可能不存在,如果存储则修改,如果不存在就直接创建。
#vi /etc/multipath.conf
复制以下内容到配置文件
defaults {
user_friendly_names yes
find_multipaths yes
disable_changed_wwids yes
}
devices {
device {
vendor DellEMC
product PowerStore
path_selector "queue-length 0"
path_grouping_policy group_by_prio
path_checker tur
detect_prio yes
failback immediate
no_path_retry 3
rr_min_io_rq 1
fast_io_fail_tmo 15
max_sector