Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

将 CN1610 集群交换机迁移到Cisco Nexus 3232C 集群交换机

贡献者 netapp-yvonneo netapp-jolieg

要将集群中现有的 CN1610 集群交换机替换为Cisco Nexus 3232C 集群交换机,必须执行一系列特定的任务。

审查要求

迁移前,请务必查看"迁移要求"

备注 该过程需要同时使用ONTAP命令和Cisco Nexus 3000 系列交换机命令;除非另有说明,否则使用ONTAP命令。

如有需要,请参阅以下内容了解更多信息:

迁移交换机

关于示例

本流程中的示例使用了四个节点:两个节点使用四个 10 GbE 集群互连端口:e0a、e0b、e0c 和 e0d。另外两个节点使用两条 40 GbE 集群互连光纤电缆:e4a 和 e4e。这"硬件宇宙"包含有关您平台上的集群光纤电缆的信息。看 "安装HWU中没有的设备还需要哪些额外信息?" 有关交换机安装要求的更多信息。

本流程中的示例使用以下开关和节点命名规则:

  • 这些节点分别是 n1、n2、n3 和 n4。

  • 命令输出可能因ONTAP软件版本不同而有所差异。

  • 需要更换的 CN1610 交换机是 CL1 和 CL2。

  • 用于替换 CN1610 交换机的 Nexus 3232C 交换机是 C1 和 C2。

  • n1_clus1 是连接到节点 n1 的集群交换机 1 (CL1 或 C1) 的第一个集群逻辑接口 (LIF)。

  • n1_clus2 是连接到节点 n1 的集群交换机 2 (CL2 或 C2) 的第一个集群 LIF。

  • n1_clus3 是连接到节点 n1 的集群交换机 2 (CL2 或 C2) 的第二个 LIF。

  • n1_clus4 是连接到节点 n1 的集群交换机 1 (CL1 或 C1) 的第二个 LIF。

  • 10 GbE 和 40/100 GbE 端口的数量在参考配置文件 (RCF) 中定义,这些文件可在以下网址获取:"Cisco集群网络交换机参考配置文件下载"

步骤 1:准备迁移

  1. 如果此集群上启用了AutoSupport ,则通过调用AutoSupport消息来抑制自动创建案例:

    system node autosupport invoke -node * -type all -message MAINT=xh

    x 是维护窗口的持续时间,单位为小时。

    备注

    该消息通知技术支持部门此维护任务,以便在维护期间禁止自动创建案例。

  2. 显示配置中设备的相关信息:

    network device-discovery show

    显示示例

    以下示例显示了每个节点上每个集群互连交换机配置的集群互连接口数量:

    cluster::> network device-discovery show
    
           Local  Discovered
    Node   Port   Device       Interface   Platform
    ------ ------ ------------ ----------- ----------
    n1     /cdp
            e0a   CL1          0/1         CN1610
            e0b   CL2          0/1         CN1610
            e0c   CL2          0/2         CN1610
            e0d   CL1          0/2         CN1610
    n2     /cdp
            e0a   CL1          0/3         CN1610
            e0b   CL2          0/3         CN1610
            e0c   CL2          0/4         CN1610
            e0d   CL1          0/4         CN1610
    
    8 entries were displayed.
  3. 确定每个集群接口的管理或运行状态。

    1. 显示集群网络端口属性:

      network port show -role cluster

      显示示例
      cluster::*> network port show -role cluster
             (network port show)
      
      Node: n1
                      Broadcast              Speed (Mbps) Health Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status Health Status
      ----- --------- ---------- ----- ----- ------------ ------ -------------
      e0a   cluster   cluster    up    9000  auto/10000     -
      e0b   cluster   cluster    up    9000  auto/10000     -
      e0c   cluster   cluster    up    9000  auto/10000     -        -
      e0d   cluster   cluster    up    9000  auto/10000     -        -
      Node: n2
                      Broadcast              Speed (Mbps) Health Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status Health Status
      ----- --------- ---------- ----- ----- ------------ ------ -------------
      e0a   cluster   cluster    up    9000  auto/10000     -
      e0b   cluster   cluster    up    9000  auto/10000     -
      e0c   cluster   cluster    up    9000  auto/10000     -
      e0d   cluster   cluster    up    9000  auto/10000     -
      
      8 entries were displayed.
    2. 显示逻辑接口信息:

      network interface show -role cluster

      显示示例
      cluster::*> network interface show -role cluster
      (network interface show)
               Logical    Status      Network        Current  Current  Is
      Vserver  Interface  Admin/Oper  Address/Mask   Node     Port     Home
      -------- ---------- ----------- -------------- -------- -------- -----
      Cluster
               n1_clus1   up/up       10.10.0.1/24   n1       e0a      true
               n1_clus2   up/up       10.10.0.2/24   n1       e0b      true
               n1_clus3   up/up       10.10.0.3/24   n1       e0c      true
               n1_clus4   up/up       10.10.0.4/24   n1       e0d      true
               n2_clus1   up/up       10.10.0.5/24   n2       e0a      true
               n2_clus2   up/up       10.10.0.6/24   n2       e0b      true
               n2_clus3   up/up       10.10.0.7/24   n2       e0c      true
               n2_clus4   up/up       10.10.0.8/24   n2       e0d      true
      
       8 entries were displayed.
    3. 显示已发现的集群交换机的相关信息:

      system cluster-switch show

    显示示例

    以下示例显示了集群已知的集群交换机及其管理 IP 地址:

    cluster::> system cluster-switch show
    Switch                        Type             Address       Model
    ----------------------------- ---------------- ------------- --------
    CL1                           cluster-network  10.10.1.101   CN1610
         Serial Number: 01234567
          Is Monitored: true
                Reason:
      Software Version: 1.2.0.7
        Version Source: ISDP
    CL2                           cluster-network  10.10.1.102   CN1610
         Serial Number: 01234568
          Is Monitored: true
                Reason:
      Software Version: 1.2.0.7
        Version Source: ISDP
    
    2	entries displayed.
  4. 确认已根据您的要求在新 3232C 交换机上安装了相应的 RCF 和映像,并进行任何必要的站点自定义。

    此时您应该准备好这两个交换机。如果需要升级 RCF 和镜像,则必须完成以下步骤:

    1. "Cisco以太网交换机"在NetApp支持网站上。

    2. 请记下您交换机的型号以及该页表格中所需的软件版本。

    3. 下载相应版本的RCF。

    4. 在“描述”页面上点击“继续”,接受许可协议,然后按照“下载”页面上的说明下载 RCF。

    5. 请从以下网址下载相应版本的图像处理软件:"Cisco集群和管理网络交换机参考配置文件下载"

  5. 迁移与计划替换的第二个 CN1610 交换机关联的 LIF:

    network interface migrate -vserver vserver-name -lif lif-name -source-node source-node-name destination-node destination-node-name -destination-port destination-port-name

    显示示例

    您必须按照以下示例所示,逐个迁移每个 LIF:

    cluster::*> network interface migrate -vserver cluster -lif n1_clus2 -source-node n1
    -destination-node  n1  -destination-port  e0a
    cluster::*> network interface migrate -vserver cluster -lif n1_clus3 -source-node n1
    -destination-node  n1  -destination-port  e0d
    cluster::*> network interface migrate -vserver cluster -lif n2_clus2 -source-node n2
    -destination-node  n2  -destination-port  e0a
    cluster::*> network interface migrate -vserver cluster -lif n2_clus3 -source-node n2
    -destination-node  n2  -destination-port  e0d
  6. 验证集群健康状况:

    network interface show -role cluster

    显示示例
    cluster::*> network interface show -role cluster
    (network interface show)
             Logical    Status      Network         Current  Current  Is
    Vserver  Interface  Admin/Oper  Address/Mask    Node     Port     Home
    -------- ---------- ----------- --------------- -------- -------- -----
    Cluster
             n1_clus1   up/up       10.10.0.1/24    n1        e0a     true
             n1_clus2   up/up       10.10.0.2/24    n1        e0a     false
             n1_clus3   up/up       10.10.0.3/24    n1        e0d     false
             n1_clus4   up/up       10.10.0.4/24    n1        e0d     true
             n2_clus1   up/up       10.10.0.5/24    n2        e0a     true
             n2_clus2   up/up       10.10.0.6/24    n2        e0a     false
             n2_clus3   up/up       10.10.0.7/24    n2        e0d     false
             n2_clus4   up/up       10.10.0.8/24    n2        e0d     true
    
    8 entries were displayed.

步骤 2:将集群开关 CL2 更换为 C2

  1. 关闭与交换机 CL2 物理连接的集群互连端口:

    network port modify -node node-name -port port-name -up-admin false

    显示示例

    以下示例显示了节点 n1 和节点 n2 的四个集群互连端口被关闭的情况:

    cluster::*> network port modify -node n1 -port e0b -up-admin false
    cluster::*> network port modify -node n1 -port e0c -up-admin false
    cluster::*> network port modify -node n2 -port e0b -up-admin false
    cluster::*> network port modify -node n2 -port e0c -up-admin false
  2. 验证远程集群接口的连接性:

ONTAP 9.9.1 及更高版本

你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:

network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show

cluster1::*> network interface check cluster-connectivity start

*注意:*运行程序前请等待几秒钟 `show`显示详细信息的命令。

cluster1::*> network interface check cluster-connectivity show
                                  Source           Destination      Packet
Node   Date                       LIF              LIF              Loss
------ -------------------------- ---------------- ---------------- -----------
n1
       3/5/2022 19:21:18 -06:00   n1_clus2         n2-clus1         none
       3/5/2022 19:21:20 -06:00   n1_clus2         n2_clus2         none

n2
       3/5/2022 19:21:18 -06:00   n2_clus2         n1_clus1         none
       3/5/2022 19:21:20 -06:00   n2_clus2         n1_clus2         none
所有ONTAP版本

对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:

cluster ping-cluster -node <name>

cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1       e0a    10.10.0.1
Cluster n1_clus2 n1       e0b    10.10.0.2
Cluster n1_clus3 n1       e0c    10.10.0.3
Cluster n1_clus4 n1       e0d    10.10.0.4
Cluster n2_clus1 n2       e0a    10.10.0.5
Cluster n2_clus2 n2       e0b    10.10.0.6
Cluster n2_clus3 n2       e0c    10.10.0.7
Cluster n2_clus4 n2       e0d    10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
    Local 10.10.0.1 to Remote 10.10.0.5
    Local 10.10.0.1 to Remote 10.10.0.6
    Local 10.10.0.1 to Remote 10.10.0.7
    Local 10.10.0.1 to Remote 10.10.0.8
    Local 10.10.0.2 to Remote 10.10.0.5
    Local 10.10.0.2 to Remote 10.10.0.6
    Local 10.10.0.2 to Remote 10.10.0.7
    Local 10.10.0.2 to Remote 10.10.0.8
    Local 10.10.0.3 to Remote 10.10.0.5
    Local 10.10.0.3 to Remote 10.10.0.6
    Local 10.10.0.3 to Remote 10.10.0.7
    Local 10.10.0.3 to Remote 10.10.0.8
    Local 10.10.0.4 to Remote 10.10.0.5
    Local 10.10.0.4 to Remote 10.10.0.6
    Local 10.10.0.4 to Remote 10.10.0.7
    Local 10.10.0.4 to Remote 10.10.0.8

Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
4 paths up, 0 paths down (udp check)
  1. 使用适当的命令关闭活动 CN1610 交换机 CL1 上的 ISL 端口 13 至 16。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示 CN1610 交换机 CL1 上的 ISL 端口 13 至 16 已关闭:

    (CL1)# configure
    (CL1)(Config)# interface 0/13-0/16
    (CL1)(Interface 0/13-0/16)# shutdown
    (CL1)(Interface 0/13-0/16)# exit
    (CL1)(Config)# exit
    (CL1)#
  2. 在 CL1 和 C2 之间建立临时 ISL:

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例展示了如何使用Cisco在 CL1(端口 13-16)和 C2(端口 e1/24/1-4)之间建立临时 ISL。 `switchport mode trunk`命令:

    C2# configure
    C2(config)# interface port-channel 2
    C2(config-if)# switchport mode trunk
    C2(config-if)# spanning-tree port type network
    C2(config-if)# mtu 9216
    C2(config-if)# interface breakout module 1 port 24 map 10g-4x
    C2(config)# interface e1/24/1-4
    C2(config-if-range)# switchport mode trunk
    C2(config-if-range)# mtu 9216
    C2(config-if-range)# channel-group 2 mode active
    C2(config-if-range)# exit
    C2(config-if)# exit
  3. 拆下所有节点上连接到 CN1610 交换机 CL2 的电缆。

    使用支持的线缆,您必须将所有节点上断开的端口重新连接到 Nexus 3232C 交换机 C2。

  4. 从 CN1610 交换机 CL1 的 13 至 16 号端口移除四根 ISL 电缆。

    您必须将合适的Cisco QSFP28 转 SFP+ 分线电缆连接到新的Cisco 3232C 交换机 C2 上的端口 1/24 和现有 CN1610 交换机 CL1 上的端口 13 至 16。

    备注

    将任何电缆重新连接到新的Cisco 3232C 交换机时,使用的电缆必须是光纤或Cisco双绞线电缆。

  5. 通过配置活动 CN1610 交换机上的 ISL 接口 3/1 来禁用静态模式,使 ISL 动态化。

    当两个交换机上都启动 ISL 时,此配置与 3232C 交换机 C2 上的 ISL 配置相匹配。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例展示了如何配置 ISL 接口 3/1 以使 ISL 动态化:

    (CL1)# configure
    (CL1)(Config)# interface 3/1
    (CL1)(Interface 3/1)# no port-channel static
    (CL1)(Interface 3/1)# exit
    (CL1)(Config)# exit
    (CL1)#
  6. 在活动的 CN1610 交换机 CL1 上启动 ISL 13 至 16。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了在端口通道接口 3/1 上启动 ISL 端口 13 至 16:

    (CL1)# configure
    (CL1)(Config)# interface 0/13-0/16,3/1
    (CL1)(Interface 0/13-0/16,3/1)# no shutdown
    (CL1)(Interface 0/13-0/16,3/1)# exit
    (CL1)(Config)# exit
    (CL1)#
  7. 确认 ISL 是否为 `up`在 CN1610 交换机 CL1 上。

    “链路状态”应为 Up“类型”应为 `Dynamic`并且“端口活动”列应为: `True`适用于端口 0/13 至 0/16。

    显示示例

    以下示例展示了 ISL 的验证过程 `up`在 CN1610 交换机 CL1 上:

    (CL1)# show port-channel 3/1
    Local Interface................................ 3/1
    Channel Name................................... ISL-LAG
    Link State..................................... Up
    Admin Mode..................................... Enabled
    Type........................................... Dynamic
    Load Balance Option............................ 7
    (Enhanced hashing mode)
    
    Mbr    Device/       Port        Port
    Ports  Timeout       Speed       Active
    ------ ------------- ----------  -------
    0/13   actor/long    10 Gb Full  True
           partner/long
    0/14   actor/long    10 Gb Full  True
           partner/long
    0/15   actor/long    10 Gb Full  True
           partner/long
    0/16   actor/long    10 Gb Full  True
           partner/long
  8. 确认 ISL 是否为 `up`在 3232C 交换机 C2 上:

    show port-channel summary

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    端口 Eth1/24/1 至 Eth1/24/4 应指示 `(P)`这意味着所有四个 ISL 端口都在端口通道中运行。 Eth1/31 和 eth1/32 应表示 `(D)`因为它们之间没有联系。

    显示示例

    以下示例展示了 ISL 的验证过程 `up`在 3232C 交换机 C2 上:

    C2# show port-channel summary
    
    Flags:  D - Down        P - Up in port-channel (members)
            I - Individual  H - Hot-standby (LACP only)
            s - Suspended   r - Module-removed
            S - Switched    R - Routed
            U - Up (port-channel)
            M - Not in use. Min-links not met
    ------------------------------------------------------------------------------
    Group Port-       Type     Protocol  Member Ports
          Channel
    ------------------------------------------------------------------------------
    1	    Po1(SU)     Eth      LACP      Eth1/31(D)   Eth1/32(D)
    2	    Po2(SU)     Eth      LACP      Eth1/24/1(P) Eth1/24/2(P) Eth1/24/3(P)
                                         Eth1/24/4(P)
  9. 在所有节点上启用连接到 3232C 交换机 C2 的所有集群互连端口:

    network port modify -node node-name -port port-name -up-admin true

    显示示例

    以下示例展示了如何启动连接到 3232C 交换机 C2 的集群互连端口:

    cluster::*> network port modify -node n1 -port e0b -up-admin true
    cluster::*> network port modify -node n1 -port e0c -up-admin true
    cluster::*> network port modify -node n2 -port e0b -up-admin true
    cluster::*> network port modify -node n2 -port e0c -up-admin true
  10. 撤销所有已迁移的、连接到所有节点上 C2 的集群互连 LIF:

    network interface revert -vserver cluster -lif lif-name

    显示示例
    cluster::*> network interface revert -vserver cluster -lif n1_clus2
    cluster::*> network interface revert -vserver cluster -lif n1_clus3
    cluster::*> network interface revert -vserver cluster -lif n2_clus2
    cluster::*> network interface revert -vserver cluster -lif n2_clus3
  11. 确认所有集群互连端口都已恢复到其原始端口:

    network interface show -role cluster

    显示示例

    以下示例表明 clus2 上的 LIF 已恢复到其源端口;如果“当前端口”列中的端口状态为“已恢复”,则表示 LIF 已成功恢复。 `true`在“是否在家”一栏中。如果“是否在家”的值为 `false`那么 LIF 就不会被撤销。

    cluster::*> network interface show -role cluster
    (network interface show)
             Logical    Status      Network        Current  Current  Is
    Vserver  Interface  Admin/Oper  Address/Mask   Node     Port     Home
    -------- ---------- ----------- -------------- -------- -------- -----
    Cluster
             n1_clus1   up/up       10.10.0.1/24   n1       e0a      true
             n1_clus2   up/up       10.10.0.2/24   n1       e0b      true
             n1_clus3   up/up       10.10.0.3/24   n1       e0c      true
             n1_clus4   up/up       10.10.0.4/24   n1       e0d      true
             n2_clus1   up/up       10.10.0.5/24   n2       e0a      true
             n2_clus2   up/up       10.10.0.6/24   n2       e0b      true
             n2_clus3   up/up       10.10.0.7/24   n2       e0c      true
             n2_clus4   up/up       10.10.0.8/24   n2       e0d      true
    
    8 entries were displayed.
  12. 确认集群所有端口均已连接:

    network port show -role cluster

    显示示例

    以下示例显示了验证所有集群互连是否正常的输出结果。 up

    cluster::*> network port show -role cluster
           (network port show)
    
    Node: n1
                    Broadcast               Speed (Mbps) Health   Ignore
    Port  IPspace   Domain      Link  MTU   Admin/Open   Status   Health Status
    ----- --------- ----------- ----- ----- ------------ -------- -------------
    e0a   cluster   cluster     up    9000  auto/10000     -
    e0b   cluster   cluster     up    9000  auto/10000     -
    e0c   cluster   cluster     up    9000  auto/10000     -        -
    e0d   cluster   cluster     up    9000  auto/10000     -        -
    Node: n2
    
                    Broadcast               Speed (Mbps) Health   Ignore
    Port  IPspace   Domain      Link  MTU   Admin/Open   Status   Health Status
    ----- --------- ----------- ----- ----- ------------ -------- -------------
    e0a   cluster   cluster     up    9000  auto/10000     -
    e0b   cluster   cluster     up    9000  auto/10000     -
    e0c   cluster   cluster     up    9000  auto/10000     -
    e0d   cluster   cluster     up    9000  auto/10000     -
    
    8 entries were displayed.
  13. 验证远程集群接口的连接性:

ONTAP 9.9.1 及更高版本

你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:

network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show

cluster1::*> network interface check cluster-connectivity start

*注意:*运行程序前请等待几秒钟 `show`显示详细信息的命令。

cluster1::*> network interface check cluster-connectivity show
                                  Source           Destination      Packet
Node   Date                       LIF              LIF              Loss
------ -------------------------- ---------------- ---------------- -----------
n1
       3/5/2022 19:21:18 -06:00   n1_clus2         n2-clus1         none
       3/5/2022 19:21:20 -06:00   n1_clus2         n2_clus2         none

n2
       3/5/2022 19:21:18 -06:00   n2_clus2         n1_clus1         none
       3/5/2022 19:21:20 -06:00   n2_clus2         n1_clus2         none
所有ONTAP版本

对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:

cluster ping-cluster -node <name>

cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1       e0a    10.10.0.1
Cluster n1_clus2 n1       e0b    10.10.0.2
Cluster n1_clus3 n1       e0c    10.10.0.3
Cluster n1_clus4 n1       e0d    10.10.0.4
Cluster n2_clus1 n2       e0a    10.10.0.5
Cluster n2_clus2 n2       e0b    10.10.0.6
Cluster n2_clus3 n2       e0c    10.10.0.7
Cluster n2_clus4 n2       e0d    10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
    Local 10.10.0.1 to Remote 10.10.0.5
    Local 10.10.0.1 to Remote 10.10.0.6
    Local 10.10.0.1 to Remote 10.10.0.7
    Local 10.10.0.1 to Remote 10.10.0.8
    Local 10.10.0.2 to Remote 10.10.0.5
    Local 10.10.0.2 to Remote 10.10.0.6
    Local 10.10.0.2 to Remote 10.10.0.7
    Local 10.10.0.2 to Remote 10.10.0.8
    Local 10.10.0.3 to Remote 10.10.0.5
    Local 10.10.0.3 to Remote 10.10.0.6
    Local 10.10.0.3 to Remote 10.10.0.7
    Local 10.10.0.3 to Remote 10.10.0.8
    Local 10.10.0.4 to Remote 10.10.0.5
    Local 10.10.0.4 to Remote 10.10.0.6
    Local 10.10.0.4 to Remote 10.10.0.7
    Local 10.10.0.4 to Remote 10.10.0.8

Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
4 paths up, 0 paths down (udp check)
  1. 迁移与第一个 CN1610 交换机 CL1 关联的 LIF:

    network interface migrate -vserver cluster -lif lif-name -source-node node-name

    显示示例

    您必须将每个集群 LIF 单独迁移到集群交换机 C2 上托管的相应集群端口,如下例所示:

    cluster::*> network interface migrate -vserver cluster -lif n1_clus1 -source-node n1
    -destination-node n1 -destination-port e0b
    cluster::*> network interface migrate -vserver cluster -lif n1_clus4 -source-node n1
    -destination-node n1 -destination-port e0c
    cluster::*> network interface migrate -vserver cluster -lif n2_clus1 -source-node n2
    -destination-node n2 -destination-port e0b
    cluster::*> network interface migrate -vserver cluster -lif n2_clus4 -source-node n2
    -destination-node n2 -destination-port e0c

步骤 3:将集群开关 CL1 更换为 C1

  1. 验证集群状态:

    network interface show -role cluster

    显示示例

    以下示例表明,所需的集群 LIF 已迁移到集群交换机 C2 上托管的相应集群端口:

    cluster::*> network interface show -role cluster
    (network interface show)
             Logical    Status      Network        Current  Current  Is
    Vserver  Interface  Admin/Oper  Address/Mask   Node     Port     Home
    -------- ---------- ----------- -------------- -------- -------- -----
    Cluster
             n1_clus1   up/up       10.10.0.1/24   n1       e0b      false
             n1_clus2   up/up       10.10.0.2/24   n1       e0b      true
             n1_clus3   up/up       10.10.0.3/24   n1       e0c      true
             n1_clus4   up/up       10.10.0.4/24   n1       e0c      false
             n2_clus1   up/up       10.10.0.5/24   n2       e0b      false
             n2_clus2   up/up       10.10.0.6/24   n2       e0b      true
             n2_clus3   up/up       10.10.0.7/24   n2       e0c      true
             n2_clus4   up/up       10.10.0.8/24   n2       e0c      false
    
    8 entries were displayed.
  2. 关闭所有节点上连接到 CL1 的节点端口:

    network port modify -node node-name -port port-name -up-admin false

    显示示例

    以下示例显示了节点 n1 和 n2 上特定端口的关闭情况:

    cluster::*> network port modify -node n1 -port e0a -up-admin false
    cluster::*> network port modify -node n1 -port e0d -up-admin false
    cluster::*> network port modify -node n2 -port e0a -up-admin false
    cluster::*> network port modify -node n2 -port e0d -up-admin false
  3. 关闭活动 3232C 交换机 C2 上的 ISL 端口 24、31 和 32。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了在活动 3232C 交换机 C2 上关闭 ISL 24、31 和 32:

    C2# configure
    C2(config)# interface ethernet 1/24/1-4
    C2(config-if-range)# shutdown
    C2(config-if-range)# exit
    C2(config)# interface ethernet 1/31-32
    C2(config-if-range)# shutdown
    C2(config-if-range)# exit
    C2(config)# exit
    C2#
  4. 拆下所有节点上连接到 CN1610 交换机 CL1 的电缆。

    使用合适的线缆,必须将所有节点上断开的端口重新连接到 Nexus 3232C 交换机 C1。

  5. 从 Nexus 3232C C2 端口 e1/24 上移除 QSFP28 电缆。

    您必须使用支持的Cisco QSFP28 光纤或直连电缆将 C1 上的端口 e1/31 和 e1/32 连接到 C2 上的端口 e1/31 和 e1/32。

  6. 恢复端口 24 的配置,并移除 C2 上的临时端口通道 2:

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例展示了 `running-configuration`文件正在复制到 `startup-configuration`文件:

    C2# configure
    C2(config)# no interface breakout module 1 port 24 map 10g-4x
    C2(config)# no interface port-channel 2
    C2(config-if)# interface e1/24
    C2(config-if)# description 100GbE/40GbE Node Port
    C2(config-if)# spanning-tree port type edge
    Edge port type (portfast) should only be enabled on ports connected to a single
    host. Connecting hubs, concentrators, switches, bridges, etc...  to this
    interface when edge port type (portfast) is enabled, can cause temporary bridging loops.
    Use with CAUTION
    
    Edge Port Type (Portfast) has been configured on Ethernet 1/24 but will only
    have effect when the interface is in a non-trunking mode.
    
    C2(config-if)# spanning-tree bpduguard enable
    C2(config-if)# mtu 9216
    C2(config-if-range)# exit
    C2(config)# exit
    C2# copy running-config startup-config
    [] 100%
    Copy Complete.
  7. 在活动 3232C 交换机 C2 上启用 ISL 端口 31 和 32。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了 ISL 31 和 32 被引入到 3232C 交换机 C2 上:

    C2# configure
    C2(config)# interface ethernet 1/31-32
    C2(config-if-range)# no shutdown
    C2(config-if-range)# exit
    C2(config)# exit
    C2# copy running-config startup-config
    [] 100%
    Copy Complete.
  8. 确认 ISL 连接是否正常 `up`在 3232C 开关 C2 上。

    有关Cisco命令的更多信息,请参阅以下位置列出的指南: "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例展示了 ISL 连接的验证过程。端口 Eth1/31 和 Eth1/32 指示 `(P)`这意味着两个 ISL 端口都是 `up`在端口通道中:

    C1# show port-channel summary
    Flags:  D - Down        P - Up in port-channel (members)
            I - Individual  H - Hot-standby (LACP only)
            s - Suspended   r - Module-removed
            S - Switched    R - Routed
            U - Up (port-channel)
            M - Not in use. Min-links not met
    ------------------------------------------------------------------------------
    Group Port-       Type     Protocol  Member Ports
          Channel
    -----------------------------------------------------------------------------
    1     Po1(SU)     Eth      LACP      Eth1/31(P)   Eth1/32(P)
    
    C2# show port-channel summary
    Flags:  D - Down        P - Up in port-channel (members)
            I - Individual  H - Hot-standby (LACP only)
            s - Suspended   r - Module-removed
            S - Switched    R - Routed
            U - Up (port-channel)
            M - Not in use. Min-links not met
    ------------------------------------------------------------------------------
    Group Port-       Type     Protocol  Member Ports
          Channel
    ------------------------------------------------------------------------------
    1     Po1(SU)     Eth      LACP      Eth1/31(P)   Eth1/32(P)
  9. 在所有节点上启用连接到新的 3232C 交换机 C1 的所有集群互连端口:

    network port modify -node node-name -port port-name -up-admin true

    显示示例

    以下示例显示了连接到新 3232C 交换机 C1 的所有集群互连端口的启动情况:

    cluster::*> network port modify -node n1 -port e0a -up-admin true
    cluster::*> network port modify -node n1 -port e0d -up-admin true
    cluster::*> network port modify -node n2 -port e0a -up-admin true
    cluster::*> network port modify -node n2 -port e0d -up-admin true
  10. 验证集群节点端口状态:

    network port show -role cluster

    显示示例

    以下示例显示了验证新 3232C 交换机 C1 上节点 n1 和 n2 的集群互连端口是否正常工作的输出。 up

    cluster::*> network port show -role cluster
           (network port show)
    
    Node: n1
                    Broadcast              Speed (Mbps) Health   Ignore
    Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
    ----- --------- ---------- ----- ----- ------------ -------- -------------
    e0a   cluster   cluster    up    9000  auto/10000     -
    e0b   cluster   cluster    up    9000  auto/10000     -
    e0c   cluster   cluster    up    9000  auto/10000     -        -
    e0d   cluster   cluster    up    9000  auto/10000     -        -
    
    Node: n2
                    Broadcast              Speed (Mbps) Health   Ignore
    Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
    ----- --------- ---------- ----- ----- ------------ -------- -------------
    e0a   cluster   cluster    up    9000  auto/10000     -
    e0b   cluster   cluster    up    9000  auto/10000     -
    e0c   cluster   cluster    up    9000  auto/10000     -
    e0d   cluster   cluster    up    9000  auto/10000     -
    
    8 entries were displayed.

第四步:完成该步骤

  1. 撤销所有已迁移的集群互连 LIF,这些 LIF 最初连接到所有节点上的 C1:

    network interface revert -server cluster -lif lif-name

    显示示例

    您必须按照以下示例所示,逐个迁移每个 LIF:

    cluster::*> network interface revert -vserver cluster -lif n1_clus1
    cluster::*> network interface revert -vserver cluster -lif n1_clus4
    cluster::*> network interface revert -vserver cluster -lif n2_clus1
    cluster::*> network interface revert -vserver cluster -lif n2_clus4
  2. 请确认接口已连接到主服务器:

    network interface show -role cluster

    显示示例

    以下示例显示了集群互连接口的状态: `up`以及节点 n1 和 n2 的“是否在家”:

    cluster::*> network interface show -role cluster
    (network interface show)
             Logical    Status      Network        Current  Current  Is
    Vserver  Interface  Admin/Oper  Address/Mask   Node     Port     Home
    -------- ---------- ----------- -------------- -------- -------- -----
    Cluster
             n1_clus1   up/up       10.10.0.1/24   n1       e0a      true
             n1_clus2   up/up       10.10.0.2/24   n1       e0b      true
             n1_clus3   up/up       10.10.0.3/24   n1       e0c      true
             n1_clus4   up/up       10.10.0.4/24   n1       e0d      true
             n2_clus1   up/up       10.10.0.5/24   n2       e0a      true
             n2_clus2   up/up       10.10.0.6/24   n2       e0b      true
             n2_clus3   up/up       10.10.0.7/24   n2       e0c      true
             n2_clus4   up/up       10.10.0.8/24   n2       e0d      true
    
    8 entries were displayed.
  3. 验证远程集群接口的连接性:

ONTAP 9.9.1 及更高版本

你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:

network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show

cluster1::*> network interface check cluster-connectivity start

*注意:*运行程序前请等待几秒钟 `show`显示详细信息的命令。

cluster1::*> network interface check cluster-connectivity show
                                  Source           Destination      Packet
Node   Date                       LIF              LIF              Loss
------ -------------------------- ---------------- ---------------- -----------
n1
       3/5/2022 19:21:18 -06:00   n1_clus2         n2-clus1         none
       3/5/2022 19:21:20 -06:00   n1_clus2         n2_clus2         none

n2
       3/5/2022 19:21:18 -06:00   n2_clus2         n1_clus1         none
       3/5/2022 19:21:20 -06:00   n2_clus2         n1_clus2         none
所有ONTAP版本

对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:

cluster ping-cluster -node <name>

cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1       e0a    10.10.0.1
Cluster n1_clus2 n1       e0b    10.10.0.2
Cluster n1_clus3 n1       e0c    10.10.0.3
Cluster n1_clus4 n1       e0d    10.10.0.4
Cluster n2_clus1 n2       e0a    10.10.0.5
Cluster n2_clus2 n2       e0b    10.10.0.6
Cluster n2_clus3 n2       e0c    10.10.0.7
Cluster n2_clus4 n2       e0d    10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
    Local 10.10.0.1 to Remote 10.10.0.5
    Local 10.10.0.1 to Remote 10.10.0.6
    Local 10.10.0.1 to Remote 10.10.0.7
    Local 10.10.0.1 to Remote 10.10.0.8
    Local 10.10.0.2 to Remote 10.10.0.5
    Local 10.10.0.2 to Remote 10.10.0.6
    Local 10.10.0.2 to Remote 10.10.0.7
    Local 10.10.0.2 to Remote 10.10.0.8
    Local 10.10.0.3 to Remote 10.10.0.5
    Local 10.10.0.3 to Remote 10.10.0.6
    Local 10.10.0.3 to Remote 10.10.0.7
    Local 10.10.0.3 to Remote 10.10.0.8
    Local 10.10.0.4 to Remote 10.10.0.5
    Local 10.10.0.4 to Remote 10.10.0.6
    Local 10.10.0.4 to Remote 10.10.0.7
    Local 10.10.0.4 to Remote 10.10.0.8

Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
3 paths up, 0 paths down (udp check)
  1. 通过向 Nexus 3232C 集群交换机添加节点来扩展集群。

  2. 显示配置中设备的信息:

    • network device-discovery show

    • network port show -role cluster

    • network interface show -role cluster

    • system cluster-switch show

      显示示例

      以下示例显示了节点 n3 和 n4,它们分别通过 40 GbE 集群端口连接到 Nexus 3232C 集群交换机的 e1/7 和 e1/8 端口。两个节点都已加入集群。使用的 40 GbE 集群互连端口为 e4a 和 e4e。

      cluster::*> network device-discovery show
      
             Local  Discovered
      Node   Port   Device       Interface       Platform
      ------ ------ ------------ --------------- -------------
      n1     /cdp
              e0a   C1           Ethernet1/1/1   N3K-C3232C
              e0b   C2           Ethernet1/1/1   N3K-C3232C
              e0c   C2           Ethernet1/1/2   N3K-C3232C
              e0d   C1           Ethernet1/1/2   N3K-C3232C
      n2     /cdp
              e0a   C1           Ethernet1/1/3   N3K-C3232C
              e0b   C2           Ethernet1/1/3   N3K-C3232C
              e0c   C2           Ethernet1/1/4   N3K-C3232C
              e0d   C1           Ethernet1/1/4   N3K-C3232C
      
      n3     /cdp
              e4a   C1           Ethernet1/7     N3K-C3232C
              e4e   C2           Ethernet1/7     N3K-C3232C
      
      n4     /cdp
              e4a   C1           Ethernet1/8     N3K-C3232C
              e4e   C2           Ethernet1/8     N3K-C3232C
      
      12 entries were displayed.
      cluster::*> network port show -role cluster
      (network port show)
      
      Node: n1
                      Broadcast              Speed (Mbps) Health   Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
      ----- --------- ---------- ----- ----- ------------ -------- -------------
      e0a   cluster   cluster    up    9000  auto/10000     -
      e0b   cluster   cluster    up    9000  auto/10000     -
      e0c   cluster   cluster    up    9000  auto/10000     -        -
      e0d   cluster   cluster    up    9000  auto/10000     -        -
      
      Node: n2
                      Broadcast              Speed (Mbps) Health   Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
      ----- --------- ---------- ----- ----- ------------ -------- -------------
      e0a   cluster   cluster    up    9000  auto/10000     -
      e0b   cluster   cluster    up    9000  auto/10000     -
      e0c   cluster   cluster    up    9000  auto/10000     -
      e0d   cluster   cluster    up    9000  auto/10000     -        -
      
      Node: n3
                      Broadcast              Speed (Mbps) Health   Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
      ----- --------- ---------- ----- ----- ------------ -------- -------------
      e4a   cluster   cluster    up    9000  auto/40000     -
      e4e   cluster   cluster    up    9000  auto/40000     -        -
      
      Node: n4
                      Broadcast              Speed (Mbps) Health   Ignore
      Port  IPspace   Domain     Link  MTU   Admin/Open   Status   Health Status
      ----- --------- ---------- ----- ----- ------------ -------- -------------
      e4a   cluster   cluster    up    9000  auto/40000     -
      e4e   cluster   cluster    up    9000  auto/40000     -
      
      12 entries were displayed.
      
      cluster::*> network interface show -role cluster
      (network interface show)
               Logical    Status      Network        Current  Current  Is
      Vserver  Interface  Admin/Oper  Address/Mask   Node     Port     Home
      -------- ---------- ----------- -------------- -------- -------- -----
      Cluster
               n1_clus1   up/up       10.10.0.1/24   n1       e0a      true
               n1_clus2   up/up       10.10.0.2/24   n1       e0b      true
               n1_clus3   up/up       10.10.0.3/24   n1       e0c      true
               n1_clus4   up/up       10.10.0.4/24   n1       e0d      true
               n2_clus1   up/up       10.10.0.5/24   n2       e0a      true
               n2_clus2   up/up       10.10.0.6/24   n2       e0b      true
               n2_clus3   up/up       10.10.0.7/24   n2       e0c      true
               n2_clus4   up/up       10.10.0.8/24   n2       e0d      true
               n3_clus1   up/up       10.10.0.9/24   n3       e4a      true
               n3_clus2   up/up       10.10.0.10/24  n3       e4e      true
               n4_clus1   up/up       10.10.0.11/24  n4       e4a     true
               n4_clus2   up/up       10.10.0.12/24  n4       e4e     true
      
      12 entries were displayed.
      
      cluster::> system cluster-switch show
      
      Switch                      Type             Address       Model
      --------------------------- ---------------- ------------- ---------
      C1                          cluster-network  10.10.1.103   NX3232C
      
           Serial Number: FOX000001
            Is Monitored: true
                  Reason:
        Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                          7.0(3)I6(1)
          Version Source: CDP
      
      C2                          cluster-network  10.10.1.104   NX3232C
      
           Serial Number: FOX000002
            Is Monitored: true
                  Reason:
        Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                          7.0(3)I6(1)
          Version Source: CDP
      CL1                         cluster-network  10.10.1.101   CN1610
      
           Serial Number: 01234567
            Is Monitored: true
                  Reason:
        Software Version: 1.2.0.7
          Version Source: ISDP
      CL2                         cluster-network  10.10.1.102    CN1610
      
           Serial Number: 01234568
            Is Monitored: true
                  Reason:
        Software Version: 1.2.0.7
          Version Source: ISDP 4 entries were displayed.
  3. 如果更换后的 CN1610 交换机没有自动移除,请将其移除:

    system cluster-switch delete -device switch-name

    显示示例

    您必须分别删除这两个设备,如下例所示:

    cluster::> system cluster-switch delete –device CL1
    cluster::> system cluster-switch delete –device CL2
  4. 确认已对正确的集群交换机进行监控:

    system cluster-switch show

    显示示例

    以下示例显示了如何监控集群交换机 C1 和 C2:

    cluster::> system cluster-switch show
    
    Switch                      Type               Address          Model
    --------------------------- ------------------ ---------------- ---------------
    C1                          cluster-network    10.10.1.103      NX3232C
    
         Serial Number: FOX000001
          Is Monitored: true
                Reason:
      Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                        7.0(3)I6(1)
        Version Source: CDP
    
    C2                          cluster-network    10.10.1.104      NX3232C
         Serial Number: FOX000002
          Is Monitored: true
              Reason:
      Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                        7.0(3)I6(1)
        Version Source: CDP
    
    2 entries were displayed.
  5. 如果您已禁用自动创建案例功能,请通过调用AutoSupport消息重新启用该功能:

    system node autosupport invoke -node * -type all -message MAINT=END

下一步是什么?

"配置交换机健康监控"