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

迁移到使用Cisco Nexus 92300YC交换机的双节点交换集群

贡献者

如果您有一个现有的双节点无交换机集群环境、则可以使用Cisco Nexus 92300YC交换机迁移到双节点_switched_cluster环境、以便可以扩展到集群中的两个节点以上。

您使用的操作步骤取决于每个控制器上是有两个专用集群网络端口,还是每个控制器上有一个集群端口。记录的过程适用于使用光纤或双轴端口的所有节点、但如果节点使用板载10 Gb Base-T RJ45端口作为集群网络端口、则此交换机不支持此过程。

大多数系统需要在每个控制器上使用两个专用集群网络端口。

备注 迁移完成后,您可能需要安装所需的配置文件,以支持 923300 YC 集群交换机的集群交换机运行状况监控器( Cluster Switch Health Monitor , CSHM )。请参见"安装集群交换机运行状况监控器(CSHM)"

查看要求

您需要的内容

对于双节点无交换机配置、请确保:

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

  • 这些节点运行的是ONTAP 9.6及更高版本。

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

  • 所有集群逻辑接口(LIF)均处于*启动*状态、并位于其主端口上。

对于Cisco Nexus 92300YC交换机配置:

  • 这两台交换机都具有管理网络连接。

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

  • Nexus 92300YC节点到节点交换机和交换机到交换机连接使用双轴或光缆。

    "Hardware Universe —交换机" 包含有关布线的详细信息。

  • 交换机间链路(ISL)缆线连接到两个92300YC交换机上的端口1/65和1/66。

  • 两个92300YC交换机的初始自定义均已完成。这样:

    • 92300YC 交换机正在运行最新版本的软件

    • 参考配置文件(Reference Configuration Files、RCF)将应用于交换机新交换机上配置的任何站点自定义设置、例如SMTP、SNMP和SSH。

迁移交换机

关于示例

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

  • 923300 YC 交换机的名称是 CS1 和 CS2 。

  • 集群 SVM 的名称是 node1 和 node2 。

  • LIF 的名称分别是节点 1 上的 node1_clus1 和 node1_clus2 以及节点 2 上的 node2_clus1 和 node2_clus2 。

  • cluster1 ::: * > 提示符指示集群的名称。

  • 此操作步骤中使用的集群端口为 e0a 和 e0b 。

    "Hardware Universe" 包含有关平台的实际集群端口的最新信息。

第1步:准备迁移

  1. 将权限级别更改为高级,在系统提示您继续时输入 y

    set -privilege advanced

    此时将显示高级提示符(` * >` )。

  2. 如果在此集群上启用了 AutoSupport ,则通过调用 AutoSupport 消息禁止自动创建案例:

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

    其中 x 是维护时段的持续时间,以小时为单位。

    备注 AutoSupport 消息会通知技术支持此维护任务,以便在维护窗口期间禁止自动创建案例。
    显示示例

    以下命令将禁止自动创建案例 2 小时:

    cluster1::*> system node autosupport invoke -node * -type all -message MAINT=2h

第2步:配置缆线和端口

  1. 在新集群交换机 CS1 和 CS2 上禁用所有面向节点的端口(而不是 ISL 端口)。

    不得禁用 ISL 端口。

    显示示例

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

    cs1# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs1(config)# interface e/1-64
    cs1(config-if-range)# shutdown
  2. 验证 ISL 和两个 923300 YC 交换机 CS1 和 CS2 之间的 ISL 上的物理端口是否已在端口 1/65 和 1/66 上启动:

    s如何执行端口通道摘要

    显示示例

    以下示例显示交换机 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/65(P)   Eth1/66(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/65(P)   Eth1/66(P)
  3. 显示相邻设备的列表:

    s如何使用 cdp 邻居

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

    显示示例

    以下示例列出了交换机 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(FDO220329V5)    Eth1/65        175    R S I s   N9K-C92300YC  Eth1/65
    cs2(FDO220329V5)    Eth1/66        175    R S I s   N9K-C92300YC  Eth1/66
    
    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(FDO220329KU)    Eth1/65        177    R S I s   N9K-C92300YC  Eth1/65
    cs1(FDO220329KU)    Eth1/66        177    R S I s   N9K-C92300YC  Eth1/66
    
    Total entries displayed: 2
  4. 验证所有集群端口是否均已启动:

    network port show -ipspace cluster

    对于 Link ,每个端口均应显示 up ;对于 Health Status ,每个端口均应显示 Healthy 。

    显示示例
    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 ,表示为 Home ,并将 S状态管理 /Oper 设置为 up/up

    显示示例
    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 show - vserver cluster -fields auto-revert

    显示示例
    cluster1::*> network interface show -vserver Cluster -fields auto-revert
    
              Logical
    Vserver   Interface     Auto-revert
    --------- ------------- ------------
    Cluster
              node1_clus1   true
              node1_clus2   true
              node2_clus1   true
              node2_clus2   true
    
    4 entries were displayed.
  7. 从 node1 上的集群端口 e0a 断开缆线连接,然后使用 923300 YC 交换机支持的相应布线方式将 e0a 连接到集群交换机 CS1 上的端口 1 。

    "Hardware Universe - 交换机 _" 包含有关布线的详细信息。

  8. 从节点 2 上的集群端口 e0a 断开缆线连接,然后使用 923300 YC 交换机支持的相应布线方式将 e0a 连接到集群交换机 CS1 上的端口 2 。

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

    显示示例

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

    cs1# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs1(config)# interface e1/1-64
    cs1(config-if-range)# no shutdown
  10. 验证所有集群 LIF 是否均已启动且正常运行,并在 Is Home 中显示为 true :

    network interface show -vserver cluster

    显示示例

    以下示例显示 node1 和 node2 上的所有 LIF 均已启动,并且 为 Home 结果为 true :

    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. 断开缆线与 node1 上的集群端口 e0b 的连接,然后使用 923300 YC 交换机支持的相应布线方式将 e0b 连接到集群交换机 CS2 上的端口 1 。

  13. 从节点 2 上的集群端口 e0b 断开缆线连接,然后使用 923300 YC 交换机支持的相应布线方式将 e0b 连接到集群交换机 CS2 上的端口 2 。

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

    显示示例

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

    cs2# config
    Enter configuration commands, one per line. End with CNTL/Z.
    cs2(config)# interface e1/1-64
    cs2(config-if-range)# no shutdown

第3步:验证配置

  1. 验证所有集群端口是否均已启动:

    network port show -ipspace cluster

    显示示例

    以下示例显示 node1 和 node2 上的所有集群端口均已启动:

    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.
  2. 验证 Is Home 的所有接口是否均显示 true :

    network interface show -vserver cluster

    备注 完成此操作可能需要几分钟时间。
    显示示例

    以下示例显示 node1 和 node2 上的所有 LIF 均已启动,并且 为 Home 结果为 true :

    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.
  3. 验证两个节点与每个交换机之间是否有一个连接:

    s如何使用 cdp 邻居

    显示示例

    以下示例显示了这两个交换机的相应结果:

    (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(FDO220329V5)    Eth1/65        175    R S I s   N9K-C92300YC  Eth1/65
    cs2(FDO220329V5)    Eth1/66        175    R S I s   N9K-C92300YC  Eth1/66
    
    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(FDO220329KU)
                        Eth1/65        175    R S I s   N9K-C92300YC  Eth1/65
    cs1(FDO220329KU)
                        Eth1/66        175    R S I s   N9K-C92300YC  Eth1/66
    
    Total entries displayed: 4
  4. 显示有关集群中发现的网络设备的信息:

    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-C92300YC
                e0b    cs2                       0/2               N9K-C92300YC
    node1      /cdp
                e0a    cs1                       0/1               N9K-C92300YC
                e0b    cs2                       0/1               N9K-C92300YC
    
    4 entries were displayed.
  5. 验证这些设置是否已禁用:

    network options switchless-cluster show

    备注 完成此命令可能需要几分钟的时间。等待 " 三分钟生命周期到期 " 公告。
    显示示例

    以下示例中的 false 输出显示配置设置已禁用:

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

    cluster show

    显示示例

    以下示例显示了有关集群中节点的运行状况和资格的信息:

    cluster1::*> cluster show
    
    Node                 Health  Eligibility   Epsilon
    -------------------- ------- ------------  --------
    node1                true    true          false
    node2                true    true          false
  7. 验证集群网络是否已完全连接:

    cluster ping-cluster -node node-name

    显示示例
    cluster1::> cluster ping-cluster -node node2
    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)
  8. 如果禁止自动创建案例,请通过调用 AutoSupport 消息重新启用它:

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

    显示示例
    cluster1::*> system node autosupport invoke -node * -type all -message MAINT=END
  9. 将权限级别重新更改为 admin :

    set -privilege admin

  10. 对于 ONTAP 9.4 及更高版本,使用以下命令启用集群交换机运行状况监控器日志收集功能以收集交换机相关的日志文件:

    ssystem cluster-switch log setup-passwordssystem cluster-switch log enable-Collection

    显示示例
    cluster1::*> system cluster-switch log setup-password
    Enter the switch name: <return>
    The switch name entered is not recognized.
    Choose from the following list:
    cs1
    cs2
    
    cluster1::*> system cluster-switch log setup-password
    
    Enter the switch name: cs1
    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>
    
    cluster1::*> system cluster-switch log setup-password
    
    Enter the switch name: cs2
    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>
    
    cluster1::*> 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.
    
    cluster1::*>
    备注 如果其中任何一个命令返回错误,请联系 NetApp 支持部门。