跳转到主内容

如何使用命令行界面在集群模式Data ONTAP 中使用和设置端口集

Views:
65
Visibility:
Public
Votes:
0
Category:
clustered-data-ontap-8
Specialty:
san
Last Updated:

适用场景

  • ONTAP 9.x

问题描述

端口集会对igroup应用一个掩码、以限制SAN客户端可以看到的路径总数。这样可以优化SAN流量、减少拥塞、并在集群模式Data ONTAP 中非常有用、因为在集群模式中、许多节点都可以提供许多可用路径、以便SAN客户端可以使用ALUA有效地处理这些路径。

通过将主机添加到igroup、它可以查看整个存储系统上的所有可用路径。将端口集绑定到igroup后、主机只能访问端口集内LIF的路径。(所有LIF仍会在SendTargets响应中公布、要限制公布的LIF数量、请考虑 选择性LUN映射(SLM)的工作原理如何限制iSCSI启动程序对目标门户的访问

警告:一个igroup只能绑定到一个端口集、但一个LUN可以映射到多个igroup。确保允许客户端的IQN (iSCSI)或WWPN (FC)的所有igroup都绑定了相应的端口集。

严重: 端口集 必须包含间接配对路径、 必须在SAN客户端上启用ALUA、 要 成功执行故障转移、必须安装受支持的NetApp MPIO/SAN实用程序版本

以下情形有助于定义端口集及其用途:

  • 在初始设置期间、ESXi主机"ANclient"的iSCSI IQN会添加到集群1上的Igroup1中、而LUN会映射到Igroup1
    (下图显示了对象的层次结构和关系)
    Cluster1
        Igroup1
            SANclient_IQN
        SFO Aggregates
            VSM
                iSCSI_LIF (port bound)
                Volume
                    LUN (mapped to Igroup1)
        Node1
            CFO Aggregates
            Ports

     
  • 在SANclient上触发重新扫描、它可以看到LUN的16个路径:
    node1_iscsi_lif1 via SANclient port 1
    node1_iscsi_lif1 via SANclient port 2
    node1_iscsi_lif2 via SANclient port 1
    node1_iscsi_lif2 via SANclient port 2
    node2_iscsi_lif1 via SANclient port 1
    node2_iscsi_lif1 via SANclient port 2
    node2_iscsi_lif2 via SANclient port 1
    node2_iscsi_lif2 via SANclient port 2
    node3_iscsi_lif1 via SANclient port 1
    node3_iscsi_lif1 via SANclient port 2
    node3_iscsi_lif2 via SANclient port 1
    node3_iscsi_lif2 via SANclient port 2
    node4_iscsi_lif1 via SANclient port 1
    node4_iscsi_lif1 via SANclient port 2
    node4_iscsi_lif2 via SANclient port 1
    node4_iscsi_lif2 via SANclient port 2


    SANclient可以在node1和node2上使用iSCSI LIF查看LUN的路径、也可以在node3和node4上使用LIF。包含LUN的卷将故障转移到node2;如果node1和节点2均已关闭、则无法访问LUN、因为没有指向磁盘架的路径。

    建议演示如何创建端口集—禁用node3和node4的连接。
    注意:在某些特殊情况下、您可能需要使用node3和node4的这些连接来访问数据。

    没有计划将包含LUN的卷从node1移动到node3或node4;但是、node3和node4上的iSCSI LIF必须可用、以便为node3上的LUN和node4上的LUN提供数据、并将其提供给不同igroup中的其他SAN客户端。
     
  • 创建Portset1时、仅包含适当的LIF、并绑定到Igroup1
    (下表显示了对象的层次结构和关系)
    Cluster1
        Portset1
           node1_iscsi_lif1
           node1_iscsi_lif2
           node2_iscsi_lif1
           node2_iscsi_lif2
        Igroup1 (portset1 bound)
           SANclient_IQN

     
  • 现在、在重新扫描完成后、SANclient可以看到八个路径:
    node1_iscsi_lif1 via SANclient port 1
    node1_iscsi_lif1 via SANclient port 2
    node1_iscsi_lif2 via SANclient port 1
    node1_iscsi_lif2 via SANclient port 2
    node2_iscsi_lif1 via SANclient port 1
    node2_iscsi_lif1 via SANclient port 2
    node2_iscsi_lif2 via SANclient port 1
    node2_iscsi_lif2 via SANclient port 2

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.