4.4. 多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​


表 4.2 “多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​” shows the attributes that you can set in the multipaths section of the multipath.conf configuration file for each specific multipath device. These attributes apply only to the one specified multipath. These defaults are used by DM-Multipath and override attributes set in the defaults and devices sections of the multipath.conf file.
表 4.2. 多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​
属​​​​​​​性​​​​​​​ 描​​​​​​​述​​​​​​​
wwid 指​​​​​​​定​​​​​​​ multipath 属​​​​​​​性​​​​​​​采​​​​​​​用​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID。​​​​​​​
alias 指​​​​​​​定​​​​​​​ multipath 属​​​​​​​性​​​​​​​采​​​​​​​用​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​
path_grouping_policy
指​​​​​​​定​​​​​​​用​​​​​​​于​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​路​​​​​​​径​​​​​​​分​​​​​​​组​​​​​​​策​​​​​​​略​​​​​​​,可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​:
failover = 每​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​
multibus = 所​​​​​​​有​​​​​​​有​​​​​​​效​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​
group_by_serial = 每​​​​​​​个​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​系​​​​​​​列​​​​​​​号​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_prio = 每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​优​​​​​​​先​​​​​​​值​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_node_name = 每​​​​​​​个​​​​​​​目​​​​​​​标​​​​​​​节​​​​​​​点​​​​​​​名​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
path_selector 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​ I/O 操​​​​​​​作​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​算​​​​​​​法​​​​​​​。​​​​​​​
failback
指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
数​​​​​​​值​​​​​​​ 0 或​​​​​​​者​​​​​​​ immediate 指​​​​​​​定​​​​​​​一​​​​​​​旦​​​​​​​存​​​​​​​在​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​高​​​​​​​于​​​​​​​现​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​,那​​​​​​​么​​​​​​​系​​​​​​​统​​​​​​​将​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​那​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​。​​​​​​​
大​​​​​​​于​​​​​​​ 0 的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​推​​​​​​​迟​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​,以​​​​​​​秒​​​​​​​表​​​​​​​示​​​​​​​。​​​​​​​
manual 值​​​​​​​表​​​​​​​明​​​​​​​只​​​​​​​能​​​​​​​在​​​​​​​操​​​​​​​作​​​​​​​员​​​​​​​介​​​​​​​入​​​​​​​时​​​​​​​才​​​​​​​会​​​​​​​发​​​​​​​生​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ uniform,那​​​​​​​么​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​加​​​​​​​权​​​​​​​都​​​​​​​相​​​​​​​等​​​​​​​。​​​​​​​
no_path_retry
这​​​​​​​个​​​​​​​属​​​​​​​性​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​在​​​​​​​禁​​​​​​​用​​​​​​​队​​​​​​​列​​​​​​​前​​​​​​​应​​​​​​​该​​​​​​​试​​​​​​​图​​​​​​​使​​​​​​​用​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​次​​​​​​​数​​​​​​​。​​​​​​​
fail 值​​​​​​​说​​​​​​​明​​​​​​​立​​​​​​​即​​​​​​​失​​​​​​​败​​​​​​​,无​​​​​​​需​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
queue 值​​​​​​​表​​​​​​​明​​​​​​​在​​​​​​​路​​​​​​​径​​​​​​​修​​​​​​​复​​​​​​​前​​​​​​​不​​​​​​​应​​​​​​​停​​​​​​​止​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
flush_on_last_del (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yesmultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​最​​​​​​​后​​​​​​​一​​​​​​​个​​​​​​​到​​​​​​​某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​禁​​​​​​​用​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
rr_min_io 指​​​​​​​定​​​​​​​在​​​​​​​当​​​​​​​前​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​前​​​​​​​指​​​​​​​向​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​ I/O 请​​​​​​​求​​​​​​​数​​​​​​​目​​​​​​​。​​​​​​​
mode (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​ mode 是​​​​​​​八​​​​​​​进​​​​​​​制​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
uid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
gid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​两​​​​​​​个​​​​​​​特​​​​​​​定​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​。​​​​​​​第​​​​​​​一​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 为​​​​​​​ 3600508b4000156d70001200000b0000,符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​为​​​​​​​ yellow。​​​​​​​
示​​​​​​​例​​​​​​​中​​​​​​​第​​​​​​​二​​​​​​​个​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 为​​​​​​​ 1DEC_____321816758474,符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​为​​​​​​​ red。​​​​​​​在​​​​​​​这​​​​​​​个​​​​​​​示​​​​​​​例​​​​​​​中​​​​​​​,rr_weight 属​​​​​​​性​​​​​​​被​​​​​​​设​​​​​​​为​​​​​​​ priorities。​​​​​​​
multipaths {
       multipath {
              wwid                  3600508b4000156d70001200000b0000
              alias                 yellow
              path_grouping_policy  multibus
              path_checker          readsector0
              path_selector         "round-robin 0"
              failback              manual
              rr_weight             priorities
              no_path_retry         5
       }
       multipath {
              wwid                  1DEC_____321816758474
              alias                 red
              rr_weight             priorities
        }
}
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.