1、申请并挂载共享存储
2、安装multipadthd服务
[root@localhost ~]# yum install -y multipadthd
[root@localhost ~]# systemctl enable multipadthd
[root@localhost ~]# yum list |grep multipadthd
[root@localhost ~]# systemctl list-unit-files -t service |grep multipadthd
3、生成multipadth配置文件
#创建multipadth.conf
[root@localhost ~]# mpathconf --enable
[root@localhost ~]# cat /etc/multipath.conf
# This is a basic configuration file with some examples, for device mapper
# multipath.
#
# For a complete list of the default configuration values, run either
# multipath -t
# or
# multipathd show config
#
# For a list of configuration options with descriptions, see the multipath.conf
# man page## By default, devices with vendor = "IBM" and product = "S/390.*" are
## blacklisted. To enable mulitpathing on these devies, uncomment the
## following lines.
#blacklist_exceptions {
# device {
# vendor "IBM"
# product "S/390.*"
# }
#}## Use user friendly names, instead of using WWIDs as names.
defaults {user_friendly_names yesfind_multipaths yes
}
##
## Here is an example of how to configure some standard options.
##
#
#defaults {
# polli