跳到主要内容

配置和连接 MetroCluster IP 接口

必须配置 MetroCluster IP(MCCIP)接口以用于复制每个节点的存储和非易失性高速缓存。然后使用 MCCIP 接口建立连接。这样会创建用于存储复制的 iSCSI 连接。

关于本任务

必须仔细选择 MetroCluster IP 地址,因为初始配置后无法更改它们。

MetroCluster IP 配置的注意事项

必须为每个节点创建两个接口。这些接口必须与 MetroCluster RCF 文件中定义的 VLAN 相关联。

示例中使用了以下 IP 地址和子网:
节点接口IP 地址子网
node_A_1MetroCluster IP 接口 110.1.1.110.1.1/24
MetroCluster IP 接口 210.1.2.110.1.2/24
node_A_2MetroCluster IP 接口 110.1.1.210.1.1/24
MetroCluster IP 接口 210.1.2.210.1.2/24
node_B_1MetroCluster IP 接口 110.1.1.310.1.1/24
MetroCluster IP 接口 210.1.2.310.1.2/24
node_B_2MetroCluster IP 接口 110.1.1.410.1.1/24
MetroCluster IP 接口 210.1.2.410.1.2/24
  • 全闪存阵列 DM7000FDM7000H 系统使用端口 e1a 和 e1b 作为 MetroCluster IP 接口。

  • 全闪存阵列 DM5000FDM5000H 系统使用 VLAN 端口 e0a-10 和 e0b-20 作为 MetroCluster IP 接口。

    这些物理端口也用作集群接口。VLAN 是自动配置的。

  1. 确认每个节点都启用了磁盘自动分配:storage disk option show

    磁盘自动分配功能会逐个磁盘架分配池 0 和池 1 磁盘。

    Auto Assign 列会显示是否启用了磁盘自动分配。
    Node BKg. FW. Upd. Auto Copy Auto Assign Auto Assign Policy
    ---------- ------------- ---------- ----------- ------------------
    node_A_1 on on on default
    node_A_2 on on on default
    2 entries were displayed.

  2. 验证是否可以在节点上创建 MetroCluster IP 接口:metrocluster configuration-settings show-status

    示例

    所有节点都应该准备就绪:

    Cluster    Node Configuration Settings Status
    ---------- ----------- ---------------------------------
    cluster_A
    node_A_1 ready for interface create
    node_A_2 ready for interface create
    cluster_B
    node_B_1 ready for interface create
    node_B_2 ready for interface create
    4 entries were displayed.

  3. 在 node_A_1 上创建接口。
    1. 在 node_A_1 上的端口 e5a 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5a -address ip-address -netmask netmask

      示例

      以下示例显示了在 node_A_1 上的端口 e5a 上创建 IP 地址为 10.1.1.1 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A 
      -home-node node_A_1
      -home-port e1a -address 10.1.1.1 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.
      cluster_A::>
    2. 在 node_A_1 上的端口 e5b 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5b -address ip-address -netmask netmask

      示例

      以下示例显示了在 node_A_1 上的端口 e5b 上创建 IP 地址为 10.1.2.1 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A 
      -home-node node_A_1
      -home-port e1b -address 10.1.2.1 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.
      cluster_A::>
    可以使用 metrocluster configuration-settings interface show 命令验证这些接口是否存在。
  4. 在 node_A_2 上创建接口。
    1. 在 node_A_2 上的端口 e5a 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5a -address ip-address -netmask netmask

      示例

      以下示例显示了在 node_A_2 上的端口 e5a 上创建 IP 地址为 10.1.1.2 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A 
      -home-node node_A_2
      -home-port e1a -address 10.1.1.2 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.
      cluster_A::>
    2. 在 node_A_2 上的端口 e5b 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5b -address ip-address -netmask netmask

      示例

      以下示例显示了在 node_A_2 上的端口 e5b 上创建 IP 地址为 10.1.2.2 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A 
      -home-node node_A_2
      -home-port e15b -address 10.1.2.2 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.
      cluster_A::>
  5. 在 node_B_1 上创建接口。
    1. 在 node_B_1 上的端口 e5a 上配置接口:metrocluster configuration-settings interface create -cluster-namecluster-name-home-nodenode-name-home-port e5a -addressip-address-netmask netmask

      示例

      以下示例显示了在 node_B_1 上的端口 e5a 上创建 IP 地址为 10.1.1.3 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A -home-node node_B_1 -home-port e5a -address 10.1.1.3 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.cluster_A::>
    2. 在 node_B_1 上的端口 e5b 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5a -addressip-address -netmask netmask

      示例

      以下示例显示了在 node_B_1 上的端口 e5b 上创建 IP 地址为 10.1.2.3 的接口:

      cluster_A::> metrocluster configuration-settings interface create -cluster-name cluster_A -home-node node_B_1 -home-port e5b -address 10.1.2.3 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.cluster_A::>
  6. 在 node_B_2 上创建接口。
    以下示例中使用的端口是 e5a 和 e5b。必须在具体平台型号的正确端口上配置这些接口,如上所述。
    1. 在 node_B_2 上的端口 e5a 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5a -addressip-addresip-addresss ip-address -netmask netmask

      示例

      以下示例显示了在 node_B_2 上的端口 e5a 上创建 IP 地址为 10.1.1.4 的接口:

      cluster_B::>metrocluster configuration-settings interface create -cluster-name cluster_B -home-node node_B_2 -home-port e5a -address 10.1.1.4 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.cluster_A::>
    2. 在 node_B_2 上的端口 e5b 上配置接口:metrocluster configuration-settings interface create -cluster-name cluster-name -home-node node-name -home-port e5b -address ip-address -netmask netmask

      示例

      以下示例显示了在 node_B_2 上的端口 e5b 上创建 IP 地址为 10.1.2.4 的接口:

      cluster_B::> metrocluster configuration-settings interface create -cluster-name cluster_B -home-node node_B_2 -home-port e5b -address 10.1.2.4 -netmask 255.255.255.0
      [Job 28] Job succeeded: Interface Create is successful.
      cluster_A::>
  7. 验证是否已配置接口:metrocluster configuration-settings interface show

    示例

    以下示例显示每个接口的配置状态为已完成。

    cluster_A::> metrocluster configuration-settings interface show
    DR Config
    Group Cluster Node Network Address Netmask Gateway State
    ----- ------- ------- --------------- --------------- --------- ----------
    1 cluster_A node_A_1
    Home Port: e1a
    10.1.1.1 255.255.255.0 - completed
    Home Port: e1b
    10.1.2.1 255.255.255.0 - completed
    node_A_2
    Home Port: e1a
    10.1.1.2 255.255.255.0 - completed
    Home Port: e1b
    10.1.2.2 255.255.255.0 - completed
    cluster_B node_B_1
    Home Port: e1a
    10.1.1.3 255.255.255.0 - completed
    Home Port: e1b
    10.1.2.3 255.255.255.0 - completed
    node_B_2
    Home Port: e1a
    10.1.1.4 255.255.255.0 - completed
    Home Port: e1b
    10.1.2.4 255.255.255.0 - completed
    8 entries were displayed.
    cluster_A::>
  8. 验证节点是否已准备好连接 MetroCluster 接口:metrocluster configuration-settings show-status

    示例

    以下示例显示所有节点处于准备好连接状态:

    Cluster     Node        Configuration Settings Status
    ---------- ----------- ---------------------------------
    cluster_A
    node_A_1 ready for connection connect
    node_A_2 ready for connection connect
    cluster_B
    node_B_1 ready for connection connect
    node_B_2 ready for connection connect
    4 entries were displayed.
  9. 建立连接:metrocluster configuration-settings connection connect

    发出此命令后,无法再更改 IP 地址。

    示例

    以下示例显示 cluster_A 已成功连接:

    cluster_A::> metrocluster configuration-settings connection connect
    [Job 53] Job succeeded: Connect is successful.
    cluster_A::>
  10. 验证是否已建立连接:metrocluster configuration-settings show-status

    示例

    所有节点的配置设置状态应该是已完成:

    Cluster    Node     Configuration Settings Status
    ---------- ----------- ---------------------------------
    cluster_A
    node_A_1 completed
    node_A_2 completed
    cluster_B
    node_B_1 completed
    node_B_2 completed
    4 entries were displayed.
  11. 验证是否已建立 iSCSI 连接:
    1. 更改为高级权限级别:set -privilege advanced

      提示是否继续进入高级模式时,需要回答 y,然后将显示高级模式提示符(*>)。

    2. 显示连接:storage iscsi-initiator show

      在运行 ONTAP 9.5 的系统上,每个集群上有八个 MCCIP 发起方应该出现在输出中。

      在运行 ONTAP 9.4 和更低版本的系统上,每个集群上有四个 MCCIP 发起方应该出现在输出中。

      示例

      以下示例显示运行 ONTAP 9.5 的集群上有八个 MCCIP 发起方:

      cluster_A::*> storage iscsi-initiator show
      Node Type Label Target Portal Target Name Admin/Op
      ---- ---- -------- ------------------ -------------------------------- --------

      cluster_A-01
      dr_auxiliary
      mccip-aux-a-initiator
      10.227.16.113:65200 prod506.com.company:abab44 up/up
      mccip-aux-a-initiator2
      10.227.16.113:65200 prod507.com.company:abab44 up/up
      mccip-aux-b-initiator
      10.227.95.166:65200 prod506.com.company:abab44 up/up
      mccip-aux-b-initiator2
      10.227.95.166:65200 prod507.com.company:abab44 up/up
      dr_partner
      mccip-pri-a-initiator
      10.227.16.112:65200 prod506.com.company:cdcd88 up/up
      mccip-pri-a-initiator2
      10.227.16.112:65200 prod507.com.company:cdcd88 up/up
      mccip-pri-b-initiator
      10.227.95.165:65200 prod506.com.company:cdcd88 up/up
      mccip-pri-b-initiator2
      10.227.95.165:65200 prod507.com.company:cdcd88 up/up
      cluster_A-02
      dr_auxiliary
      mccip-aux-a-initiator
      10.227.16.112:65200 prod506.com.company:cdcd88 up/up
      mccip-aux-a-initiator2
      10.227.16.112:65200 prod507.com.company:cdcd88 up/up
      mccip-aux-b-initiator
      10.227.95.165:65200 prod506.com.company:cdcd88 up/up
      mccip-aux-b-initiator2
      10.227.95.165:65200 prod507.com.company:cdcd88 up/up
      dr_partner
      mccip-pri-a-initiator
      10.227.16.113:65200 prod506.com.company:abab44 up/up
      mccip-pri-a-initiator2
      10.227.16.113:65200 prod507.com.company:abab44 up/up
      mccip-pri-b-initiator
      10.227.95.166:65200 prod506.com.company:abab44 up/up
      mccip-pri-b-initiator2
      10.227.95.166:65200 prod507.com.company:abab44 up/up
      16 entries were displayed.
    3. 恢复为管理员权限级别:set -privilege admin
  12. 验证节点是否已准备好最终实现 MetroCluster 配置:metrocluster node show

    示例

    cluster_A::> metrocluster node show
    DR Configuration DR
    Group Cluster Node State Mirroring Mode
    ----- ------- ------------------ -------------- --------- ----
    - cluster_A
    node_A_1 ready to configure - -
    node_A_2 ready to configure - -
    2 entries were displayed.
    cluster_A::>
    cluster_B::> metrocluster node show
    DR Configuration DR
    Group Cluster Node State Mirroring Mode
    ----- ------- ------------------ -------------- --------- ----
    - cluster_B
    node_B_1 ready to configure - -
    node_B_2 ready to configure - -
    2 entries were displayed.
    cluster_B::>