linux多路径使用

1.编辑配置文件/etc/multipath.conf

multipaths {
        multipath {
                wwid "36005076300800000000000001a"
                                alias disk1
        }
                multipath {
                wwid "36005076300800000000000001b"
                                alias disk2
        }
        multipath {
                wwid "36005076300800000000000001c"
                                alias disk3
        }
        multipath {
                wwid "36005076300800000000000001d"
                                alias disk4
        }
}

2.启动multipathd服务,及设置其自动启动

service multipathd restart
chkconfig --level 345 multipathd on
chkconfig --list | grep multipathd

3.查看设置

multipath -ll

4.重启机器后,查看软连接

[root@rac1 mpath]# ll
total 0
lrwxrwxrwx 1 root root 7 Dec 13 09:39 disk1 -> ../dm-0
lrwxrwxrwx 1 root root 7 Dec 13 09:39 disk2 -> ../dm-1
lrwxrwxrwx 1 root root 7 Dec 13 09:39 disk3 -> ../dm-3
lrwxrwxrwx 1 root root 7 Dec 13 09:39 disk4 -> ../dm-2

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。