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

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

贡献者

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

查看要求

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

备注 操作步骤 要求同时使用 ONTAP 命令和 Cisco Nexus 3000 系列交换机命令;除非另有说明,否则使用 ONTAP 命令。

如有必要、请参见以下内容了解详细信息:

迁移交换机

关于示例

此操作步骤 中的示例使用四个节点:两个节点使用四个 10 GbE 集群互连端口: e0a , e0b , e0c 和 e0d 。其他两个节点使用两根 40 GbE 集群互连光缆: E4A 和 e4e 。。 "SIL Hardware Universe" 提供有关平台上的集群光纤缆线的信息。

此操作步骤中的示例使用以下交换机和节点命名:

  • 节点为 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 消息禁止自动创建案例:

    ssystem 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. 显示有关已发现的集群交换机的信息:

      ssystem 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 以太网交换机" 页面。

    2. 请记下该页面上的表中的交换机和所需的软件版本。

    3. 下载适当版本的 RCF 。

    4. 单击 * RCF* 页面上的 * 继续 * ,接受许可协议,然后按照 * 下载 * 页面上的说明下载问题描述 。

    5. 从下载相应版本的映像软件 "Cisco ® 集群和管理网络交换机参考配置文件下载"

  5. 迁移与您计划更换的第二个CN1610交换机关联的Cifs:

    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. 对远程集群接口执行 Ping 操作,然后执行远程操作步骤 调用服务器检查:

    cluster ping-cluster -node node-name

    显示示例

    以下示例显示了正在对节点 n1 执行 Ping 操作,之后会指示 RPC 状态:

    cluster::*> cluster ping-cluster -node n1
    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)
  3. 使用相应的命令关闭活动 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)#
  4. 在 CL1 和 C2 之间构建临时 ISL :

    有关 Cisco 命令的详细信息,请参见中列出的指南 "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了使用 Cisco sswitching port mode trunk 命令在 CL1 (端口 13-16 )和 C2 (端口 E1/24/1-4 )之间构建的临时 ISL :

    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
  5. 拔下所有节点上连接到 CN1610 交换机 CL2 的缆线。

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

  6. 从 CN1610 交换机 CL1 上的端口 13 到 16 拔下四根 ISL 缆线。

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

    备注

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

  7. 通过在活动 CN1610 交换机上配置 ISL 接口 3/1 以禁用静态模式,使 ISL 成为动态 ISL 。

    当这两台交换机上启动ISL时、此配置与3232C交换机C2上的ISL配置匹配。

    有关 Cisco 命令的详细信息,请参见中列出的指南 "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了为使 ISL 成为动态接口而配置的 ISL 接口 3/1 :

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

    有关 Cisco 命令的详细信息,请参见中列出的指南 "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了端口通道接口 1/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)#
  9. ` CN1610 交换机 CL1 上的 ISL 是否为 `up 。

    对于端口 0/13 到 0/16 , "Link State" 应为 up , "Type" 应为 DDynamic , "Port Active" 列应为 True

    显示示例

    以下示例显示了在 CN1610 交换机 CL1 上验证为 up 的 ISL :

    (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
  10. 验证ISL是否为 up 在3232C交换机C2上:

    s如何执行端口通道摘要

    有关 Cisco 命令的详细信息,请参见中列出的指南 "Cisco Nexus 3000 系列 NX-OS 命令参考"

    端口 Eth1/24/1 到 Eth1/24/4 应指示 ` ( P )` ,表示端口通道中的所有四个 ISL 端口均已启动。Eth1/31 和 Eth1/32 应指示 ` ( D )` ,因为它们未连接。

    显示示例

    以下示例显示了 3232C 交换机 C2 上被验证为 up 的 ISL :

    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)
  11. 启动所有节点上连接到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
  12. 还原所有节点上连接到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
  13. 验证所有集群互连端口是否均已还原到其主端口:

    network interface show -role cluster

    显示示例

    以下示例显示, clus2 上的 LIF 将还原到其主端口;如果 "Current Port" 列中的端口在 "Is Home" 列中的状态为 true ,则 LIF 将成功还原。如果 "Is Home" 值为 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.
  14. 验证所有集群端口是否均已连接:

    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.
  15. 对远程集群接口执行 Ping 操作,然后执行远程操作步骤调用服务器检查:

    cluster ping-cluster -node node-name

    显示示例

    以下示例显示了正在对节点 n1 执行 Ping 操作,之后会指示 RPC 状态:

    cluster::*> cluster ping-cluster -node n1
    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 1500 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)
  16. 迁移与第一个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 命令参考"

    显示示例

    以下示例显示了要复制到 start-configuration 文件的 Running-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. 启动 C2 上的 ISL 端口 31 和 32 ,这是活动的 3232C 交换机。

    有关 Cisco 命令的详细信息,请参见中列出的指南 "Cisco Nexus 3000 系列 NX-OS 命令参考"

    显示示例

    以下示例显示了 3232C 交换机 C2 上的 ISL 31 和 32 :

    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. 验证 3232C 交换机 C2 上的 ISL 连接是否为 up

    有关 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.

第4步:完成操作步骤

  1. 还原所有节点上最初连接到C1的所有已迁移集群互连LIF:

    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

    显示示例

    以下示例显示了节点 n1 和 n2 的集群互连接口状态为 up 和 "is Home" :

    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. 对远程集群接口执行 Ping 操作,然后执行远程操作步骤调用服务器检查:

    cluster ping-cluster -node host-name

    显示示例

    以下示例显示了正在对节点 n1 执行 Ping 操作,之后会指示 RPC 状态:

    cluster::*> cluster ping-cluster -node n1
    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)
  4. 通过向 Nexus 3232C 集群交换机添加节点来扩展集群。

  5. 显示有关配置中的设备的信息:

    • network device-discovery show

    • network port show -role cluster

    • network interface show -role cluster

    • ssystem cluster-switch show

      显示示例

      以下示例显示了两个Nexus 3232C集群交换机上分别连接到端口E1/7和E1/8的40 GbE集群端口的节点n3和n4。两个节点均已加入集群。使用的 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.
  6. 如果未自动删除更换的 CN1610 交换机,请将其卸下:

    system cluster-switch delete -device switch-name

    显示示例

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

    cluster::> system cluster-switch delete –device CL1
    cluster::> system cluster-switch delete –device CL2
  7. 验证是否监控了正确的集群交换机:

    ssystem 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.
  8. 【四十】启用集群交换机运行状况监控器日志收集功能以收集交换机相关的日志文件:

    ssystem cluster-switch log setup-password

    ssystem cluster-switch log enable-Collection

    显示示例
    cluster::*> system cluster-switch log setup-password
    Enter the switch name: <return>
    The switch name entered is not recognized.
    Choose from the following list:
    C1
    C2
    
    cluster::*> system cluster-switch log setup-password
    
    Enter the switch name: C1
    RSA key fingerprint is e5:8b:c6:dc:e2:18:18:09:36:63:d9:63:dd:03:d9:cc
    Do you want to continue? {y|n}::[n] y
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
    
    cluster::*> system cluster-switch log setup-password
    
    Enter the switch name: C2
    RSA key fingerprint is 57:49:86:a1:b9:80:6a:61:9a:86:8e:3c:e3:b7:1f:b1
    Do you want to continue? {y|n}:: [n] y
    
    Enter the password: <enter switch password>
    Enter the password again: <enter switch password>
    
    cluster::*> system cluster-switch log enable-collection
    
    Do you want to enable cluster log collection for all nodes in the cluster?
    {y|n}: [n] y
    
    Enabling cluster switch log collection.
    
    cluster::*>
    备注

    如果其中任何一个命令返回错误,请联系 NetApp 支持部门。

  9. 如果禁止自动创建案例,请通过调用 AutoSupport 消息重新启用它:

    ssystem node AutoSupport invoke -node * -type all -message MAINT=end