1、安装多路径软件包:
device-mapper-1.02.67-2.el5
device-mapper-event-1.02.67.2.el5
device-mapper-multipath-0.4.7-48.el5
2、设置开机启动,并检查安装包是否正常:
chkconfig --level 345 multipathd on
lsmod |grep dm_multipath
3、配置multipathd 使其正常工作,编辑/etc/multipath.conf,开放如下内容:
4、并关闭如下内容
5、完成之后执行如下命令发现多路径:
6、重启服务器后,我们可以看到多路径信息了:
7、通过fdisk 看可以生成了DM-0/DM-1两个盘,正是上面sdc/sde,sdb/sdd多路径后出来的:
8、我们同时也可以在/dev/mapper目录中查看到多路径映射的信息:
9、参考:
<a target="_blank" href="http://www.prudentwoo.com/wp-content/uploads/downloads/2013/11/Red_Hat_Enterprise_Linux-5-DM_Multipath-en-US.pdf">Red_Hat_Enterprise_Linux-5-DM_Multipath-en-US.pdf</a>
<a target="_blank" href="http://www.prudentwoo.com/wp-content/uploads/downloads/2013/11/Red_Hat_Enterprise_Linux-5-DM_Multipath-zh-CN.pdf">Red_Hat_Enterprise_Linux-5-DM_Multipath-zh-CN.pdf</a>
<a target="_blank" href="http://www.prudentwoo.com/wp-content/uploads/downloads/2013/11/Red_Hat_Enterprise_Linux-6-DM_Multipath-en-US.pdf">Red_Hat_Enterprise_Linux-6-DM_Multipath-en-US.pdf</a>
<a target="_blank" href="http://www.prudentwoo.com/wp-content/uploads/downloads/2013/11/Red_Hat_Enterprise_Linux-6-DM_Multipath-zh-CN.pdf">Red_Hat_Enterprise_Linux-6-DM_Multipath-zh-CN.pdf</a>