5. 根据udev号码创建multipath配置文件
配置文件如下:
[root@node1 ~]# cat /etc/multipath.conf
defaults {
user_friendly_names no
queue_without_daemon no
flush_on_last_del yes
max_fds max
}
blacklist {
devnode "^hd[a-z]"
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^cciss.*"
}
devices {
device {
vendor "IBM "
product "LUN"
path_grouping_policy group_by_prio
features "3 queue_if_no_path pg_init_retries 50"
getuid_callout"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
path_checkertur
path_selector"round-robin 0"
hardware_handler "1 alua"
failback immediate
rr_weight uniform
rr_min_io 128
}
}
multipaths {
multipath {
wwid360050763008080cd2000000000000008
alias crs
uid501
gid504
}
multipath {
wwid360050763008080cd2000000000000009
alias data1
uid501
gid504
}
multipath {
wwid360050763008080cd200000000000000a
alias data2
uid501
gid504
}
multipath {
wwid360050763008080cd200000000000000b
alias data3
uid501
gid504
}
multipath {
wwid360050763008080cd200000000000000c
alias recovery
uid501
gid504
}
}
配置multipath服务。
chkconfig multipathd on
chkconfig --level 345 multipathd on
modprobe dm-multipath
service multipathd restart
查看结果,配置成功。