跳转到主内容

当在 OpenShift 上为 Trident 设置 nodePrep: [iscsi] 时,会执行哪些操作?

Views:
79
Visibility:
Public
Votes:
0
Category:
trident-openshift
Specialty:
snapx
Last Updated:

适用于

  • Trident 24.10 或更高版本
  • OpenShift

回答

在 OpenShift 上为 TridentOrchestrator 设置 nodePrep: [iscsi] 时,将执行以下操作:

  1. 更新 /etc/multipath.conf
  • (如果 /etc/multipath.conf 不存在)
    使用以下内容创建 /etc/multipath.conf

    defaults {
       find_multipaths no
    }
    blacklist {
       device {
         vendor ".*"
         product ".*"
       }
    }
    blacklist_exceptions {
       device {
         vendor "NETAPP"
         product "LUN"
       }
    }

    • (如果 /etc/multipath.conffind_multipaths = no 存在)
       将 NetAppLUN 添加到 blacklist_exceptions
    • (如果  /etc/multipath.conf 存在且 find_multipaths 未设置为 no
      节点准备停止
    1. 启用并启动服务:
    • iscsid(c命令:systemctl enable --now iscsid
    • multipathd(命令:systemctl enable --now multipathd

    注意:包安装(lsscsi、iscsi-initiator-utils、device-mapper-multipath)和对 /etc/iscsi/iscsid.conf 的更新不会自动执行。

    NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.