er friendly names已解注,/dev/mapper/中会显示名为example的设备.
4、每次编辑修改multipath.conf文件之后都应该重启multipath服务
[root@localhost ~]# service multipathd restart
|
5、扫描磁盘,建议重启主机reboot后,执行下列命令
[root@localhost ~]multipath -F
[root@localhost ~]#multipath -v2
|
说明:使用上面命令之后,系统中会出现链路聚合之后的dm设备,同时也会在/dev/mapper/、/dev/mpath/目录下生成相应的设备.关于设备,扫描出来的盘若绑定了alias,则盘/dev/mapper下为alias名称,查看聚合后的dm盘则需查看/proc/partitions
[root@localhost ~]# cat /proc/partitions
****************ignore******************************
253 0 94371840 dm-0
253 1 94371840 dm-1
253 2 94371840 dm-2
****************ignore******************************
|
6、查看multipath拓扑结构
[root@localhost ~]# multipath -ll
Mpath1 (3600508a4010c3a920000c00002370000)
[size=40 GB][features="1 queue_if_no_path"][hwhandler="0"]
\_ round-robin 0 [prio=200][active]
\_ 4:0:4:27 sdbs 68:96 [active][ready]
\_ 4:0:6:27 sdey 129:160 [active][ready]
\_ 5:0:4:27 sdka 65:480 [active][ready]
\_ 5:0:6:27 sdng 71:288 [active][ready]
\_ round-robin 0 [prio=40][enabled]
\_ 4:0:5:27 sddi 71:0 [active][ready]
\_ 4:0:7:27 sdgo 132:64 [active][ready]
\_ 5:0:5:27 sdlq 68:384 [active][ready]
\_ 5:0:7:27 sdow 129:448 [active][ready]
|
说明:1、mpath1 有八条路径聚合,大小为40GB,存储对应lun号为27,由HBA卡系统显示为host4、host5扫描得到.关于host,请查看路径/sys/class/scsi_host .并通过查看对应host下的port_name得到对应wwn以确认盘与HBA卡对应关系.
下表中,显示对应光纤卡连接的存储和存储前端端口WWN
[root@localhost ~]# cat /proc/scsi/lpfc/4
lpfc0t00 DID 050600 WWPN 50:00:1f:e1:50:14:f0:f8 WWNN 50:00:1f:e1:50:14:f0:f0
lpfc0t01 DID 050400 WWPN 50:00:1f:e1:50:14:f0:fc WWNN 50:00:1f:e1:50:14:f0:f0
|
结语:本文只是概括性的介绍multipath的基本应用,至于multipath的device属性及优化配置等操作没有详细介绍.后期将会择期介绍一些配置属性.
本文出自 “Today is A gift” 博客,请务必保留此出处http://joycey.blog.51cto.com/4052869/752094
|