Linux_Multipath配置

 时间:2026-02-12 15:02:09

1、查看磁盘是否映射成功

[root@Server3 ~]# fdisk -l

映射成功,两块磁盘

Linux_Multipath配置

2、执行mpathconf –enable 在/etc下生成配置文件

[root@Server3 ~]# mpathconf --enable

Linux_Multipath配置

3、查看multipath.conf配置文件中的语句是否注释掉

[root@Server3 ~]# vim /etc/multipath.conf

Linux_Multipath配置

Linux_Multipath配置

4、启动multipathd服务

[root@Server3 ~]# service multipathd start

Starting multipathd daemon:                                [  OK  ]

[root@Server3 ~]# multipath -ll

mpathb (360003ff54bbdf1838209b1807716e5db) dm-0 MSFT,Virtual HD

size=9.8G features='0' hwhandler='0' wp=rw

|-+- policy='round-robin 0' prio=1 status=active

| `- 3:0:0:0 sdb 8:16 active ready running

`-+- policy='round-robin 0' prio=1 status=enabled

  `- 2:0:0:0 sdc 8:32 active ready running

Linux_Multipath配置

5、再来一次

[root@Server3 ~]# fdisk -l

发现聚会后的磁盘

Linux_Multipath配置

6、确保multipath daemon开机自动启动

[root@redhat1 ~]# chkconfig --list multipathd

[root@redhat1 ~]# chkconfig multipathd on

[root@redhat1 ~]# chkconfig --list multipathd

注意!有些做完了,重启以后发现磁盘没有了;那因为你没有设置为开机自动启动

7、Linux_Multipath的配置,全部完成;

  • linux上如何检测硬盘坏道与坏块
  • 向中文 Win 10 的 Outlook 中添加 exchange
  • 腾讯公共DNS是什么,怎么使用公共DNS
  • 没有独立IP,如何控制远程电脑?
  • linux查看所有用户
  • 热门搜索
    武汉旅游 温州旅游 旅游发朋友圈的精美句子 天津旅游 广西旅游景点大全 北京旅游地图 邯郸旅游景点 上海旅游高等专科学校 旅游电子商务 漳州旅游