<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>配置ALUA特性 on Huawei</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/</link><description>Recent content in 配置ALUA特性 on Huawei</description><generator>Hugo</generator><language>zh-cn</language><copyright>版权所有 © 华为技术有限公司 2025。保留一切权利。</copyright><atom:link href="https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/index.xml" rel="self" type="application/rss+xml"/><item><title>配置华为企业存储后端的ALUA参数</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/</guid><description>&lt;p>华为企业存储针对ALUA的配置请参考产品对应的主机连通性指南文档说明。&lt;/p>
&lt;p>针对不同的操作系统，ALUA配置可能有所不同。进入
&lt;a href="https://support.huawei.com/enterprise/zh/index.html" target="_blank">华为技术支持&lt;/a>
，在搜索输入框中输入“主机连通性指南”，单击搜索。在搜索结果中，选择对应操作系统的主机连通性指南。结合实际需要根据指南的说明进行ALUA配置。华为CSI将在华为存储上对该主机的启动器应用您设置的配置项。&lt;/p>
&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-note.gif">&lt;br>
已经发放的Pod的节点不会主动更改ALUA信息，需要通过在该节点重新发放Pod才会变更主机ALUA配置。&lt;/p>
&lt;/blockquote>
&lt;h2 id="section16218353201717">OceanStor V5系列系列存储后端的ALUA参数&lt;/h2>
&lt;p>华为CSI支持的OceanStor V5系列存储的ALUA参数见
&lt;a href="#zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_table106361351202112">表1&lt;/a>
。&lt;/p>
&lt;p>&lt;strong>表 1&lt;/strong> 华为CSI支持的OceanStor V5系列存储的ALUA参数说明&lt;/p>
&lt;p>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_table106361351202112">&lt;/a>&lt;/p>
&lt;table>&lt;thead align="left">&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row12636135142110">&lt;th class="cellrowborder" valign="top" width="20.77%" id="mcps1.2.4.1.1">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p7636151112111">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p7636151112111">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p7636151112111">&lt;/a>参数名&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="29.799999999999997%" id="mcps1.2.4.1.2">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p0636195114217">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p0636195114217">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p0636195114217">&lt;/a>参数描述&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="49.43%" id="mcps1.2.4.1.3">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18636851162116">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18636851162116">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18636851162116">&lt;/a>备注&lt;/p>
&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row5636145182110">&lt;td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.2.4.1.1 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p12636151172115">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p12636151172115">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p12636151172115">&lt;/a>HostName&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="29.799999999999997%" headers="mcps1.2.4.1.2 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p119151501311">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p119151501311">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p119151501311">&lt;/a>主机名规则。必填，可使用正则表达式。&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="49.43%" headers="mcps1.2.4.1.3 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p46368510213">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p46368510213">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p46368510213">&lt;/a>主机名通常使用 cat /etc/hostname 可获取。支持正则表达式方式匹配，如当HostName=“*”时，该条配置对任意主机名的主机生效。可参考&lt;a href="https://zh.wikipedia.org/wiki/正则表达式" target="_blank" rel="noopener noreferrer">《正则表达式》&lt;/a>。&lt;/p>
&lt;p id="p9139142313544">&lt;a name="p9139142313544">&lt;/a>&lt;a name="p9139142313544">&lt;/a>当计算节点的主机名可已匹配多条ALUA配置选项，会根据匹配的精确度进行排序，使用第一条ALUA配置选项。排序规则见&lt;a href="#section81474196587">ALUA配置项匹配主机名的规则&lt;/a>。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row763665116210">&lt;td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.2.4.1.1 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p26363512213">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p26363512213">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p26363512213">&lt;/a>&lt;span>MULTIPATHTYPE&lt;/span>&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="29.799999999999997%" headers="mcps1.2.4.1.2 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p863615122117">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p863615122117">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p863615122117">&lt;/a>多路径类型。必填，取值为：&lt;/p>
&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul2074595619259">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul2074595619259">&lt;/a>&lt;ul id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul2074595619259">&lt;li>0：不使用第三方多路径&lt;/li>&lt;li>1：使用第三方多路径&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="49.43%" headers="mcps1.2.4.1.3 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p5636175119215">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p5636175119215">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p5636175119215">&lt;/a>--&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row116368518214">&lt;td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.2.4.1.1 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563655132116">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563655132116">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563655132116">&lt;/a>&lt;span>FAILOVERMODE&lt;/span>&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="29.799999999999997%" headers="mcps1.2.4.1.2 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1636205142120">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1636205142120">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1636205142120">&lt;/a>启动器的切换模式。条件必选，取值为：&lt;/p>
&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul1713695915256">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul1713695915256">&lt;/a>&lt;ul id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul1713695915256">&lt;li>0：旧版本ALUA&lt;/li>&lt;li>1：通用ALUA&lt;/li>&lt;li>2：不使用ALUA&lt;/li>&lt;li>3：特殊模式ALUA&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="49.43%" headers="mcps1.2.4.1.3 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563712516214">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563712516214">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1563712516214">&lt;/a>当使用第三方多路径时该参数才需要指定。请参考连通性指南的说明，配置启动器的切换模式。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row1963745142116">&lt;td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.2.4.1.1 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1663785112216">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1663785112216">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1663785112216">&lt;/a>&lt;span>SPECIALMODETYPE&lt;/span>&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="29.799999999999997%" headers="mcps1.2.4.1.2 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p16379513219">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p16379513219">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p16379513219">&lt;/a>启动器的特殊模式类型。条件必选，取值为：&lt;/p>
&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul177131712192612">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul177131712192612">&lt;/a>&lt;ul id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul177131712192612">&lt;li>0：特殊模式0&lt;/li>&lt;li>1：特殊模式1&lt;/li>&lt;li>2：特殊模式2&lt;/li>&lt;li>3：特殊模式3&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="49.43%" headers="mcps1.2.4.1.3 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p6637251142114">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p6637251142114">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p6637251142114">&lt;/a>当启动器的切换模式为“特殊模式ALUA”时该参数才需要指定。请参考连通性指南的说明，配置启动器的特殊模式类型。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_row15637155122111">&lt;td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.2.4.1.1 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p17637951132119">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p17637951132119">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p17637951132119">&lt;/a>&lt;span>PATHTYPE&lt;/span>&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="29.799999999999997%" headers="mcps1.2.4.1.2 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18637135117217">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18637135117217">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p18637135117217">&lt;/a>启动器的路径类型。条件必选，取值为：&lt;/p>
&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul143311772617">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul143311772617">&lt;/a>&lt;ul id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_ul143311772617">&lt;li>0：优选路径&lt;/li>&lt;li>1：非优选路径&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="49.43%" headers="mcps1.2.4.1.3 ">&lt;p id="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1863795162113">&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1863795162113">&lt;/a>&lt;a name="zh-cn_topic_0000001299863718_zh-cn_topic_0000001199142540_p1863795162113">&lt;/a>当使用第三方多路径时该参数才需要指定。请参考连通性指南的说明，配置启动器的路径类型。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>以OceanStor 18500 V5存储对接Red Hat操作系统为例，主机连通性指南见《华为SAN存储在Red Hat系统下的主机连通性指南》。&lt;/p>
&lt;p>如下ALUA设置示例，是非双活存储场景下，OceanStor 18500 V5存储的Red Hat操作系统的连通性指南的推荐设置。本例中假设Kubernetes集群中计算节点“myhost01”的操作系统是RHEL 5.x，其他计算节点操作系统均为RHEL 7.x。根据推荐，RHEL 5.x的切换模式应该为“不使用ALUA”，RHEL 7.x的切换模式应该为“通用ALUA”。&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">storage&lt;/span>: oceanstor-san
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">name&lt;/span>: oceanstor-iscsi-155
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">urls&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - https://192.168.129.155:8088
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - https://192.168.129.156:8088
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">pools&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - StoragePool001
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">protocol&lt;/span>: iscsi
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">portals&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#fe640b">192.168.128.120&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#fe640b">192.168.128.121&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">^myhost01$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">2&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#40a02b">&amp;#34;*&amp;#34;&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="section1629834120204">OceanStor和OceanStor Dorado系列存储后端的ALUA参数&lt;/h2>
&lt;p>华为CSI支持的OceanStor和OceanStor Dorado系列存储的ALUA参数见
&lt;a href="#zh-cn_topic_0000001352783505_zh-cn_topic_0000001198982584_table7143850202411">表2&lt;/a>
。&lt;/p></description></item><item><title>配置分布式存储后端的ALUA参数</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-distributed-storage-backend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-distributed-storage-backend/</guid><description>&lt;p>华为分布式存储针对ALUA的配置请参考产品对应的主机连通性指南文档说明。&lt;/p>
&lt;p>针对不同的操作系统，ALUA配置可能有所不同。进入
&lt;a href="https://support.huawei.com/enterprise/zh/index.html" target="_blank">华为技术支持&lt;/a>
，在搜索输入框中输入“主机连通性指南”，单击搜索。在搜索结果中，选择对应操作系统的主机连通性指南。结合实际需要根据指南的说明进行ALUA配置。华为CSI将在华为存储上对该主机的启动器应用您设置的配置项。&lt;/p>
&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-note.gif">&lt;br>
已经发放的Pod的节点不会主动更改ALUA信息，需要通过在该节点重新发放Pod才会变更主机ALUA配置。
分布式存储非双活场景，存储系统自身为Active/Active模式，选择“启用ALUA”没有实际意义，建议选择存储默认的“禁用ALUA”。因此不建议对分布式存储配置ALUA参数。&lt;/p>
&lt;/blockquote>
&lt;p>华为CSI支持的分布式存储的ALUA参数见
&lt;a href="#table17219165595413">表1&lt;/a>
。&lt;/p>
&lt;p>&lt;strong>表 1&lt;/strong> 分布式存储ALUA参数说明&lt;/p>
&lt;p>&lt;a name="table17219165595413">&lt;/a>&lt;/p>
&lt;table>&lt;thead align="left">&lt;tr id="row122207550541">&lt;th class="cellrowborder" valign="top" width="28.57%" id="mcps1.2.4.1.1">&lt;p id="p192208550546">&lt;a name="p192208550546">&lt;/a>&lt;a name="p192208550546">&lt;/a>参数名&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="34.870000000000005%" id="mcps1.2.4.1.2">&lt;p id="p12201855175414">&lt;a name="p12201855175414">&lt;/a>&lt;a name="p12201855175414">&lt;/a>参数描述&lt;/p>
&lt;/th>
&lt;th class="cellrowborder" valign="top" width="36.559999999999995%" id="mcps1.2.4.1.3">&lt;p id="p622075535420">&lt;a name="p622075535420">&lt;/a>&lt;a name="p622075535420">&lt;/a>备注&lt;/p>
&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>&lt;tr id="row62201655155419">&lt;td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.2.4.1.1 ">&lt;p id="p422025511543">&lt;a name="p422025511543">&lt;/a>&lt;a name="p422025511543">&lt;/a>HostName&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="34.870000000000005%" headers="mcps1.2.4.1.2 ">&lt;p id="p1522045510541">&lt;a name="p1522045510541">&lt;/a>&lt;a name="p1522045510541">&lt;/a>HostName的值为worker节点的主机名，如HostName1、HostName2。&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="36.559999999999995%" headers="mcps1.2.4.1.3 ">&lt;p id="p11531172082216">&lt;a name="p11531172082216">&lt;/a>&lt;a name="p11531172082216">&lt;/a>主机名通常使用 cat /etc/hostname 可获取。支持正则表达式方式匹配，如当HostName=“*”时，该条配置对任意主机名的主机生效。可参考&lt;a href="https://zh.wikipedia.org/wiki/正则表达式" target="_blank" rel="noopener noreferrer">《正则表达式》&lt;/a>。&lt;/p>
&lt;p id="p2531172016224">&lt;a name="p2531172016224">&lt;/a>&lt;a name="p2531172016224">&lt;/a>当计算节点的主机名可已匹配多条ALUA配置选项，会根据匹配的精确度进行排序，使用第一条ALUA配置选项。排序规则见&lt;a href="#section81474196587">ALUA配置项匹配主机名的规则&lt;/a>。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row1022005517540">&lt;td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.2.4.1.1 ">&lt;p id="p142209555544">&lt;a name="p142209555544">&lt;/a>&lt;a name="p142209555544">&lt;/a>switchoverMode&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="34.870000000000005%" headers="mcps1.2.4.1.2 ">&lt;p id="p422018552546">&lt;a name="p422018552546">&lt;/a>&lt;a name="p422018552546">&lt;/a>切换模式。必选，取值为：&lt;/p>
&lt;a name="ul1422015558541">&lt;/a>&lt;a name="ul1422015558541">&lt;/a>&lt;ul id="ul1422015558541">&lt;li>Disable_alua：禁用ALUA&lt;/li>&lt;li>Enable_alua：启用ALUA&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="36.559999999999995%" headers="mcps1.2.4.1.3 ">&lt;p id="p14575336571">&lt;a name="p14575336571">&lt;/a>&lt;a name="p14575336571">&lt;/a>非双活场景，存储系统自身为Active/Active模式，选择“启用ALUA”没有实际意义，建议选择“禁用ALUA”。当前华为CSI未支持SAN双活场景，请谨慎启用ALUA。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;tr id="row0220155515413">&lt;td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.2.4.1.1 ">&lt;p id="p02201255125416">&lt;a name="p02201255125416">&lt;/a>&lt;a name="p02201255125416">&lt;/a>pathType&lt;/p>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="34.870000000000005%" headers="mcps1.2.4.1.2 ">&lt;p id="p2022011558544">&lt;a name="p2022011558544">&lt;/a>&lt;a name="p2022011558544">&lt;/a>路径类型。条件必选，取值为：&lt;/p>
&lt;a name="ul142201655195419">&lt;/a>&lt;a name="ul142201655195419">&lt;/a>&lt;ul id="ul142201655195419">&lt;li>optimal_path：优选路径&lt;/li>&lt;li>non_optimal_path：非优选路径&lt;/li>&lt;/ul>
&lt;/td>
&lt;td class="cellrowborder" valign="top" width="36.559999999999995%" headers="mcps1.2.4.1.3 ">&lt;p id="p1220455195413">&lt;a name="p1220455195413">&lt;/a>&lt;a name="p1220455195413">&lt;/a>切换模式为启动ALUA时需要设置该选项。&lt;/p>
&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="section81474196587">ALUA配置项匹配主机名的规则&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>如果设置的主机名规则精确匹配的业务节点主机名，则使用该主机名规则对应的ALUA配置项。&lt;/p>
&lt;p>如配置项1中主机名规则为“*”，配置项2中的主机名规则为“^myhost01$”。当计算节点的主机名是“myhost01”时，精确匹配配置项2，华为CSI将使用配置项2中的配置应用到存储侧。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>如果设置的主机名规则无法精确匹配的业务节点主机名，则直接使用正则匹配到的第一条ALUA配置项。&lt;/p>
&lt;p>如配置项1中主机名规则为“myhost0[0-9]”，配置项2中的主机名规则为“myhost0[5-9]”，配置项1的优先级高于配置项2。当计算节点的主机名是“myhost06”时，两个配置项均可以匹配，此时华为CSI将使用配置项1中的配置应用到存储侧。&lt;/p>
&lt;/li>
&lt;/ul></description></item><item><title>OceanStor V5系列ALUA特性配置策略样例</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-oceanstor-v5-series/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-oceanstor-v5-series/</guid><description>&lt;p>&lt;strong>例1&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#40a02b">&amp;#34;*&amp;#34;&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node1&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node1”，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，优先级顺序为第2条配置段（HostName为&amp;quot;node1&amp;quot;）高于第1条配置段（HostName为&amp;quot;*&amp;quot;）。&lt;/p>
&lt;p>&lt;strong>例2&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[0-9]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[5-7]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node6”的主机，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，选择第一条ALUA配置段来配置启动器。&lt;/p>
&lt;p>&lt;strong>例3&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node10$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">MULTIPATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">FAILOVERMODE&lt;/span>: &lt;span style="color:#fe640b">3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">SPECIALMODETYPE&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">PATHTYPE&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，对于主机名为“node1”的主机，选择第一条ALUA配置段来配置启动器；对于主机名为“node10”的主机，选择第二条ALUA配置段来配置启动器。^表示匹配字符串的开头，$表示匹配字符串的结尾。&lt;/p></description></item><item><title>OceanStor Dorado ALUA特性配置策略样例</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-oceanstor-dorado/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-oceanstor-dorado/</guid><description>&lt;p>&lt;strong>例1&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>parameters:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ALUA:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &amp;#34;*&amp;#34;:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> accessMode: 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> hyperMetroPathOptimized: 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> node1:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> accessMode: 1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> hyperMetroPathOptimized: 0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node1”，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，优先级顺序为第2条配置段（HostName为&amp;quot;node1&amp;quot;）高于第1条配置段（HostName为&amp;quot;*&amp;quot;）。&lt;/p>
&lt;p>&lt;strong>例2&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[0-9]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">accessMode&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">hyperMetroPathOptimized&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[5-7]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">accessMode&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">hyperMetroPathOptimized&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node6”的主机，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，选择第一条ALUA配置段来配置启动器。&lt;/p>
&lt;p>&lt;strong>例3&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node1$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[0-9]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">accessMode&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">hyperMetroPathOptimized&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node10$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">accessMode&lt;/span>: &lt;span style="color:#fe640b">1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">hyperMetroPathOptimized&lt;/span>: &lt;span style="color:#fe640b">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-huawei-enterprise-storage-backend/">配置华为企业存储后端的ALUA参数&lt;/a>
中的配置策略规则，对于主机名为“node1”的主机，选择第一条ALUA配置段来配置启动器；对于主机名为“node10”的主机，选择第二条ALUA配置段来配置启动器。^表示匹配字符串的开头，$表示匹配字符串的结尾。&lt;/p></description></item><item><title>分布式存储ALUA特性配置策略样例</title><link>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-distributed-storage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/common-o-m-operations/configuring-alua/example-alua-configuration-policy-of-distributed-storage/</guid><description>&lt;p>&lt;strong>例1&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#40a02b">&amp;#34;*&amp;#34;&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: optimal_path
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node1&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: non_optimal_path
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node1”，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-distributed-storage-backend/">配置分布式存储后端的ALUA参数&lt;/a>
中的配置策略规则，优先级顺序为第2条配置段（HostName为&amp;quot;node1&amp;quot;）高于第1条配置段（HostName为&amp;quot;*&amp;quot;）。&lt;/p>
&lt;p>&lt;strong>例2&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[0-9]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: optimal_path
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node[5-7]&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: non_optimal_path
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>对于主机名为“node6”的主机，上述ALUA配置段都能用于配置启动器。根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-distributed-storage-backend/">配置分布式存储后端的ALUA参数&lt;/a>
中的配置策略规则，选择第一条ALUA配置段来配置启动器。&lt;/p>
&lt;p>&lt;strong>例3&lt;/strong>.配置文件如下：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8839ef">parameters&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">ALUA&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node1$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: optimal_path
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">node10$&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">switchoverMode&lt;/span>: Enable_alua
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#8839ef">pathType&lt;/span>: non_optimal_path
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>根据
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/configuring-alua/configuring-alua-parameters-for-a-distributed-storage-backend/">配置分布式存储后端的ALUA参数&lt;/a>
中的配置策略规则，对于主机名为“node1”的主机，选择第一条ALUA配置段来配置启动器；对于主机名为“node10”的主机，选择第二条ALUA配置段来配置启动器。^表示匹配字符串的开头，$表示匹配字符串的结尾。&lt;/p></description></item></channel></rss>