|1、查看是否有多路径软件rpm-qa|grepdevice-mapper2、如果没有,安装device-mapper-multipathdevice-mapper在安装盘的Packages中#rpm-ivhdevice-mapper-multipath-libs.*#rpm-ivhdevice-mapper-****.rpm#rpm-ivhdevice-mapper-multipath-**8.rpm3、设置开机启动查看是否开机自启动chkconfig--list|grepmultipathd设置成开机自启动chkconfig--level2345multipathdon检查安装是否正常,内核中是否存在#modprobe-l|grepmultipathkernel/drivers/md/dm-multipath.ko重启加载内核或手工加载#modprobedm-multipath#modprobedm-round-robin#servicemultipathdstart4、生产multipath配置文件#/sbin/mapathcnf--enable#ls/etc/multipath.conf获取wwid的方法1、multipath-v3|grep36002、/var/lib/multipth/bindings但是我没有找到这个文件,可能跟操作系统版本有关。multipath-ll查看多路径servicemultipathdrestartmultipath-F重新定义别名后删除不用的路径multipath-v2重新扫描5、multipath配置文件默认情况下multipath生成dm设备之后,会同时在/dev/mapper/下生成以磁盘wwid为名的符号链接指向对应的dm设备。如果想生成mpath设备,则需要打开user_friendly_names选项defaults{user_friendly_namesyes}blacklist{devnode^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*devnode^hd[a-z]devnode^dcssblk[0-9]*device{vendorDGCproductLUNZ}device{vendorIBMproductS/390.*}device{vendorATA}device{vendor3ware}device{vendorAMCC}device{vendorHPT}wwid3600605b00a9885501d93232c3391b1f1wwidE0AE835EDFA407Adevice{vendorRaritanproductVirtual_Disc_1}wwid*}blacklist_exceptions{wwid36006016066003e000e3d0cd3fc60e511wwid36006016066003e00db37a2c8fc60e511wwid36006016066003e00fdee54ddfc60e511}multipaths{multipath{uid0gid0wwid36006016066003e000e3d0cd3fc60e511mode0600aliasmpathb}multipath{uid0gid0wwid36006016066003e00db37a2c8fc60e511mode0600aliasmpathc}multipath{uid0gid0wwid36006016066003e00fdee54ddfc60e511mode0600aliasmapthd}