华为机密,未经许可不得扩散资料编码产品名称DeviceMapperMultipath使用对象华为工程师、合作方工程师产品版本编写部门多路径Linux组资料版本V1.0DeviceMapperMultipath配置指导书拟制:成林/90006999日期:2013-2-4审核:日期:批准:日期:华为技术有限公司版权所有侵权必究DeviceMapperMultipath配置指导书文档密级:内部公开华为机密,未经许可不得扩散修订记录日期修订版本描述作者2013-2-4V1.0整理、初稿成林DeviceMapperMultipath配置指导书文档密级:2020-1-11华为机密,未经许可不得扩散第1页,共16页目录目录..........................................................................................................................................1前言..........................................................................................................................................31检查系统DM-Multipath............................................................................................................41.1检查DM-Multipath是否正确安装.........................................................................................41.2查看DM-Multipath版本........................................................................................................51.3检查DM-Multipath配置文件.................................................................................................51.4检查DM-Multipath服务multipathd是否开机启动..............................................................52修改DM-Multipath配置...........................................................................................................62.1修改multipath.conf文件....................................................................................................62.1.1CentOS6.3对接阵列S5800T配置..............................................................................72.1.2NeoKylinAdvanceLinuxServerV5.6对接阵列18500配置......................................82.2FAQ.........................................................................................................................................92.2.1如何获取阵列vendor及product..................................................................................92.2.2DM-Multipath可用的磁盘在哪里.................................................................................93注意事项.................................................................................................................................113.1集群应用.............................................................................................................................113.2DM-Multipath与UltraPath共存........................................................................................113.3设备屏蔽.............................................................................................................................113.4驱动超时参数......................................................................................................................113.4.1FC驱动......................................................................................................................113.4.2ISCSI驱动..................................................................................................................12附录ADM-Multipath盘符绑定................................................................................................13附录BDM-Multipath磁盘屏蔽................................................................................................14附录C常用命令......................................................................................................................16DeviceMapperMultipath配置指导书文档密级:2020-1-11华为机密,未经许可不得扩散第2页,共16页关键词:DeviceMapperMultipath、配置摘要:本指导书是针对Linux系统自带多路径DeviceMapperMultipath对接我司阵列,配置操作过程中需要的步骤、注意事项等提供的指导,本指导书描述了Multipath配置过程及注意事项。缩略语清单:DM-Multipath(DeviceMapperMultipath):Linux系统自带多路径LUN(LogicalUnitNumber):逻辑单元号ALUA(AsymmetricLogicalUnitAccess):非对称逻辑单元IALUA(ImplicitAsymmetricLogicalUnitAccess):隐式ALUAEALUA(ExplicitAsymmetricLogicalUnitAccess):显式ALUA参考资料清单:无。DeviceMapperMultipath配置指导书文档密级:2020-1-11华为机密,未经许可不得扩散第3页,共16页前言对于以下系统,可参照RedHat系统进行处理。OracleLinuxOracleVMServerAsianuxRocky4Rocky4.2.40系统自带DM-Multipath配置说明见3.6小节。Kylin(NeoKylin)XenServerCentOSFedoraScientificLinux对于以下系统,可参照Debian系统进行处理。UbuntuRocky6对于以下系统,可参考SUSE系统进行处理。UVPDeviceMapperMultipath配置指导书文档密级:2020-1-11华为机密,未经许可不得扩散第4页,共16页1检查系统DM-Multipath1.1检查DM-Multipath是否正确安装执行rpm-qa|grepdevice-mapper命令。查看系统是否安装或者装全DM-Multipath,特别关注multipath相关项。注:对于debian系统,使用deb安装包。执行dpkg-l|grepmultipath命令查询DM-Multipath是否正确安装。例如,ubuntu的DM-Multipath包为multipath-tools。若系统为SAN引导方式,要需要multipath-tools-boot包。如图1-1所示,系统(RedHat6.3)正确安装DeviceMapper时,会有多个rpm包被安装到系统中,其中与Multipath相关的有两个(如图中红框内容)。如果没有安装,或者安装不全,须先从系统安装源获取rpm安装包,进行DM-Multipath的安装。图1-1RedHat6.3DM-Multipath注1:不同版本会有差异,以系统发布版本的实际情况为准。例如,RedHat5.7系统DM-Multipath的rpm包,如图1-2所示。图1-2RedHat5.7DM-Multipath注2:SuSE系统multipath相关rpm包是multipath-tools-*.rpm。例如,SuSE11SP1系统DM-Multipath的rpm包,如图1-3所示。图1-3SuSE11SP1DM-MultipathDeviceMapperMultipath配置指导书文档密级:2020-1-11华为机密,未经许可不得扩散第5页,共16页1.2查看DM-Multipath版本如1-1小节示例,图1-1中RedHat6.3系统中DM-Multipath版本是0.4.9;图1-2中RedHat5.7系统中DM-Multipath版本是0.4.7;图1-3中SuSE11SP1系统中DM-Multipath版本是0.4.8。1.3检查DM-Multipath配置文件查看系统中/etc/multipath.conf文件是否存在。如果不存在,将/usr/share/doc/device-mapper-multipath-*/multipath.conf(RedHat6.3)或/usr/share/doc/device-mapper-multipath-*/multipath.conf.syn