加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Oracle Linux 6.9下安装并配置多路径multipath

发布时间:2020-12-12 14:08:04 所属栏目:百科 来源:网络整理
导读:1、 安装multipath工具 #yum–yinstalldevice-mapperdevice-mapper-multipath 2、 设置开机自启动 #chkconfigmultipathdon 3、 开启multipath #mpathconf--enable 或者使用完整命令:mpathconf --enable --find_multipaths y --with_multipathd y --with_chk

1、安装multipath工具

#yum–yinstalldevice-mapperdevice-mapper-multipath


2、设置开机自启动

#chkconfigmultipathdon


3、开启multipath

#mpathconf--enable


或者使用完整命令:mpathconf --enable --find_multipaths y --with_multipathd y --with_chkconfig y


4、开启服务

#servicemultipathdrestart


5、查看状态

#multipath-ll

出现以下状态表示启动正常


6、创建分区:fdisk /dev/mapper/DATA01 或 parted /dev/mapper/DATA01


7、查看多路径产生的dm盘

#ls-lrt/dev/mapper/

DATA01是盘;DATA01p1是我创建的分区


8、系统默认不是DATA01这样的命名,而是类似于mpathb这样的命名,可以通过修改/etc/multipath.conf来自定义名称

wwid的值可以通过multipath -ll命令获得

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读