<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pod相关问题 on Huawei</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/</link><description>Recent content in Pod相关问题 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/troubleshooting/pod-issues/index.xml" rel="self" type="application/rss+xml"/><item><title>集群中worker节点宕机并恢复后，Pod完成failover，但是Pod所在源主机出现盘符残留</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-a-worker-node-in-the-cluster-breaks-down-and-recovers-pod-failover-is-complete-but-the-source/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-a-worker-node-in-the-cluster-breaks-down-and-recovers-pod-failover-is-complete-but-the-source/</guid><description>&lt;h2 id="zh-cn_topic_0000001133091104_section1566717121452">现象描述&lt;/h2>
&lt;p>worker节点 A上运行Pod, 并通过CSI挂载外置块设备到该Pod；异常掉电节点worker节点A； Kubernetes平台会在感知到节点故障后，将Pod切换至worker节点B；恢复worker节点A， 节点A上的盘符会从正常变为故障。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001133091104_section87566339513">环境配置&lt;/h2>
&lt;p>Kubernetes版本：1.18及以上&lt;/p>
&lt;p>存储类型：块存储&lt;/p>
&lt;h2 id="zh-cn_topic_0000001133091104_section1425013451056">根因分析&lt;/h2>
&lt;p>worker节点A恢复后，Kubernetes会向存储发起解除映射操作，但是不会发起主机侧的移除盘符操作。在Kubernetes解除映射后，worker节点A上就会出现盘符残留。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001133091104_section350653016492">解决措施或规避方法&lt;/h2>
&lt;p>目前的解决方法只能人工介入，手动清理掉主机的残留盘符（或者再次重启主机，利用主机重启过程中扫盘机制，清理掉残留盘符）。具体方法如下：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;a name="zh-cn_topic_0000001133091104_li195731859152815">&lt;/a>排查主机的残留盘符。&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;a name="zh-cn_topic_0000001133091104_li177163210119">&lt;/a>执行命令，判断是否存在多路径状态异常的DM多路径设备：&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>multipath -ll
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下。路径状态为failed faulty running表示异常，对应的DM多路径设备为dm-12，关联的SCSI磁盘为sdi和sdj，在配置多条路径时，会有多个SCSI磁盘。记录这些SCSI磁盘。&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>mpathb (3618cf24100f8f457014a764c000001f6) dm-12 HUAWEI ,XSG1 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>size=100G features=&amp;#39;0&amp;#39; hwhandler=&amp;#39;0&amp;#39; wp=rw
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>`-+- policy=&amp;#39;service-time 0&amp;#39; prio=-1 status=active
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> |- 39:0:0:1 sdi 8:48 failed faulty running
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> `- 38:0:0:1 sdj 8:64 failed faulty running
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>&lt;strong>是&lt;/strong> =&amp;gt; 继续执行
&lt;a href="#zh-cn_topic_0000001133091104_li4217105512811">步骤1.2&lt;/a>
。&lt;/li>
&lt;li>&lt;strong>否&lt;/strong> =&amp;gt; 不涉及。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="zh-cn_topic_0000001133091104_li4217105512811">&lt;/a>执行以下命令，判断残留的DM多路径设备是否可读。&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>dd if=/dev/dm-12 of=/dev/null count=1 bs=1M iflag=direct
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下。如果返回结果为：Input/output error，且读取数据为“0 bytes (0 B) copied”，表示该设备不可读。其中，_dm-xx_为
&lt;a href="#zh-cn_topic_0000001133091104_li177163210119">步骤1.1&lt;/a>
查到的设备号：&lt;/p></description></item><item><title>创建Pod时，Pod的状态为ContainerCreating</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/when-a-pod-is-created-the-pod-is-in-the-containercreating-state/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/when-a-pod-is-created-the-pod-is-in-the-containercreating-state/</guid><description>&lt;h2 id="zh-cn_topic_0000001163875516_section1566717121452">现象描述&lt;/h2>
&lt;p>执行完成Pod的创建操作，一段时间后，Pod的状态仍然处于ContainerCreating，查看具体日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），报错“Fibre Channel volume device not found”。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001163875516_section1425013451056">根因分析&lt;/h2>
&lt;p>该问题是因为在主机节点有磁盘残留，导致下次创建Pod时，查找磁盘失败。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001163875516_section164471213145410">解决措施或规避方法&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="zh-cn_topic_0000001163875516_li134903196550">&lt;/a>执行以下命令，查看Pod所在节点信息。&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>kubectl get pod -o wide
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&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>NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mypod 0/1 ContainerCreating 0 51s 10.244.1.224 node1 &amp;lt;none&amp;gt; &amp;lt;none&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>删除Pod。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的_node1_节点。&lt;em>node1&lt;/em> 节点为
&lt;a href="#zh-cn_topic_0000001163875516_li134903196550">2&lt;/a>
中查询的节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>移除盘符残留，详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/troubleshooting/pod-issues/after-a-worker-node-in-the-cluster-breaks-down-and-recovers-pod-failover-is-complete-but-the-source/#zh-cn_topic_0000001133091104_section350653016492">解决措施或规避方法&lt;/a>
。&lt;/p>
&lt;/li>
&lt;/ol></description></item><item><title>创建Pod时，Pod的状态长时间处于ContainerCreating状态</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-is-in-the-containercreating-state-for-a-long-time-when-it-is-being-created/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-is-in-the-containercreating-state-for-a-long-time-when-it-is-being-created/</guid><description>&lt;h2 id="zh-cn_topic_0000001279996521_section1566717121452">现象描述&lt;/h2>
&lt;p>创建Pod时，Pod长时间处于ContainerCreating状态，此时查看huawei-csi-node的日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），huawei-csi-node的日志中无创建Pod的日志记录，执行&lt;strong>kubectl get volumeattachment&lt;/strong>命令后，PV列无该Pod使用的PV名称。在等待较长时间后（超过十分钟），Pod正常创建，Pod状态变为Running状态。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001279996521_section1425013451056">根因分析&lt;/h2>
&lt;p>该问题是因为Kubernetes的kube-controller-manager组件服务异常导致。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001279996521_section164471213145410">解决措施或规避方法&lt;/h2>
&lt;p>请联系容器平台侧工程师解决。&lt;/p></description></item><item><title>创建Pod失败，日志显示执行mount命令超时</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-the-log-shows-that-the-execution-of-the-mount-command-times-out/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-the-log-shows-that-the-execution-of-the-mount-command-times-out/</guid><description>&lt;h2 id="zh-cn_topic_0000001279996521_section1566717121452">现象描述&lt;/h2>
&lt;p>创建Pod时，Pod一直处于ContainerCreating状态，此时查看huawei-csi-node的日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），日志显示执行mount命令超时。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001279996521_section1425013451056">根因分析&lt;/h2>
&lt;p>原因1：该问题可能由于配置的业务IP网络不通，导致mount命令执行超时失败。&lt;/p>
&lt;p>原因2：对于部分操作系统，如Kylin V10 SP1和SP2，使用NFSv3从容器内执行mount命令耗时较长，导致mount命令超时并报错“error: exit status 255”，该问题可能由于容器运行时containerd的LimitNOFILE参数值过大（10亿+）。&lt;/p>
&lt;p>原因3：可能由于网络问题导致挂载失败，CSI默认挂载超时时间为30秒，超过30秒仍挂载失败，日志会显示执行mount命令超时。&lt;/p>
&lt;h2 id="zh-cn_topic_0000001279996521_section164471213145410">解决措施或规避方法&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>执行ping命令判断业务IP网络是否连通，如果无法ping通，则为原因1，请配置可用的业务IP地址，如果可以ping通，则执行
&lt;a href="#li21141916181411">2&lt;/a>
。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="li21141916181411">&lt;/a>进入任意可以执行mount命令的容器中，指定使用NFSv3执行mount命令。如果命令超时，则可能是原因2，继续执行&lt;strong>systemctl status containerd.service&lt;/strong>命令查看配置文件路径，然后执行&lt;strong>cat&lt;/strong> _/xxx/containerd.service_命令查看配置文件。文件中如果有LimitNOFILE=infinity或LimitNOFILE的值大小为10亿，请执行
&lt;a href="#li560665881414">3&lt;/a>
。否则请联系华为工程师处理。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="li560665881414">&lt;/a>原因2可参考以下方式处理：&lt;/p>
&lt;ul>
&lt;li>尝试使用NFSv4.0及以上协议。&lt;/li>
&lt;li>参考
&lt;a href="https://github.com/containerd/containerd/issues/3201" target="_blank">社区修改方案&lt;/a>
，将LimitNOFILE参数值修改为合适的值。该方案将会重启容器运行时，请评估对业务的影响。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>在挂载失败的宿主机手动挂载该文件系统，如果时间超过30秒，需要用户自行排查该宿主机到存储节点网络是否存在问题。mount命令示例如下：&lt;/p>
&lt;ul>
&lt;li>
&lt;p>执行以下命令创建测试目录。&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>mkdir /tmp/test_mount
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行mount命令，挂载文件系统，并观察耗时，其中ip:nfs_share_path可以从huawei-csi-node日志中获取，详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
&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>time mount ip:nfs_share_path /tmp/test_mount
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>测试结束，执行以下命令解挂载文件系统&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>umount /tmp/test_mount
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol></description></item><item><title>创建Pod失败，日志显示执行mount命令失败</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-the-log-shows-that-the-mount-command-fails-to-be-executed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-the-log-shows-that-the-mount-command-fails-to-be-executed/</guid><description>&lt;h2 id="section16564369537">现象描述&lt;/h2>
&lt;p>NAS场景下，创建Pod时，Pod一直处于ContainerCreating状态，此时查看huawei-csi-node的日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），日志显示执行mount命令失败。&lt;/p>
&lt;h2 id="section135642617536">根因分析&lt;/h2>
&lt;p>该问题可能由于存储侧未开启NFS 4.0/4.1/4.2协议，主机在使用NFS v4协议挂载失败后，未进行协商使用NFS v3协议挂载。&lt;/p>
&lt;h2 id="section75642613539">解决措施或规避方法&lt;/h2>
&lt;ul>
&lt;li>开启存储侧的NFS 3/4.0/4.1/4.2协议，重新尝试默认挂载。&lt;/li>
&lt;li>直接指定可用的NFS协议进行挂载，参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/basic-services/storageclass-management/configuring-a-storageclass/">配置存储类&lt;/a>
。&lt;/li>
&lt;/ul></description></item><item><title>创建Pod失败，Events日志显示“publishInfo doesn't exist”</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-message-publishinfo-doesn-t-exist-is-displayed-in-the-events-log/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-message-publishinfo-doesn-t-exist-is-displayed-in-the-events-log/</guid><description>&lt;h2 id="section16564369537">现象描述&lt;/h2>
&lt;p>创建Pod时，Pod一直处于ContainerCreating状态，查看Pod中有打印告警事件：rpc error: code = Internal desc = publishInfo doesn&amp;rsquo;t exist。&lt;/p>
&lt;h2 id="section135642617536">根因分析&lt;/h2>
&lt;p>按照CSI协议约定，工作负载要使用一个PV卷时，CO（Container Orchestration system，通过RPC请求与CSI插件通信）会调用CSI插件提供的
&lt;a href="https://github.com/container-storage-interface/spec/blob/master/spec.md" target="_blank">CSI协议&lt;/a>
中的“ControllerPublishVolume”接口（huawei-csi-controller服务提供）完成PV卷的映射，然后调用CSI插件提供的“NodeStageVolume”接口（huawei-csi-node服务提供）完成PV卷的挂载。导致出现“publishInfo doesn&amp;rsquo;t exist”错误的原因是在一次完整的挂载时，仅huawei-csi-node服务收到了“NodeStageVolume”请求，而在此之前huawei-csi-controller服务未收到“ControllerPublishVolume”请求，导致huawei-csi-controller服务未完成PV卷的映射，没有把映射信息传递给huawei-csi-node服务。&lt;/p>
&lt;h2 id="section75642613539">解决措施&lt;/h2>
&lt;p>解决该问题，需要触发Kubernetes调用“ControllerPublishVolume”接口。&lt;/p>
&lt;p>如果集群中所有旧版本创建的工作负载均触发了该操作，则后续将不会出现该问题。&lt;/p>
&lt;h2 id="section1883055741114">操作步骤&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下命令，获取工作负载所在节点信息。&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>kubectl get pod error-pod -n error-pod-in-namespace -owide
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&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>NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>pod-nfs 0/1 ContainerCreating 0 3s &amp;lt;none&amp;gt; node-1 &amp;lt;none&amp;gt; &amp;lt;none&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>将该工作负载漂移至其他节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>若在集群内无法完成漂移，可在原节点完成工作负载重建，即进行删除-新建操作。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>观察该工作负载是否成功拉起，如果拉起失败请联系华为工程师。&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="section96497192258">集群工作负载排查&lt;/h2>
&lt;p>Kubernetes调用CSI插件完成卷映射时，将使用VolumeAttachment资源保存映射信息，用于表示将指定的卷从指定的节点上附加或分离。由于该问题是由于publishInfo不存在导致，因此可通过查看VolumeAttachment资源信息排查集群中其他工作负载是否存在该问题。具体步骤如下：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>使用远程访问工具（以PuTTY为例），通过管理IP地址，登录Kubernetes集群的任意master节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a name="li18768174613266">&lt;/a>执行以下命令，获取VolumeAttachment信息，并保留ATTACHER字段为csi.huawei.com的资源，其中csi.huawei.com为华为CSI驱动名称，可在values.yaml文件中配置，配置项为csiDriver.driverName，配置项详情描述参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation/installation-using-helm/parameters-in-the-values-yaml-file-of-helm/#table188162213437">表4&lt;/a>
。&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>kubectl get volumeattachments.storage.k8s.io 
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&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>NAME ATTACHER PV NODE ATTACHED AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>csi-47abxx csi.huawei.com pvc-1xx node-1 true 12h
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li876824620267">&lt;/a>执行以下命令查看VolumeAttachment资源详情，其中csi-47abxx为
&lt;a href="#li18768174613266">2&lt;/a>
中查询到的资源名称。&lt;/p></description></item><item><title>创建Pod失败或重启kubelet后，日志显示挂载点已存在</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-a-pod-fails-to-be-created-or-kubelet-is-restarted-logs-show-that-the-mount-point-already-exist/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-a-pod-fails-to-be-created-or-kubelet-is-restarted-logs-show-that-the-mount-point-already-exist/</guid><description>&lt;h2 id="section16564369537">现象描述&lt;/h2>
&lt;p>创建Pod时，Pod一直处于ContainerCreating状态，或者重启kubelet后，日志中显示挂载点已存在。此时查看huawei-csi-node的日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），日志提示错误为：The mount /var/lib/kubelet/pods/xxx/mount is already exist, but the source path is not /var/lib/kubelet/plugins/kubernetes.io/xxx/globalmount&lt;/p>
&lt;h2 id="section135642617536">根因分析&lt;/h2>
&lt;p>该问题的根因是Kubernetes进行重复挂载操作。&lt;/p>
&lt;h2 id="section75642613539">解决措施或规避方法&lt;/h2>
&lt;p>执行以下命令，将已存在的路径解除挂载，其中“/var/lib/kubelet/pods/xxx/mount”为日志中提示的已存在的挂载路径。&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-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>umount &lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>&lt;span style="color:#8839ef">var&lt;/span>&lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>lib&lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>kubelet&lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>pods&lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>xxx&lt;span style="color:#04a5e5;font-weight:bold">/&lt;/span>mount
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Pod挂载卷目录提示I/O error</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/i-o-error-is-displayed-when-a-volume-directory-is-mounted-to-a-pod/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/i-o-error-is-displayed-when-a-volume-directory-is-mounted-to-a-pod/</guid><description>&lt;h2 id="section16564369537">现象描述&lt;/h2>
&lt;p>Pod对所挂载卷进行读写时，提示I/O error。&lt;/p>
&lt;h2 id="section135642617536">根因分析&lt;/h2>
&lt;p>使用SCSI等协议时，如果Pod持续往挂载目录写入数据时，存储发生重启，导致主机上设备到存储的链路中断，触发I/O error。存储恢复时，挂载目录仍然为只读。&lt;/p>
&lt;h2 id="section75642613539">解决措施&lt;/h2>
&lt;p>重新挂载该卷，即通过重建Pod可以触发重新挂载。&lt;/p></description></item><item><title>Kubernetes平台第一次搭建时， iscsi_tcp服务没有正常启动，导致创建Pod失败</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/failed-to-create-a-pod-because-the-iscsi_tcp-service-is-not-started-properly-when-the-kubernetes-pla/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/failed-to-create-a-pod-because-the-iscsi_tcp-service-is-not-started-properly-when-the-kubernetes-pla/</guid><description>&lt;h2 id="zh-cn_topic_0234872004_section1566717121452">现象描述&lt;/h2>
&lt;p>创建Pod时报错，在/var/log/huawei-csi-node日志中报错“ Cannot connect ISCSI portal *.*.*.*: libkmod: kmod_module_insert_module: could not find module by name=&amp;lsquo;iscsi_tcp&amp;rsquo;。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section1425013451056">根因分析&lt;/h2>
&lt;p>搭建Kubernete和安装iSCSI服务后， iscsi_tcp服务可能会被停掉，可通过执行以下命令查看服务是否被停掉。&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>lsmod | grep iscsi | grep iscsi_tcp
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>命令结果示例如下：&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>iscsi_tcp 18333 6 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>libiscsi_tcp 25146 1 iscsi_tcp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>libiscsi 57233 2 libiscsi_tcp,iscsi_tcp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>scsi_transport_iscsi 99909 3 iscsi_tcp,libiscsi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="zh-cn_topic_0234872004_section350653016492">解决措施或规避方法&lt;/h2>
&lt;p>执行以下命令，手动加载iscsi_tcp服务。&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>modprobe iscsi_tcp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>lsmod | grep iscsi | grep iscsi_tcp
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>创建Pod失败，日志显示启动器已关联至其他主机</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-logs-show-that-an-initiator-has-been-associated-with-another-host/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-logs-show-that-an-initiator-has-been-associated-with-another-host/</guid><description>&lt;h2 id="zh-cn_topic_0234872004_section1566717121452">现象描述&lt;/h2>
&lt;p>使用SAN存储创建Pod时，Pod一直处于ContainerCreating状态，查看Pod中有打印告警事件：rpc error: code = Internal desc = initiator xxx is already associated to another host。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section1425013451056">根因分析&lt;/h2>
&lt;p>原因1：CSI会根据一定规则自动创建主机、主机组、启动器，若相同资源在使用CSI前已经在存储侧存在，则会出现冲突。该报错原因可能为使用CSI前已添加过相同的启动器。&lt;/p>
&lt;p>原因2：容器集群中，不同工作节点的启动器名称重复，请根据下列步骤进行排查：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>登录到容器集群的不同工作节点，执行命令查看启动器名称，确认是否存在不同工作节点使用相同启动器名称。&lt;/p>
&lt;ul>
&lt;li>
&lt;p>查看iSCSI启动器名称，执行下列命令：&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>cat /etc/iscsi/initiatorname.iscsi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>查看FC启动器名称，执行下列命令：&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>cat /sys/class/fc_host/host*/port_name
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>查看RoCE启动器名称，执行下列命令：&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>cat /etc/nvme/hostnqn
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>若存在不同工作节点使用相同启动器名称，请按
&lt;a href="#zh-cn_topic_0234872004_section350653016492">解决措施或规避方法&lt;/a>
解决。&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="zh-cn_topic_0234872004_section350653016492">解决措施或规避方法&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>确认启动器关联的主机是否存在使用中的卷，若有使用中的卷，需先将使用中的Pod漂移至其他节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>确认主机中不存在使用中的卷后，修改启动器名称，确保启动器的唯一性。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行下列命令，重启iscsid服务。&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>systemctl restart iscsid
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-notice.gif">&lt;br>
重启iscsid服务可能导致I/O中断，请确保启动器关联的主机中没有正在使用中的卷，再进行重启操作。&lt;/p>
&lt;/blockquote>
&lt;/li>
&lt;li>
&lt;p>重启huawei-csi-node服务。&lt;/p>
&lt;/li>
&lt;/ol></description></item><item><title>创建Pod失败，日志显示“Get DMDevice by alias: dm-x failed”</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-logs-show-get-dmdevice-by-alias-dm-x-failed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/a-pod-fails-to-be-created-and-logs-show-get-dmdevice-by-alias-dm-x-failed/</guid><description>&lt;h2 id="zh-cn_topic_0234872004_section1566717121452">现象描述&lt;/h2>
&lt;p>创建Pod时，Pod长时间处于ContainerCreating状态，此时查看huawei-csi-node的日志信息（详情请参考
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/common-o-m-operations/collecting-information/viewing-huawei-csi-logs/">如何查看华为CSI日志&lt;/a>
），报错：&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>check device: dm-1 is a partition device failed. error: Get DMDevice by alias:dm-1 failed. error: Can not get DMDevice by alias: dm-1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="zh-cn_topic_0234872004_section1425013451056">根因分析&lt;/h2>
&lt;p>DM-Multipath的配置文件中未配置user_friendly_names参数为yes。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section350653016492">解决措施或规避方法&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>确认Pod运行所在工作节点是否存在使用中的卷，若有使用中的卷，需先将使用中的Pod漂移至其他节点。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>按照
&lt;a href="https://huawei.github.io/css-docs/css-docs/docs/installation-and-deployment/csi/installation-preparations/checking-the-host-multipathing-configuration/">检查主机多路径配置&lt;/a>
章节，配置 /etc/multipath.con 文件。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行下列命令，重启多路径软件。&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-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>systemctl reload multipathd&lt;span style="color:#04a5e5;font-weight:bold">.&lt;/span>service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>systemctl restart multipathd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;blockquote>
&lt;p>&lt;img src="https://huawei.github.io/css-docs/css-docs/public_sys-resources/zh-cn/icon-notice.gif">&lt;br>
重启多路径软件可能导致I/O中断，请确保Pod运行所在工作节点中没有正在使用中的卷，再进行重启操作。&lt;/p>
&lt;/blockquote>
&lt;/li>
&lt;/ol></description></item><item><title>使用nvme协议，批量删除同一节点上Pod后，节点上nvme链路残留</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-pods-on-the-same-node-are-deleted-in-a-batch-using-the-nvme-protocol-residual-nvme-links-exist/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/after-pods-on-the-same-node-are-deleted-in-a-batch-using-the-nvme-protocol-residual-nvme-links-exist/</guid><description>&lt;h2 id="zh-cn_topic_0234872004_section1566717121452">现象描述&lt;/h2>
&lt;p>nvme协议场景，批量删除同一节点的Pod，Pod成功删除，但节点上nvme链路没有被清理干净&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># nvme list-subsys
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>nvme-subsys0 - NQN=nqn.xxx.nvme:nvm-subsystem-sn-xxxxxxx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> +- nvme0 tcp traddr=xxx.xxx.xxx.xxx,trsvcid=4420,src_addr=xxx.xxx.xxx.xxx live 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> +- nvme1 tcp traddr=xxx.xxx.xxx.xxx,trsvcid=4420,src_addr=xxx.xxx.xxx.xxx live 
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="zh-cn_topic_0234872004_section1425013451056">根因分析&lt;/h2>
&lt;p>使用nvme协议，只有主机与存储资源解映射完成后，主机上的设备路径才会被清理。在多个Pod挂载同一个卷，且执行批量删除的场景下，CSI在解挂载阶段(NodeUnstageVolume)无法感知到后续解映射阶段(ControllerUnpublishVolume)的设备路径清理情况，导致无法及时清理nvme链路。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section350653016492">解决措施或规避方法&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>nvme链路残留不影响CSI功能使用，但是会导致后续挂载的存储资源按照当前残留的链路扫描出对应的设备路径，若无链路数量减少的要求，则可不处理残留链路。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>若需要减少后续挂载时的链路数量，可以手动删除节点上的残留链路。以清理上述现象描述中的链路为例，需要执行以下命令：&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>nvme disconnect -d nvme0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>nvme disconnect -d nvme1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>SAN双活场景，已挂载的卷对应聚合盘的子路径丢失</title><link>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/in-the-san-hypermetro-scenario-the-subpath-of-the-aggregated-disks-corresponding-to-the-mounted-volu/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/v4.11.0/troubleshooting/pod-issues/in-the-san-hypermetro-scenario-the-subpath-of-the-aggregated-disks-corresponding-to-the-mounted-volu/</guid><description>&lt;h2 id="zh-cn_topic_0234872004_section1566717121452">现象描述&lt;/h2>
&lt;p>已挂载的资源对应聚合盘的子路径丢失。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section1425013451056">根因分析&lt;/h2>
&lt;p>&lt;strong>图 1&lt;/strong> SAN双活子路径丢失故障示意图&lt;a name="fig18307183116559">&lt;/a>&lt;br>
&lt;img src="https://huawei.github.io/css-docs/css-docs/figures/SAN%E5%8F%8C%E6%B4%BB%E5%AD%90%E8%B7%AF%E5%BE%84%E4%B8%A2%E5%A4%B1%E6%95%85%E9%9A%9C%E7%A4%BA%E6%84%8F%E5%9B%BE.png" title="SAN双活子路径丢失故障示意图">&lt;/p>
&lt;p>如
&lt;a href="#fig18307183116559">图1&lt;/a>
所示，当HBA卡/网卡异常，交换机/网络抖动，存储阵列业务端口故障等因素导致主机与存储一端链路断开后，主机发生重启并触发重新扫盘，此时主机上缺失已故障一端存储的链路。待故障恢复后，由于主机重新扫盘后，链路信息已丢失，缺失的链路不会自动恢复。&lt;/p>
&lt;p>想要恢复缺失的链路，通常可以通过漂移Pod到其他主机方式，交由CSI自动重新挂载，并补齐缺失的链路。若需手动在当前主机上恢复缺失链路，请参考以下方法。&lt;/p>
&lt;h2 id="zh-cn_topic_0234872004_section350653016492">解决措施或规避方法（iSCSI协议）&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>执行以下命令，查询主机上对应业务IP的iSCSI节点是否存在，其中&amp;quot;192.168.1.100&amp;quot;为业务IP。若节点存在则跳转到
&lt;a href="#li231010151716">3&lt;/a>
，不存在则到
&lt;a href="#li15574133618113">2&lt;/a>
。&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>iscsiadm -m node | grep 192.168.1.100
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li15574133618113">&lt;/a>执行以下命令，发现iSCSI节点。&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>iscsiadm -m discovery -t st -p 192.168.1.100
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li231010151716">&lt;/a>执行以下命令，登录iSCSI节点。&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>iscsiadm -m node -p 192.168.1.100 -l
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li1059255014315">&lt;/a>执行以下命令，并根据对应的业务IP，查找其下iSCSI host编号。&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>iscsiadm -m session -P3
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li385110117351">&lt;/a>登录存储DM界面，通过服务-&amp;gt;主机组-&amp;gt;主机-&amp;gt;映射，找到lun对应的主机LUN ID&lt;/p>
&lt;/li>
&lt;li>
&lt;p>执行以下扫盘命令，补齐缺失的链路，其中&amp;quot;host_lun_id&amp;quot;为
&lt;a href="#li385110117351">5&lt;/a>
中找到的主机LUN ID，&amp;ldquo;host_no&amp;quot;为
&lt;a href="#li1059255014315">4&lt;/a>
中获取的host编号&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>echo &amp;#34;- - &amp;lt;host_lun_id&amp;gt;&amp;#34; &amp;gt; /sys/class/scsi_host/host&amp;lt;host_no&amp;gt;/scan
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>执行以下命令，查看链路是否已经补齐&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>multipath -ll
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section133691529119">解决措施或规避方法（FC协议）&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>&lt;a name="li1051181216016">&lt;/a>执行以下命令，查找所有当前主机上的FC启动器&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>cat /sys/class/fc_host/host*/port_name | awk &amp;#39;BEGIN{FS=&amp;#34;0x&amp;#34;;ORS=&amp;#34; &amp;#34;}{print $2}&amp;#39;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>&lt;a name="li68321471013">&lt;/a>执行以下命令，查找路径缺失启动器下对应的host编号，其中&amp;quot;port_name&amp;quot;为
&lt;a href="#li1051181216016">1&lt;/a>
中获取的启动器名称&lt;/p></description></item></channel></rss>