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.重启机器后,查看软连接
[[email protected] 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
时间: 2024-10-11 14:05:00