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.
属性 | 描述 | ||||||
---|---|---|---|---|---|---|---|
wwid | 指定 multipath 属性采用的多路径设备的 WWID。 | ||||||
alias | 指定 multipath 属性采用的多路径符号名称。 | ||||||
path_grouping_policy |
| ||||||
path_selector | 指定用来确定下一个 I/O 操作所使用路径的默认算法。 | ||||||
failback |
| ||||||
rr_weight |
| ||||||
no_path_retry |
| ||||||
flush_on_last_del | (在 RHEL 5.3 以及之后的版本中)如果将其设定为 yes ,multipathd 守护进程将在删除了最后一个到某个设备的路径时禁用查询。默认值为 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 } }