搜索

4.5. 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​

download PDF
表 4.3 “设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​” shows the attributes that you can set for each individual storage device in the devices section of the multipath.conf configuration file. These attributes are used by DM-Multipath unless they are overwritten by the attributes specified in the multipaths section of the multipath.conf file for paths that contain the device. These attributes override the attributes set in the defaults section of the multipath.conf file.
默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​很​​​​​​​多​​​​​​​支​​​​​​​持​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​值​​​​​​​默​​​​​​​认​​​​​​​列​​​​​​​在​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​中​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​不​​​​​​​需​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​,但​​​​​​​如​​​​​​​果​​​​​​​修​​​​​​​改​​​​​​​了​​​​​​​这​​​​​​​些​​​​​​​值​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​通​​​​​​​过​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​覆​​​​​​​盖​​​​​​​那​​​​​​​些​​​​​​​值​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​添​​​​​​​加​​​​​​​条​​​​​​​目​​​​​​​来​​​​​​​覆​​​​​​​盖​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​从​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​设​​​​​​​备​​​​​​​复​​​​​​​制​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​并​​​​​​​覆​​​​​​​盖​​​​​​​那​​​​​​​些​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​值​​​​​​​。​​​​​​​
要​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​这​​​​​​​个​​​​​​​部​​​​​​​分​​​​​​​添​​​​​​​加​​​​​​​没​​​​​​​有​​​​​​​默​​​​​​​认​​​​​​​自​​​​​​​动​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​,您​​​​​​​需​​​​​​​要​​​​​​​设​​​​​​​定​​​​​​​ vendor 和​​​​​​​ product 参​​​​​​​数​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​在​​​​​​​ /sys/block/device_name/device/vendor 和​​​​​​​ /sys/block/device_name/device/model 文​​​​​​​件​​​​​​​中​​​​​​​找​​​​​​​到​​​​​​​这​​​​​​​些​​​​​​​值​​​​​​​,其​​​​​​​中​​​​​​​ device_name 是​​​​​​​要​​​​​​​进​​​​​​​行​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​操​​​​​​​作​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​,示​​​​​​​例​​​​​​​如​​​​​​​下​​​​​​​:
[root@cypher-06 ~]# cat /sys/block/sda/device/vendor
WINSYS  
[root@cypher-06 ~]# cat /sys/block/sda/device/model
SF2372
The additional parameters to specify depend on your specific device. If the device is active/active, you will usually not need to set additional parameters. You may want to set path_grouping_policy to multibus. Other parameters you may need to set are no_path_retry and rr_min_io, as described in 表 4.3 “设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​”.
如​​​​​​​果​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​模​​​​​​​式​​​​​​​,但​​​​​​​它​​​​​​​会​​​​​​​自​​​​​​​动​​​​​​​将​​​​​​​路​​​​​​​径​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​被​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​,那​​​​​​​么​​​​​​​您​​​​​​​需​​​​​​​要​​​​​​​将​​​​​​​检​​​​​​​查​​​​​​​器​​​​​​​改​​​​​​​为​​​​​​​一​​​​​​​个​​​​​​​不​​​​​​​需​​​​​​​向​​​​​​​路​​​​​​​径​​​​​​​发​​​​​​​送​​​​​​​ I/O 来​​​​​​​测​​​​​​​试​​​​​​​其​​​​​​​是​​​​​​​否​​​​​​​工​​​​​​​作​​​​​​​(否​​​​​​​则​​​​​​​,您​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​将​​​​​​​一​​​​​​​直​​​​​​​进​​​​​​​行​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​)的​​​​​​​功​​​​​​​能​​​​​​​。​​​​​​​这​​​​​​​几​​​​​​​乎​​​​​​​意​​​​​​​味​​​​​​​着​​​​​​​您​​​​​​​将​​​​​​​ path_checker 设​​​​​​​为​​​​​​​ tur。​​​​​​​这​​​​​​​对​​​​​​​所​​​​​​​有​​​​​​​支​​​​​​​持​​​​​​​ Test Unit Ready 命​​​​​​​令​​​​​​​的​​​​​​​ SCSI 设​​​​​​​备​​​​​​​都​​​​​​​适​​​​​​​用​​​​​​​。​​​​​​​
If the device needs a special command to switch paths, then configuring this device for multipath requires a hardware handler kernel module. The current hardware handlers are emc and "rdac. If these are not sufficient for your device, you may not be able to configure the device for multipath.
表 4.3. 设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​
属​​​​​​​性​​​​​​​ 描​​​​​​​述​​​​​​​
vendor 指​​​​​​​定​​​​​​​ device 采​​​​​​​用​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​零​​​​​​​售​​​​​​​商​​​​​​​名​​​​​​​称​​​​​​​,例​​​​​​​如​​​​​​​ COMPAQ。​​​​​​​
product 指​​​​​​​定​​​​​​​ device 属​​​​​​​性​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​设​​​​​​​备​​​​​​​产​​​​​​​品​​​​​​​名​​​​​​​,比​​​​​​​如​​​​​​​ HSV110 (C) COMPAQ。​​​​​​​
path_grouping_policy
指​​​​​​​定​​​​​​​用​​​​​​​于​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​路​​​​​​​径​​​​​​​分​​​​​​​组​​​​​​​策​​​​​​​略​​​​​​​,可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​:
failover = 每​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​
multibus = 所​​​​​​​有​​​​​​​有​​​​​​​效​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​
group_by_serial = 每​​​​​​​个​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​系​​​​​​​列​​​​​​​号​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_prio = 每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​优​​​​​​​先​​​​​​​值​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_node_name = 每​​​​​​​个​​​​​​​目​​​​​​​标​​​​​​​节​​​​​​​点​​​​​​​名​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
getuid_callout Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
prio_callout Specifies the the default program and arguments to call out to obtain a path weight. Weights are summed for each path group to determine the next path group to use in case of failue. "none" is a valid value.
path_checker 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​状​​​​​​​态​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​ readsector0 和​​​​​​​ tur、​​​​​​​emc_clariion、​​​​​​​hp_sw 以​​​​​​​及​​​​​​​ directio。​​​​​​​
path_selector 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​ I/O 操​​​​​​​作​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​算​​​​​​​法​​​​​​​。​​​​​​​
features The extra features of multipath devices. The only existing feature is queue_if_no_path, which is the same as setting no_path_retry to queue. For information on issues that may arise when using this feature, see 第 5.3 节 “Issues with queue_if_no_path feature”.
hardware_handler 指​​​​​​​定​​​​​​​将​​​​​​​在​​​​​​​切​​​​​​​换​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​或​​​​​​​者​​​​​​​处​​​​​​​理​​​​​​​ I/O 错​​​​​​​误​​​​​​​时​​​​​​​用​​​​​​​来​​​​​​​执​​​​​​​行​​​​​​​硬​​​​​​​件​​​​​​​具​​​​​​​体​​​​​​​动​​​​​​​作​​​​​​​的​​​​​​​模​​​​​​​块​​​​​​​。​​​​​​​可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​ 0、​​​​​​​1 emc 和​​​​​​​ 1 rdac。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 0。​​​​​​​
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,那​​​​​​​么​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​加​​​​​​​权​​​​​​​是​​​​​​​相​​​​​​​等​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ uniform。​​​​​​​
no_path_retry
这​​​​​​​个​​​​​​​属​​​​​​​性​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​在​​​​​​​禁​​​​​​​用​​​​​​​队​​​​​​​列​​​​​​​前​​​​​​​应​​​​​​​该​​​​​​​试​​​​​​​图​​​​​​​使​​​​​​​用​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​次​​​​​​​数​​​​​​​。​​​​​​​
fail 值​​​​​​​表​​​​​​​明​​​​​​​立​​​​​​​即​​​​​​​失​​​​​​​败​​​​​​​,无​​​​​​​需​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
queue 值​​​​​​​表​​​​​​​明​​​​​​​在​​​​​​​路​​​​​​​径​​​​​​​修​​​​​​​复​​​​​​​前​​​​​​​不​​​​​​​应​​​​​​​停​​​​​​​止​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​至​​​​​​​为​​​​​​​(空​​​​​​​白​​​​​​​)。​​​​​​​
failback
指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
数​​​​​​​值​​​​​​​ 0 或​​​​​​​者​​​​​​​ immediate 指​​​​​​​定​​​​​​​一​​​​​​​旦​​​​​​​存​​​​​​​在​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​高​​​​​​​于​​​​​​​现​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​,那​​​​​​​么​​​​​​​系​​​​​​​统​​​​​​​将​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​那​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​。​​​​​​​
大​​​​​​​于​​​​​​​ 0 的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​推​​​​​​​迟​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​,以​​​​​​​秒​​​​​​​表​​​​​​​示​​​​​​​。​​​​​​​
manual 值​​​​​​​表​​​​​​​明​​​​​​​只​​​​​​​能​​​​​​​在​​​​​​​操​​​​​​​作​​​​​​​员​​​​​​​介​​​​​​​入​​​​​​​时​​​​​​​才​​​​​​​会​​​​​​​发​​​​​​​生​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
rr_min_io 指​​​​​​​定​​​​​​​在​​​​​​​当​​​​​​​前​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​前​​​​​​​指​​​​​​​向​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​ I/O 请​​​​​​​求​​​​​​​数​​​​​​​目​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 1000。​​​​​​​
flush_on_last_del (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yesmultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​最​​​​​​​后​​​​​​​一​​​​​​​个​​​​​​​到​​​​​​​某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​禁​​​​​​​用​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
product_blacklist 根​​​​​​​据​​​​​​​产​​​​​​​品​​​​​​​指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​常​​​​​​​规​​​​​​​表​​​​​​​达​​​​​​​式​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ device 条​​​​​​​目​​​​​​​。​​​​​​​
#	}
#	device {
#		vendor			"COMPAQ  "
#		product			"MSA1000         "
#		path_grouping_policy	multibus
#		path_checker		tur
#		rr_weight		priorities
#	}
#}
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.