配置DM-Multipath多路径存储

本文详细介绍了如何在Linux环境中配置DM-Multipath多路径存储,包括申请并挂载共享存储、安装multipathd服务、生成和修改multipath.conf配置文件,以及如何重启服务和执行多路径设备的相关操作。通过配置多路径存储,可以提高系统数据的可靠性与高可用性。
摘要由CSDN通过智能技术生成

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 yes
        find_multipaths yes
}
##
## Here is an example of how to configure some standard options.
##
#
#defaults {
   
#       polling_interval        10
#       path_selector           "round-robin 0"
#       path_grouping_policy    multibus
#       uid_attribute           ID_SERIAL
#       prio                    alua
#       path_checker            readsector0
#       rr_min_io               100
#       max_fds                 8192
#       rr_weight               priorities
#       failback                immediate
#       no_path_retry           fail
#       user_friendly_names     yes
#}
##
<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值