文稿说明教案red hat enterprise linux5dm multipath zh_第1页
文稿说明教案red hat enterprise linux5dm multipath zh_第2页
文稿说明教案red hat enterprise linux5dm multipath zh_第3页
文稿说明教案red hat enterprise linux5dm multipath zh_第4页
文稿说明教案red hat enterprise linux5dm multipath zh_第5页
已阅读5页,还剩32页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

法律通Copyright©2009RedHat, islicensedbyRedHatundertheCreativeCommonsAttribution-ShareAlike3.0UnportedLicense.Ifyoudistributethis ,oramodifiedversionofit,youmustprovideattributiontoRedHat,Inc.andprovidealinktotheoriginal.Ifthe ismodified,allRedHattrademarksmustbeRedHat,asthelicensorofthis ,waivestherighttoen ,andagreesnottoassert,Section4dofCC-BY-SAtothefullestextentpermittedbyapplicablelaw.RedHat,RedHatEnterpriseLinux,theShadowmanlogo,JBoss,MetaMatrix,Fedora,theInfinityLogo,andRHCEaretrademarksofRedHat,Inc.,registeredintheUnitedStatesandothercountries.Linux®istheregisteredtrademarkofLinusTorvaldsintheUnitedStatesandothercountries.Java®isaregisteredtrademarkofOracleand/oritsaffiliates.XFS®isatrademarkofSiliconGraphicsInternationalCorp.oritssubsidiariesintheUnitedStatesand/orothercountries.MySQL®isaregisteredtrademarkofMySQLABintheUnitedStates,theEuropeanUnionandotherNode.js®isanofficialtrademarkofJoyent.RedHatSoftwareCollectionsisnotformallyrelatedtoorendorsedbytheofficialJoyentNode.jsopensourceorcommercialproject.TheOpenStack®WordMarkandOpenStackLogoareeitherregisteredtrademarks/servicemarksortrademarks/servicemarksoftheOpenStackFoundation,intheUnitedStatesandothercountriesandareusedwiththeOpenStackFoundationspermission.Wearenotaffiliatedwith,endorsedorsponsoredbytheOpenStackFoundation,ortheOpenStackcommunity.Allothertrademarksarethepropertyoftheirrespective本书提供了使用红帽企业Linux5设备1读41读443反44.文档约4.5.约6.6第1设备映1.1DM-MultipathDM-Multipath组DM-Multipath安装

8第2章多路径设 第3章安装DM

第4章DMMultipath配置文配置文件WWID将设备

第5章DMMultipathTheMultipathIssueswithLargeNumberof

Issueswithqueue_if_no_path MultipathCommand MultipathQuerieswithmultipath MultipathCommand 使用dmsetup命令确定设备映射器条 Troubleshootingwiththemultipathd ctive 修订记 索................................................................................ABCDFGHKLMNPQRSUVW前读相关文有关RedHatEnterpriseLinux5RedHatClusterSuite的信息请参考以下资源:LVMAdministrator'sGuide:ConfigurationandAdministration—ProvidesadescriptionoftheLogcalVolumeManager(LVM),includinginformationonrunningLVMinaclusteredenvironment.RedHatClusterSuiteRedHat文档请参考RedHatEnterpriseLinux文档光盘 反 Bookidentifier:DMMultipath(EN)-5(2009-01-BugzillaBesureBookidentifier:DMMultipath(EN)-5(2009-01-BugzillaBymentioningthismanualsidentifier,weknowexactlywhichversionoftheguideyou文档约PDF版本以及纸Liberation字体套件中选出的字体。如果您在您的系统企Linux5以及其后的版本默认Liberation排版约单行 中文件mynextbestsellingnovel的内容,请在s 符后输入catmynextbestsellingnovel命令并按Enter键执行该命令。以上内容包括一个文件名,一个s命令以及一个按键,它们都以固定粗体形式出现,且全部与上下文有按Enter执行该命令。式出现,即固定粗体。例如: 比例按钮、菜单标题以及子菜单标题。例如:在主菜单条中选择「系统」→「首选项」→「鼠标」启动鼠标首选项。在「按钮」中点击「惯用左手鼠标选框并点关闭切换到主鼠标按钮从左向右(让鼠标适合左手使gedit文件中插入特殊字符,请在主菜单栏中选择「应用程序→「附件」「字映射表」。接下来选择从CharacterMap菜单中选择Search→「查 」,在「索」字段输入字符名称并点击「下一个」按钮。此时会在「字符映射表」中突出您搜索的字符。双击突出的字符将其放在「要的文本」字段中,然后点击「」按钮。现在返回您的文档,并选择gedit菜单中的「编辑」→「粘贴」。以上文本包括应用程序名称、系统范围菜单名称及项目、应用程序特定菜单名称以及按钮GUI界面中的文固定粗斜体比例粗斜要使用ssh连接到机器,请在s提示符后输入sshusername@ mountoremountfile-system命令会重新挂载命名的文件系统。例如:要重新挂/home文件系统,则命令为mount-oremount/home要查看目前安装的软件包版本,请rpmqpackage命令。它会返回以下结请注意上述使用黑斜体的文字--username、.name、file-system、package、version和release。抬升式约将发送到终端的输出设定为Mono-spacedRoman并显示为ationdrafts stuffbookstestsDesktop1 imagesnotesscripts源码列表也设为Mono-spacedRoman,但添加下面突出的语staticstaticintkvmvmioctldeassigndevice(structkvm*structkvmassignedpcidev*assigned{intr=structkvmassigneddevkernel*match;mutexlock(&kvm->lock);match=kvmfindassigneddev(&kvm->arch.assigneddevassigneddev->assigneddevif(!match)printk(KERNINFO"%s:devicehasn'tbeenassignedbefore,"socannotbedeassigned\n",r=-EINVAL;goto}kvmdeassigndevice(kvm,assigneddevice(kvm,mutexunlock(&kvm->lock);returnr;}备注注重警第1章设备映射器多路1.1DM-Multipath总DM-Multipath可在主动/配置中提供出错冗余。在主动/配置中,只有一半的路径在每次I/O时都I/O路径的任意元素(电缆、交换机或者控制器)出现DM-Multipath切换到备图1.1“Active/PassiveMultipathConfigurationwithOneRAIDDevice”showsanactive/passiveconfigurationwithtwoI/OpathsfromtheservertoaRAIDdeviceThereare2HBAsontheserver2SANswitches,and2RAIDcontrollers.图1.1.Active/PassiveMultipathConfigurationwithOneRAID在这I/O路径通hba1、SAN11I/O路径通hba2、SAN2以及控制器2。在这个配置中有很多地方可能导致故障:图1.2“Active/PassiveMultipathConfigurationwithTwoRAIDDevices”showsamorecomplexactive/passiveconfigurationwith2HBAsontheserver2SANswitchesand2RAIDdeviceswith2RAIDcontrollerseach.图1.2.Active/PassiveMultipathConfigurationwithTwoRAIDIntheexampleshownin图1.2“Active/PassiveMultipathConfigurationwithTwoRAIDDevices”,therearetwoI/OpathstoeachRAIDdevicejustasthereareintheexampleshownin1.1Active/PassiveMultipathConfigurationwithOneRAIDDevice”).WithDM-Multipathconfigured,afailureatanyofthepointsoftheI/OpathtoeitheroftheRAIDdeviceswillcauseDM-MultipathtoswitchtothealternateI/Opathforthatdevice.1.3Active/ActiveMultipathConfigurationwithOneRAIDDevice”showsanactive/activeconfigurationwith2HBAsontheserver,1SANswitchand2RAIDcontrollersTherearefourI/Opathsfromtheservertoastoragedevice:图1.3.Active/ActiveMultipathConfigurationwithOneRAID1.2.阵列支Bydefault,DM-MultipathincludessupportforthemostcommonstoragearraysthatsupportDM-Multipath.Thesupporteddevicescanbefoundinthemultipath.conf.defaultsfile.IfyourstoragearraysupportsDM-MultipathandisnotconfiguredbydefaultinthisfileyoumayneedtoaddthemtotheDM-Multipathconfigurationfile,multipath.conf.ForinformationontheDM-Multipathconfigurationfile,see第4章DM-Multipath配置文件.DM-Multipath组1.1DM-Multipath组件describesthecomponentsofDM-表1.1.DMMultipath组描dm-multipathkernelmultipathudev程序随时添加块设备initramfs文件系统运。multipathd多路径设备提供互动修改。对/etc/multipath.conf文件的任何为设备中的分区生成设备映射器设备。这个命令DM-MPDOS分区是很必要的。kpartx在其自身软件包中就存在,但device-mapper-multipath软件包要依赖它。DM-Multipath安装以下是为您的系统DM-multipath的基本步骤安装device-mapper-multipathrpmmultipath.conf配置文件:Detailedsetupinstructionsforseveralexamplemultipathconfigurationsareprovidedinsee3第2章多路径没有DM-Multipath,从服务器节点到控制器的所有路径都将被系统视为独立的设备,即便连接相同服务器节点到相同控制器的I/O路径也不例外。DM-Multipath提供了逻辑管理I/O路径的方法,即在基础设多路径设备识别径设备的名称将设为WWID。另外,您还可以在多路径配置文件中设userfriendlynames选项,该选项可将别名设为格式为mpathn的节点唯一名称。:/dev/sda、/dev/sdb、dev/sdc/dev/sdd。DM-WWID的单一设备,该设备可将I/O根据多路径配置重新路由到那四个基础设备。当将userfriendlynames配置设定为yes,会将该多路径设备的名称设定为mpathn。DM-多路径中添加新设备时,这些新设备/dev:/dev/mapper/mpathn、/dev/mpath/mpathn和/dev/dm-n时提供/dev/mpath中的设备是为了方便,这样可在一个 udev设备管理器生成的,且在系统需要它们时不一定能启动。请不要使用这些设备生成逻辑卷或者Forinformationonthemultipathconfigurationdefaults,includingtheuserfriendlyconfigurationoptionsee4.3节“配置文件默认设置Youcanalsosetthenameofamultipathdevicetoanameofyourchoosingbyusingthealiasoptioninthemultipathssectionofthemultipathconfigurationfile.Forinformationonthemultipathssectionofthemultipathconfigurationfile,seesee4.4节“多路径设备配置属性”.在群集中保持多路径设备名称一userfriendlynames配置选项设为yes时,该多路径设备的名称对于节点来说是唯一的,但不保证对使用多路径设备的所有节点都一致。如果您使用LVM生成逻辑设备,这将不会给您造成任何。Usethealiasoptioninthemultipathssectionofthemultipathconfigurationfiletosetthenameofthemultipathdevice.Thealiasforthemultipathdeviceisconsistentacrossallthenodesinacluster.Forinformationonthemultipathssectionofthemultipathconfigurationfile,seesee4.4节“多路径设备配置属性多路径设备Inadditiontotheuserfriendlynamesandaliasoptions,amultipathdevicehasnumerousattributes.Youcanmodifytheseattributesforaspecificmultipathdevicebycreatinganentryforthatdeviceinthemultipathssectionofthemultipathconfigurationfile.Forinformationonthemultipathssectionofthemultipathconfigurationfileseesee4.4节“多路径设备配置属性逻辑卷中的多路径设如果多路径名称为/dev/mapper/mpath0/dev/mapper/mpath0标记为。pvcreatepvcreate滤器以便排除位于多路径设备下的磁盘。这是因为如果阵列在接收I/O时自动将主动路径改为路径,不过滤掉这些设备,无论何时LVM扫描路径时多路径将执行出错冗余并进行出错切换。对于需要使用命令激活路径的主动/阵列,LVM会在发生这种情况时给出警告信息。。filterfilter=["r/disk/","r/sd.*/","a/.*/"第3章DM-在配置文件中添加设安DM-在您的系统DM-Multipath前,请确定您的系统已经进行了升级,其中包括device-mapper-multipath软件包的升级。冗余配置安装blacklistblacklistdevnode}##blacklist devnode"*"#}。Thedefaultvalueofpathgrou issettofailoversointhisexampleyoudonotneedtochangethedefaultvalueForinformationonchangingthevaluesintheconfigurationfiletosomethingotherthanthedefaults,see4DM-Multipath配置文件.为设备的名称将会是该设备WWID别modprobedm-multipathservicemodprobedm-multipathservicemultipathdstartmultipath-v2multipathv2命令输出多路径设备的路径来显示哪些设备是多路径设备。如果没有输出任何结Forfurtherinformationonthemultipathcommandoutputsee5.4“MultipathCommandchkconfigchkconfigmultipathdSincethevalueofuserfriendlynameissettoyesintheconfigurationfilethemultipathdeviceswillbecreatedas/dev/mapper/mpathn.Forinformationonsettingthenameofthedevicetoanaliasofyourchoosingsee4DM-Multipath配置文件在生成多路径设备时忽略逻辑磁确定哪些磁盘是内部磁盘并将其列入,所以执multipathv2会在多路径映射中显示本地磁盘/dev/sdaForfurtherinformationonthemultipathcommandoutputsee5.4“MultipathCommand[root@rh4cluster1~]#multipath-create:SIBM- [size=33\round-robin\0:0:0:0sda device-mapperioctlcmd9failed:Invaliddevice-mapperioctlcmd14failed:Nosuchdeviceoraddresscreate:3600a0b [size=12\round-robin\2:0:0:0sdb\3:0:0:0sdfcreate:[size=12\round-robin\2:0:0:1sdc\3:0:0:1sdgcreate:3600a0b [size=12\round-robin\2:0:0:2sdd\3:0:0:2sdhcreate:3600a0b80001327510000009b [size=12\round-robin\2:0:0:3sde\3:0:0:3sdi要防止设备映射器在其多路径映射中映射/dev/sda,请编辑/etc/multipath.conf文件的blacklist部分,使其包括该设备。尽管您可以使用devnode类型将sda设备列入,但那不是一个安全的步骤,因为在重启是无法保证/dev/sda是同一个名称。要将单独的设备列入,您可以使用那个设备的WWID将其列入。请注意:在multipath-v2命令的输出中,/dev/sda设备的WWID是SIBM-ESXSST336732LC F3ET0EP0Q /etc/multipath.confblacklistblacklistwwidSIBM-}动让serviceservicemultipathdmultipath-Fmultipathmultipath-Fmultipath-v2[root@[root@rh4cluster1~]#multipath-F[root@rh4cluster1~]#multipath-v2create:3600a0b \round-robin\\2:0:0:0sdb3:0:0:0create:[size=12\round-robin\2:0:0:1sdc\3:0:0:1sdgcreate:[size=12\round-robin\2:0:0:2sdd\3:0:0:2sdhcreate:e[size=12\round-robin\\2:0:0:3sde3:0:0:3在多路径数据库中添加multipath.conf.defaults文件,其中包括支持的设备例如:要添加有关HPOpen-V系列,条目示例如下:devicesdevice}

vendor"HP"product"OPEN-V."getuidcallout"/sbin/scsiid-g-u-p0x80-s}Formoreinformationonthedevicessectionoftheconfigurationfilesee4.5节“配置文件设备第4DM-Multipath配置文件支持Multipath大多数通用阵列的支持。默认配置值和支持的设备请参考/usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults文件。您可以通过编辑/etc/multipath.conf配置文件为DM-Multipath覆盖默认配置值。如果需要,您还可配置文件blacklist配置文件defaults配置文件devices在多路径配置文件中,您只需要指定需要的配置,或者您想要修改的在multipath.conf.defaults文配置文件的注释版本请参考/usr/share/doc/device-mapper-0.47/multipath.conf.annotated配置文件blacklist用不是默认支持的阵列,您可能需要为您的阵列创建devices子部分。配置文件blacklistblacklistdevnode}Toenablemultipathingonallofthedevicesthataresupportedbydefaultcommentoutthoselinesasdescribedin第3.1节“安装DM-Multipath”.:ByWWID,asdescribedin第4.2.1节“根据WWID将设备列入Bydevicename,asdescribedin第4.2.2节“根据设备名称将设备列入”Bydevicetype,asdescribedin第4.2.3节“根据设备类型将其加入”Bydefaultavarietyofdevicetypesareblacklistedevenafteryoucommentouttheinitialblacklistsectionoftheconfigurationfile.Forinformation,see第4.2.2节“根据设备名称将设备列入根WWID将设备列入 以下示例显示了在配置文件中可将WWID blacklistblacklist}f根据设备名称将设备列入blacklistblacklistdevnode"^sd[a-}您可以使用配置文件blacklist部分的devnode条目指定要列入的每个设备,而不是指定特定类型的所有设备,我们udev规则的静态映射,我们无法保证在重启后每个设备的名称是一样的。例如:重启后,某个设备的名称可能从/dev/sda变为/dev/sdb。Bydefault,thefollowingdevnodeentriesarecompiledinthedefaultblacklist;thedevicesthattheseentiresblacklistdonotgenerallysupportDM-MultipathToenablemultipathingonanyofthesedevices,youwouldneedtospecifythemintheblacklistexceptionssectionoftheconfigurationfile,asdescribedin第4.2.4节“之外的设备”.blacklistblacklistdevnode"^(ramrawloopfdmddm-srscdst)[0-9]*"devnode"^hd[a-z]"}根据设备类型将其加入blacklistdevice部分指定具体设备类IBMDS4200设备以及所有HP设备都列入了。blacklistdevice}device}

vendorproduct #DS4200Productvendor"HP"product"*"}之外的设Youcanusetheblacklistexceptionssectionoftheconfigurationfiletoenablemultipathingondevicesthathavebeenblacklistedbydefault.Forexample,bydefault,deviceswithvendor="IBM"andproduct="S/390.*"areblacklistedsinceusuallyDASDdevicesareusedforlocalstorage.Ifyoudoneedtoenablemultipathingonthesedevices, mentthefollowinglinesintheconfigurationfile:blacklistblacklist{devicevendor"IBM"product"S/390.*"}}备和该WWID关联也不行。同样,devnode例外也只适用于devnodedevice例外只适用于device条目。配置文件默认设/etc/multipath.confdefaults部分,在该userfriendlynamesdefaultsdefaultsuserfriendlynames}这userfriendlynames参数的默认值#udev#polling#"round-robin#path#getuid"/sbin/scsiid-g-u-s#prio#path#rrmin#max#rr##nopath#userfriendly要覆盖任意配置参数的默认值,您可将这个模板中相关的行到defaults部分并取消其注释。例如:要覆盖pathgrou参数以便用multibus覆盖默认的failover,请将模板中正确的行到配置文件的defaults部分并取消对它的注释,如下。defaultsdefaultsuserfriendlynamespathgrou}4.1多路径配置默认设置describestheattributesthataresetinthedefaultssectionofthemultipath.confconfigurationfile.ThesevaluesareusedbyDM-Multipathunlesstheyareoverwrittenbytheattributesspecifiedinthedevicesandmultipathssectionsofthemultipath.conffile.表41多路径配置默认设描udev ,默/udevpolling认值为round-robin0pathgroufailover=每个优先组multibus=所有有效路径在一个优先组groupbyserial每个检测到的系列号有一个优先组群groupbyprio=每个路径优先值有一个优先组群groupbynodename=每个目标节点名有一个优先组群getuidSpecifiesthedefaultprogramandargumentstocallouttoobtainauniquepathidentifier.Anabsolutepathisrequired.默/sbin/scsiidgusprioSpecifiesthethedefaultprogramandargumentstocallouttoobtainapathpriorityvalue.Forexample,theALUAbitsinSPC-3provideanexploitablepriovalueforexample."none"isavalidvalue.Thedefaultvalueisnocallout,indicatingallpathsareequalpathtur、emcclariion、hpsw和directio。默认值为rrmin数目。默认值为1000。max(RHEL5.2以及之后的版本)会multipathd进程设定打开文件rrIfsettopriorities,theninsteadofsendingrrminiorequeststoapathbeforecallingselectortochoosethenextpath,thenumberofrequeststosendisdeterminedbyrrminiotimesthepathspriority,asdeterminedbythepriocalloutprogram.Currently,thereareprioritycalloutsonlyfordevicesthatusethegroupbypriopathgrou,whichmeansthatallthepathsinapathgroupwillalwayshavethesamepriority.数0immediate指定一旦存在优先权高于现有路径组群的路nopathfail值表明立即失败,无需排队。queue值表明在路径修复前不应停止排队。flushonlast(在RHEL5.3以及之后的版本中)如果将其设定为yes,用查询。默认值为no。queuewithout(在RHEL5.3以及之后的版本中)如果将其设定为no,multipathd守护进程将在关闭后禁用对所有设备的查询。默认值为yes。userfriendly如果将其设为yes,即该系统应该bindings来将一个持久且唯一的别名分配给多路径,格式为mpathn。bindings文件的默认位置为/var/lib/multipath/bindings,但使用bindingsfile选项可改变此位置。如果将其设为no,即该系统的数值将被您在配置文件multipaths部分指定的具体设备别名覆盖。默认值为no。bindings(RHEL5.2以及之后的版本中)bindingsuserfriendnames选项一同使用。默(RHEL5.3以及之后的版本中)多路径设备节点使用的用ID。您必须使用数字用户ID。默认值由具体进程决定。您必须使用数字组群ID。默认值由具体进程决定。多路径设备配置4.2多路径属性showstheattributesthatyoucansetinthemultipathssectionofmultipath.confconfigurationfileforeachspecificmultipathdevice.Theseattributesapplyonlytotheonespecifiedmultipath.ThesedefaultsareusedbyDM-Multipathandoverrideattributessetinthedefaultsanddevicessectionsofthemultipath.conffile.表42多路径描pathgroufailover=每个优先组multibus=所有有效路径在一个优先组groupbyserial每个检测到的系列号有一个优先组群groupbyprio=每个路径优先值有一个优先组群groupbynodename=每个目标节点名有一个优先组群path数0immediate指定一旦存在优先权高于现有路径组群的路rrIfsettopriorities,theninsteadofsendingrrminiorequeststoapathbeforecallingselectortochoosethenextpath,thenumberofrequeststosendisdeterminedbyrrminiotimesthepathspriority,asdeterminedbythepriocalloutprogram.Currently,thereareprioritycalloutsonlyfordevicesthatusethegroupbypriopathgrou,whichmeansthatallthepathsinapathgroupwillalwayshavethesamepriority.如果将其设为uniform,那么所有路径的都相等nopathflushonlast(在RHEL5.3以及之后的版本中)如果将其设定为yes,用查询。默认值为no。rrmin您必须使用数字用户ID。默认值由具体进程决定。您必须使用数字组群ID。默认值由具体进程决定。 d70001200000b0000,符号名称为yellow 321816758474,符号名称为red。在这个示例,rrweight属性被设为prioritiesmultipathpathgroupathcheckerpathselectorrrnopath}multipathrr}}b"round-robin0"5配置文件4.3设备属性showstheattributesthatyoucansetforeachindividualstoragedeviceindevicessectionofthemultipath.confconfigurationfile.TheseattributesareusedbyDM-Multipathunlesstheyareoverwrittenbytheattributesspecifiedinthemultipathssectionofthemultipath.conffileforpathsthatcontainthedevice.Theseattributesoverridetheattributessetinthedefaultssectionofthemultipath.conffile.multipath.conf.defaults文件中。您可以不需要修改这些设备,但如果修改了这些值,您可以通过在配置文件中为覆盖那些值的设备添加条目来覆盖默认值multipath.conf.defaults文件中为设备设备配置默认设置并覆盖那些您想要修改的值。/sys/block/devicename/device/vendor/sys/block/devicename/device/model文件中找到这些值,其中devicename是要进行多路径操作的设备,示例如下:[root@[root@cypher-06~]#cat[root@cypher-06~]#catTheadditionalparameterstospecifydependonyourspecificdevice.Ifthedeviceisactive/active,youwillusuallynotneedtosetadditionalparameters.Youmaywanttosetpathgrou multibus.Otherparametersyoumayneedtosetarenopathretryandrrminio,asdescribedin4.3“设备属性送pathchecker设为tur。这对TestUnitReadySCSI设备Ifthedeviceneedsaspecialcommandtoswitchpaths,thenconfiguringthisdeviceformultipathrequiresahardwarehandlerkernelmodule.Thecurrenthardwarehandlersareemcand"rdac.Ifthesearenotsufficientforyourdevice,youmaynotbeabletoconfigurethedeviceformultipath.表43设备描pathgroufailover=每个优先组multibus=所有有效路径在一个优先组groupbyserial每个检测到的系列号有一个优先组群groupbyprio=每个路径优先值有一个优先组群groupbynodename=每个目标节点名有一个优先组群getuidSpecifiesthedefaultprogramandargumentstocallouttoobtainauniquepathidentifier.Anabsolutepathisrequired.prioSpecifiesthethedefaultprogramandargumentstocallouttoobtainapathweight.Weightsaresummedforeachpathgrouptodeterminethenextpathgrouptouseincaseoffailue."none"isvalidpathtur、emcclariion、hpswdirectiopathTheextrafeaturesofmultipathdevices.Theonlyexistingfeaturequeueifnopath,whichisthesameasnopathretrytoqueueForinformationonissuesthatmayarisewhenusingthisfeature,see5.3节“Issueswithqueueifnopathfeature”.hardware指定将在切换路径组群或者处I/O错误时用来执行硬件具体动作的模块。可能的值包括0、1emc和1rdac。默认值为0。rrIfsettopriorities,theninsteadofsendingrrminiorequeststoapathbeforecallingselectortochoosethenextpath,thenumberofrequeststosendisdeterminedbyrrminiotimesthepathspriority,asdeterminedbythepriocalloutprogram.Currently,thereareprioritycalloutsonlyfordevicesthatusethegroupbypriopathgrou,whichmeansthatallthepathsinapathgroupwillalwayshavethesamepriority.nopath数0immediate指定一旦存在优先权高于现有路径组群的路rrmin数目。默认值为1000。flushonlast(在RHEL5.3以及之后的版本中)如果将其设定为yes,用查询。默认值为duct###device#pathgrou"COMPAQ pathrrweight第5章DM-Multipath管理及故障排除TheMultipathIssueswithLargeNumberofLUNsIssueswithqueue_if_no_pathfeatureMultipathCommandOutputMultipathQuerieswithmultipathCommandMultipathCommandOptionsdmsetup命令进行多路径TroubleshootingwiththemultipathdInctiveTheMultipathIfyoufindyouhavetroubleimplementingamultipathconfigurationyoushouldensurethatthemultipathdaemonisrunning,asdescribedin3DM-Multipath.Themultipathddaemonmustberunninginordertousemultipatheddevices.IssueswithLargeNumberof当在某个节LUN时,使用多路径设备可明显延udev设备过滤器为其生成设备节点所用的时间。如果您遇到过这个问题,您可在/etc/udev/rules.d/40-multipath.rules文件中删除以下KERNEL!="dm-[0-9]*",KERNEL!="dm-[0-9]*",ACTION=="add",PROGRAM=="/bin/bash-c/bin/grep^dmmultipath'",RUN+="/sbin/multipath-v0块设备时让,multipathd守护进程仍将自动生成多路径设备,在引导过程中仍将为带多路径根文件系统的节点调用multipath。唯一的改变就是没有运行multipathd守护进程不再自动生成多路径设备,对大多数多路Issueswithqueue_if_no_pathIffeatures"1queueifnopath"isspecifiedinthe/etc/multipath.conffile,thenanyprocessthatissuesI/Owillhanguntiloneormorepathsarerestored.Toavoidthis,setthenopathretryNparameterinthe/etc/multipath.conffile(whereNisthenumberoftimesthesystemshouldretryapath).Whenyoudo,removethefeatures"1queueifnopath"optionfromthe/etc/multipath.confaswell.Ifyouneedtousethefeatures"1queueifnopath"optionandyouexperiencetheissuenotedhere,usethedmsetupcommandtoedittheatruntimeforaparticularLUN(thatis,forwhichallthepathsareunavailable).Forexample,ifyouwanttochangetheonthemultipathdevicempath2from"queueifnopath"to"failifnopath",executethefollowingdmsetupdmsetupmessagempath20"failifnoactionactionifany:alias(wwidifdifferentfromalias)[size][features][hardwarehandler]\\[pathgrouppriorityif[pathgroupstatusif host:channel:id:lundevnodemajor:minor[pathstatus][dmstatusifmpath1mpath1edb8101)\\\\round-robin02:0:0:6sdb8:16round-robin03:0:0:6sdc8:64如果该路径已经启用并准备好进I/O,那么路径的状态readyactive。路径的状态由Thedmtatui imilartothepathtatu,butfromthekernel pointofviewThedmtatuhatwostates:failed,whichis ogoustofaulty,andactivewhichcoversallotherpathstates.Occasionally,thepathstateandthedmstateofadevicewilltemporarilynot注注当生成或者修改一个多路径设备时,路径组群状态dm状态是未知的。同时,特性也不一定正确。MultipathQuerieswithmultipath映射器中收集的多路径拓补信息。-ll选项显示-l显示的所有信息以及该系统额外可用的其它组件。为为。以下示例显multipathl命令的输##multipath-mpath1[size=10\round-robin0\2:0:0:6sdb8:16\round-robin0\3:0:0:6sdc8:645.1multipath命令选项describessomeoptionsofthemultipathcommandthatyoumayfinduseful.表5.1.有用multipath命令-f使dmsetup命令确定设备映射器条以下命令显示所有设备映射器设备及其主、副号码。副号码dm设备的名称。例如:副号3与多路径的设备/dev/dm-3对映。#dmsetupmpath2mpath1(253,mpath0mpath7mpath6mpath5(253,7)(253,(253,

(253,Troubleshootingwiththemultipathd ctive-multipathd互动控制台可用来在您的系统有问题时进行故障排除。例如:以下命令会在退出控制台前显##multipathd->show>CTRL-对##multipathd->>CTRL-##multipathd->show>CTRL-修订记录修修订3-6.4 2013-10- RüdigerRebuildwithpublican修修订3- 2012-07- AnthonyRebuildforPublican修修订1.0- ThuJan29符/etc/multipath.confpackage,安装DMMultAactive/activeactive/passivealiasparameter,多路径设备配置属configurationfile,多路径设备识别Bbindingsfileparameter,配置文件默认设configurationfiledefaultdevices,根据设备名称将设备devicename,根据设备名称将设备devicetype,根据设备类inconfigurationf

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论