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

迁移到双节点交换集群

贡献者 netapp-yvonneo netapp-jolieg

如果您已有双节点无交换机集群环境,则可以使用Cisco Nexus 9336C-FX2 和 9336C-FX2-T 交换机迁移到双节点有交换机集群环境。

迁移过程适用于所有使用光纤或 Twinax 端口的节点,但如果节点使用板载 10Gb BASE-T RJ45 端口作为集群网络端口,则此交换机不支持迁移。

审查要求

你需要什么
  • 对于双节点无交换机配置:

    • 双节点无交换机配置已正确设置并运行正常。

    • 集群所有端口均处于*开启*状态。

    • 所有集群逻辑接口(LIF)均处于 up 状态,并位于其所属端口上。

    • "Hardware Universe"适用于所有受支持的ONTAP版本。

  • 对于Cisco Nexus 9336C-FX2 交换机配置:

    • 两台交换机都具备管理网络连接功能。

    • 可以通过控制台访问集群交换机。

    • Nexus 9336C-FX2 节点到节点交换机和交换机到交换机连接使用 Twinax 或光纤电缆。

      "Hardware Universe"有关布线的更多信息。

  • 交换机间链路 (ISL) 电缆连接到两个 9336C-FX2 交换机上的端口 1/35 和 1/36。

  • 两个 9336C-FX2 交换机的初始定制已完成,因此:

    • 9336C-FX2 交换机运行的是最新版本的软件。

    • 参考配置文件(RCF)应用于交换机。任何站点定制,如 SMTP、SNMP 和 SSH,都在新交换机上进行配置。

关于示例

本流程中的示例使用以下集群交换机和节点命名规则:

  • 9336C-FX2 交换机的名称是 cs1 和 cs2。

  • 聚类SVM的名称分别为node1和node2。

  • 节点 1 上的 LIF 名称分别为 node1_clus1 和 node1_clus2,节点 2 上的 LIF 名称分别为 node2_clus1 和 node2_clus2。

  • 这 `cluster1::*>`prompt 指示集群名称。

  • 此过程中使用的集群端口为 e0a 和 e0b。

"Hardware Universe"有关您平台集群端口的信息。看 "安装HWU中没有的设备还需要哪些额外信息?" 有关交换机安装要求的更多信息。

迁移交换机

步骤 1:准备迁移

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

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

    其中 x 为维护窗口的持续时间(小时)。

    备注 AutoSupport消息会通知技术支持此维护任务,以便在维护窗口期间抑制自动创建案例。
  2. 将权限级别更改为高级,输入 `y`当系统提示继续时:

    set -privilege advanced

    高级提示(`*>`出现。

步骤二:配置端口和线缆

  1. 禁用新集群交换机 cs1 和 cs2 上所有面向节点的端口(非 ISL 端口)。

    请勿禁用ISL端口。

    显示示例

    以下示例显示交换机 cs1 上面向节点的端口 1 到 34 已禁用:

    cs1# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs1(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34
    cs1(config-if-range)# shutdown
  2. 验证两个 9336C-FX2 交换机 cs1 和 cs2 之间的 ISL 以及 ISL 上的物理端口在端口 1/35 和 1/36 上是否处于启动状态:

    show port-channel summary

    显示示例

    以下示例表明交换机 cs1 上的 ISL 端口已启动:

    cs1# 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
            b - BFD Session Wait
            S - Switched    R - Routed
            U - Up (port-channel)
            p - Up in delay-lacp mode (member)
            M - Not in use. Min-links not met
    --------------------------------------------------------------------------------
    Group Port-       Type     Protocol  Member Ports
          Channel
    --------------------------------------------------------------------------------
    1     Po1(SU)     Eth      LACP      Eth1/35(P)   Eth1/36(P)

    以下示例表明交换机 cs2 上的 ISL 端口已启动:

    (cs2)# 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
            b - BFD Session Wait
            S - Switched    R - Routed
            U - Up (port-channel)
            p - Up in delay-lacp mode (member)
            M - Not in use. Min-links not met
    --------------------------------------------------------------------------------
    Group Port-       Type     Protocol  Member Ports
          Channel
    --------------------------------------------------------------------------------
    1     Po1(SU)     Eth      LACP      Eth1/35(P)   Eth1/36(P)
  3. 显示相邻设备列表:

    show cdp neighbors

    此命令提供有关连接到系统的设备的信息。

    显示示例

    以下示例列出了交换机 cs1 上的相邻设备:

    cs1# show cdp neighbors
    
    Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                      S - Switch, H - Host, I - IGMP, r - Repeater,
                      V - VoIP-Phone, D - Remotely-Managed-Device,
                      s - Supports-STP-Dispute
    
    Device-ID          Local Intrfce  Hldtme Capability  Platform      Port ID
    cs2                Eth1/35        175    R S I s     N9K-C9336C    Eth1/35
    cs2                Eth1/36        175    R S I s     N9K-C9336C    Eth1/36
    
    Total entries displayed: 2

    以下示例列出了交换机 cs2 上的相邻设备:

    cs2# show cdp neighbors
    
    Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                      S - Switch, H - Host, I - IGMP, r - Repeater,
                      V - VoIP-Phone, D - Remotely-Managed-Device,
                      s - Supports-STP-Dispute
    
    Device-ID          Local Intrfce  Hldtme Capability  Platform      Port ID
    cs1                Eth1/35        177    R S I s     N9K-C9336C    Eth1/35
    cs1                Eth1/36        177    R S I s     N9K-C9336C    Eth1/36
    
    Total entries displayed: 2
  4. 请确认集群所有端口均已启动:

    network port show -ipspace Cluster

    每个端口都应该显示出来。 Link`而且对身体有益 `Health Status

    显示示例
    cluster1::*> network port show -ipspace Cluster
    
    Node: node1
    
                                                      Speed(Mbps) Health
    Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status
    --------- ------------ ---------------- ---- ---- ----------- --------
    e0a       Cluster      Cluster          up   9000  auto/10000 healthy
    e0b       Cluster      Cluster          up   9000  auto/10000 healthy
    
    Node: node2
    
                                                      Speed(Mbps) Health
    Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status
    --------- ------------ ---------------- ---- ---- ----------- --------
    e0a       Cluster      Cluster          up   9000  auto/10000 healthy
    e0b       Cluster      Cluster          up   9000  auto/10000 healthy
    
    4 entries were displayed.
  5. 确认所有集群 LIF 都已启动并正常运行:

    network interface show -vserver Cluster

    每个集群 LIF 应显示 `true`为了 `Is Home`并且拥有 `Status Admin/Oper`向上/向上。

    显示示例
    cluster1::*> network interface show -vserver Cluster
    
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- -----
    Cluster
                node1_clus1  up/up    169.254.209.69/16  node1         e0a     true
                node1_clus2  up/up    169.254.49.125/16  node1         e0b     true
                node2_clus1  up/up    169.254.47.194/16  node2         e0a     true
                node2_clus2  up/up    169.254.19.183/16  node2         e0b     true
    4 entries were displayed.
  6. 禁用集群所有 LIF 的自动回滚功能:

    network interface modify -vserver Cluster -lif * -auto-revert false

    显示示例
    cluster1::*> *network interface modify -vserver Cluster -lif * -auto-revert false*
    
              Logical
    Vserver   Interface     Auto-revert
    --------- ------------- ------------
    Cluster
              node1_clus1   false
              node1_clus2   false
              node2_clus1   false
              node2_clus2   false
    
    4 entries were displayed.
  7. 断开节点 1 上的集群端口 e0a 的电缆,然后使用 9336C-FX2 交换机支持的适当电缆将 e0a 连接到集群交换机 cs1 上的端口 1。

    "Hardware Universe- 交换机"包含更多关于布线的信息。

  8. 断开节点 2 上的集群端口 e0a 的电缆,然后使用 9336C-FX2 交换机支持的适当电缆将 e0a 连接到集群交换机 cs1 上的端口 2。

  9. 启用集群交换机 cs1 上所有面向节点的端口。

    显示示例

    以下示例显示交换机 cs1 上的端口 1/1 到 1/34 已启用:

    cs1# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs1(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34
    cs1(config-if-range)# no shutdown
  10. 确认所有集群 LIF 均已启动、运行正常并显示为: true`为了 `Is Home

    network interface show -vserver Cluster

    显示示例

    以下示例表明,节点 1 和节点 2 上的所有 LIF 都已启动,并且 `Is Home`结果属实:

    cluster1::*> network interface show -vserver Cluster
    
             Logical      Status     Network            Current     Current Is
    Vserver  Interface    Admin/Oper Address/Mask       Node        Port    Home
    -------- ------------ ---------- ------------------ ----------- ------- ----
    Cluster
             node1_clus1  up/up      169.254.209.69/16  node1       e0a     true
             node1_clus2  up/up      169.254.49.125/16  node1       e0b     true
             node2_clus1  up/up      169.254.47.194/16  node2       e0a     true
             node2_clus2  up/up      169.254.19.183/16  node2       e0b     true
    
    4 entries were displayed.
  11. 显示集群中节点的状态信息:

    cluster show

    显示示例

    以下示例显示了集群中节点的健康状况和资格信息:

    cluster1::*> cluster show
    
    Node                 Health  Eligibility   Epsilon
    -------------------- ------- ------------  ------------
    node1                true    true          false
    node2                true    true          false
    
    2 entries were displayed.
  12. 断开节点 1 上的集群端口 e0b 的电缆,然后使用 9336C-FX2 交换机支持的适当电缆将 e0b 连接到集群交换机 cs2 上的端口 1。

  13. 断开节点 2 上的集群端口 e0b 的电缆,然后使用 9336C-FX2 交换机支持的适当电缆将 e0b 连接到集群交换机 cs2 上的端口 2。

  14. 启用集群交换机 cs2 上所有面向节点的端口。

    显示示例

    以下示例显示交换机 cs2 上的端口 1/1 到 1/34 已启用:

    cs2# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs2(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34
    cs2(config-if-range)# no shutdown
  15. 请确认集群所有端口均已启动:

    network port show -ipspace Cluster

    显示示例

    以下示例表明节点 1 和节点 2 上的所有集群端口均已启动:

    cluster1::*> network port show -ipspace Cluster
    
    Node: node1
                                                                           Ignore
                                                      Speed(Mbps) Health   Health
    Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status   Status
    --------- ------------ ---------------- ---- ---- ----------- -------- ------
    e0a       Cluster      Cluster          up   9000  auto/10000 healthy  false
    e0b       Cluster      Cluster          up   9000  auto/10000 healthy  false
    
    Node: node2
                                                                           Ignore
                                                      Speed(Mbps) Health   Health
    Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status   Status
    --------- ------------ ---------------- ---- ---- ----------- -------- ------
    e0a       Cluster      Cluster          up   9000  auto/10000 healthy  false
    e0b       Cluster      Cluster          up   9000  auto/10000 healthy  false
    
    4 entries were displayed.

步骤 3:验证配置

  1. 启用集群 LIF 的自动回滚功能。

    network interface modify -vserver Cluster -lif * -auto-revert true

  2. 在交换机 cs2 上,关闭并重新启动所有集群端口,以触发所有不在它们所属端口上的集群 LIF 的自动恢复。

    cs2> enable
    cs2# configure
    cs2(config)# interface eth1/1-1/2
    cs2(config-if-range)# shutdown
    
    (Wait for 5-10 seconds before re-enabling the ports)
    
    cs2(config-if-range)# no shutdown
    
    (After executing the no shutdown command, the nodes detect the change and begin to auto-revert the cluster LIFs to their home ports)
    
    cs2(config-if-range)# exit
    cs2(config)# exit
    cs2#
  3. 验证集群 LIF 是否已恢复到其原端口(这可能需要一分钟):

    network interface show -vserver Cluster

    如果集群中的任何 LIF 尚未恢复到其主端口,请手动将其恢复。您必须连接到拥有该 LIF 的本地节点的每个节点管理 LIF 或SP/ BMC系统控制台:

    network interface revert -vserver Cluster -lif *

  4. 验证所有接口是否都显示为 true Is Home

    network interface show -vserver Cluster

    备注 这可能需要几分钟才能完成。
    显示示例

    以下示例表明节点 1 和节点 2 上的所有 LIF 都已启动,并且 `Is Home`结果属实:

    cluster1::*> network interface show -vserver Cluster
    
              Logical      Status     Network            Current    Current Is
    Vserver   Interface    Admin/Oper Address/Mask       Node       Port    Home
    --------- ------------ ---------- ------------------ ---------- ------- ----
    Cluster
              node1_clus1  up/up      169.254.209.69/16  node1      e0a     true
              node1_clus2  up/up      169.254.49.125/16  node1      e0b     true
              node2_clus1  up/up      169.254.47.194/16  node2      e0a     true
              node2_clus2  up/up      169.254.19.183/16  node2      e0b     true
    
    4 entries were displayed.
  5. 确认两个节点都分别与每个交换机建立了一条连接:

    show cdp neighbors

    显示示例

    以下示例显示了两种开关的正确结果:

    (cs1)# show cdp neighbors
    
    Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                      S - Switch, H - Host, I - IGMP, r - Repeater,
                      V - VoIP-Phone, D - Remotely-Managed-Device,
                      s - Supports-STP-Dispute
    
    Device-ID          Local Intrfce  Hldtme Capability  Platform      Port ID
    node1              Eth1/1         133    H           FAS2980       e0a
    node2              Eth1/2         133    H           FAS2980       e0a
    cs2                Eth1/35        175    R S I s     N9K-C9336C    Eth1/35
    cs2                Eth1/36        175    R S I s     N9K-C9336C    Eth1/36
    
    Total entries displayed: 4
    
    (cs2)# show cdp neighbors
    
    Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                      S - Switch, H - Host, I - IGMP, r - Repeater,
                      V - VoIP-Phone, D - Remotely-Managed-Device,
                      s - Supports-STP-Dispute
    
    Device-ID          Local Intrfce  Hldtme Capability  Platform      Port ID
    node1              Eth1/1         133    H           FAS2980       e0b
    node2              Eth1/2         133    H           FAS2980       e0b
    cs1                Eth1/35        175    R S I s     N9K-C9336C    Eth1/35
    cs1                Eth1/36        175    R S I s     N9K-C9336C    Eth1/36
    
    Total entries displayed: 4
  6. 显示集群中已发现的网络设备信息:

    network device-discovery show -protocol cdp

    显示示例
    cluster1::*> network device-discovery show -protocol cdp
    Node/       Local  Discovered
    Protocol    Port   Device (LLDP: ChassisID)  Interface         Platform
    ----------- ------ ------------------------- ----------------  ----------------
    node2      /cdp
                e0a    cs1                       0/2               N9K-C9336C
                e0b    cs2                       0/2               N9K-C9336C
    node1      /cdp
                e0a    cs1                       0/1               N9K-C9336C
                e0b    cs2                       0/1               N9K-C9336C
    
    4 entries were displayed.
  7. 请确认这些设置已禁用:

    network options switchless-cluster show

    备注 命令可能需要几分钟才能完成。等待“3分钟生命即将结束”的公告。

    以下示例中的错误输出表明配置设置已被禁用:

    cluster1::*> network options switchless-cluster show
    Enable Switchless Cluster: false
  8. 验证集群中节点成员的状态:

    cluster show

    显示示例

    以下示例显示了集群中节点的健康状况和资格信息:

    cluster1::*> cluster show
    
    Node                 Health  Eligibility   Epsilon
    -------------------- ------- ------------  --------
    node1                true    true          false
    node2                true    true          false
  9. 验证远程集群接口的连接性:

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
------ -------------------------- ---------------- ---------------- -----------
node1
       3/5/2022 19:21:18 -06:00   node1_clus2      node2-clus1      none
       3/5/2022 19:21:20 -06:00   node1_clus2      node2_clus2      none
node2
       3/5/2022 19:21:18 -06:00   node2_clus2      node1_clus1      none
       3/5/2022 19:21:20 -06:00   node2_clus2      node1_clus2      none
所有ONTAP版本

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

cluster ping-cluster -node <name>

cluster1::*> cluster ping-cluster -node local
Host is node2
Getting addresses from network interface table...
Cluster node1_clus1 169.254.209.69 node1 e0a
Cluster node1_clus2 169.254.49.125 node1 e0b
Cluster node2_clus1 169.254.47.194 node2 e0a
Cluster node2_clus2 169.254.19.183 node2 e0b
Local = 169.254.47.194 169.254.19.183
Remote = 169.254.209.69 169.254.49.125
Cluster Vserver Id = 4294967293
Ping status:

Basic connectivity succeeds on 4 path(s)
Basic connectivity fails on 0 path(s)

Detected 9000 byte MTU on 4 path(s):
Local 169.254.47.194 to Remote 169.254.209.69
Local 169.254.47.194 to Remote 169.254.49.125
Local 169.254.19.183 to Remote 169.254.209.69
Local 169.254.19.183 to Remote 169.254.49.125
Larger than PMTU communication succeeds on 4 path(s)
RPC status:
2 paths up, 0 paths down (tcp check)
2 paths up, 0 paths down (udp check)
  1. 步骤10:将权限级别改回管理员:

    set -privilege admin

  2. 如果您已禁用自动创建案例功能,请通过调用AutoSupport消息重新启用该功能:

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

下一步是什么?

交换机迁移完成后,您可以…… "配置交换机健康监控"