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

安装参考配置文件( RCF )

贡献者

您可以在配置BES-53248集群交换机后以及应用新许可证后安装参考配置文件(Reference Configuration File、RCF)。

注意 对于EFOS 3-16及更高版本,请按照中的安装步骤进行操作"安装参考配置文件(Reference Configuration File、RCF)和许可证文件"

查看要求

开始之前

验证以下各项是否已到位:

  • 交换机配置的当前备份。

  • 一个完全正常运行的集群(日志中没有错误或类似问题)。

  • 可从获取的当前RCF文件 "Broadcom 集群交换机" 页面。

  • RC框架 中反映所需启动映像的启动配置、如果您仅安装EFOS并保留当前RC框架 版本、则需要此配置。如果您需要更改启动配置以反映当前启动映像,则必须在重新应用 RCF 之前进行更改,以便在将来重新启动时实例化正确的版本。

  • 从出厂默认状态安装RC框架 时需要与交换机建立控制台连接。如果您已使用知识库文章、则此要求是可选的 "如何在保持远程连接的同时清除Broadcom互连交换机上的配置" 要清除配置、请事先清除。

建议的文档

有关支持的ONTAP 和RCF版本、请参见交换机兼容性表。请参见 "EFOS软件下载" 页面。请注意、RC框架 中的命令语法与EFOS版本中的命令语法之间可能存在命令依赖关系。

安装配置文件

关于示例

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

  • 两个BES-53248交换机的名称是CS1和CS2。

  • 节点名称包括cluster1-01、cluster1-02、cluster1-03和cluster1-04。

  • 集群LIF名称是"cluster-01_clus1"、"cluster-01_clus2"、"cluster-02_clus1"、"cluster-02_clus2"、"cluster-03_clus1"、 cluster-03_clus2、cluster-04_clus1和cluster-04_clus2。

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

  • 此操作步骤 中的示例使用四个节点。这些节点使用两个10GbE集群互连端口 e0ae0b。请参见 "Hardware Universe" 验证平台上的集群端口是否正确。

备注 根据不同版本的 ONTAP ,命令输出可能会有所不同。
关于此任务

操作步骤 要求同时使用ONTAP 命令和Broadcom交换机命令;除非另有说明、否则将使用ONTAP 命令。

在此操作步骤 期间、不需要可操作的交换机间链路(ISL)。这是设计上的原因、因为RCF版本更改可能会暂时影响ISL连接。为确保集群无中断运行、以下操作步骤 会在对目标交换机执行步骤时将所有集群LIFs迁移到正常运行的配对交换机。

注意 在安装新的交换机软件版本和RCF之前,请参阅知识库文章 "如何在保持远程连接的同时清除Broadcom互连交换机上的配置"。如果您必须完全擦除交换机设置、则需要再次执行基本配置。您必须使用串行控制台连接到交换机、因为完整的配置清除会重置管理网络的配置。

第1步:准备安装

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

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

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

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

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

    cluster1::*> system node autosupport invoke -node \* -type all -message MAINT=2h
  2. 将权限级别更改为高级,在系统提示您继续时输入 * y * :

    set -privilege advanced

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

  3. 显示连接到集群交换机的每个节点上的集群端口:

    network device-discovery show
    显示示例
    cluster1::*> network device-discovery show
    Node/       Local  Discovered
    Protocol    Port   Device (LLDP: ChassisID)  Interface         Platform
    ----------- ------ ------------------------- ----------------  --------
    cluster1-01/cdp
                e0a    cs1                       0/2               BES-53248
                e0b    cs2                       0/2               BES-53248
    cluster1-02/cdp
                e0a    cs1                       0/1               BES-53248
                e0b    cs2                       0/1               BES-53248
    cluster1-03/cdp
                e0a    cs1                       0/4               BES-53248
                e0b    cs2                       0/4               BES-53248
    cluster1-04/cdp
                e0a    cs1                       0/3               BES-53248
                e0b    cs2                       0/3               BES-53248
    cluster1::*>
  4. 检查每个集群端口的管理和运行状态。

    1. 验证所有集群端口是否均已启动且状态正常:

      network port show -role cluster
      显示示例
      cluster1::*> network port show -role cluster
      
      Node: cluster1-01
                                                                             Ignore
                                                        Speed(Mbps) Health   Health
      Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status   Status
      --------- ------------ ---------------- ---- ---- ----------- -------- ------
      e0a       Cluster      Cluster          up   9000  auto/100000 healthy false
      e0b       Cluster      Cluster          up   9000  auto/100000 healthy false
      
      Node: cluster1-02
                                                                             Ignore
                                                        Speed(Mbps) Health   Health
      Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status   Status
      --------- ------------ ---------------- ---- ---- ----------- -------- ------
      e0a       Cluster      Cluster          up   9000  auto/100000 healthy false
      e0b       Cluster      Cluster          up   9000  auto/100000 healthy false
      8 entries were displayed.
      
      Node: cluster1-03
      
         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: cluster1-04
                                                                             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
      cluster1::*>
    2. 验证所有集群接口( LIF )是否均位于主端口上:

      network interface show -role cluster
      显示示例
      cluster1::*> network interface show -role cluster
                  Logical            Status     Network           Current      Current Is
      Vserver     Interface          Admin/Oper Address/Mask      Node         Port    Home
      ----------- ------------------ ---------- ----------------- ------------ ------- ----
      Cluster
                  cluster1-01_clus1  up/up     169.254.3.4/23     cluster1-01  e0a     true
                  cluster1-01_clus2  up/up     169.254.3.5/23     cluster1-01  e0b     true
                  cluster1-02_clus1  up/up     169.254.3.8/23     cluster1-02  e0a     true
                  cluster1-02_clus2  up/up     169.254.3.9/23     cluster1-02  e0b     true
                  cluster1-03_clus1  up/up     169.254.1.3/23     cluster1-03  e0a     true
                  cluster1-03_clus2  up/up     169.254.1.1/23     cluster1-03  e0b     true
                  cluster1-04_clus1  up/up     169.254.1.6/23     cluster1-04  e0a     true
                  cluster1-04_clus2  up/up     169.254.1.7/23     cluster1-04  e0b     true
  5. 验证集群是否显示两个集群交换机的信息。

ONTAP 9.8 及更高版本

从ONTAP 9.8开始、请使用以下命令:

system switch ethernet show -is-monitoring-enabled-operational true
cluster1::*> system switch ethernet show -is-monitoring-enabled-operational true
Switch                      Type               Address          Model
--------------------------- ------------------ ---------------- ---------------
cs1                         cluster-network    10.228.143.200   BES-53248
           Serial Number: QTWCU22510008
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP

cs2                         cluster-network    10.228.143.202   BES-53248
           Serial Number: QTWCU22510009
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP
cluster1::*>
ONTAP 9.7 及更早版本

对于ONTAP 9.7及更早版本、请使用命令:

system cluster-switch show -is-monitoring-enabled-operational true
cluster1::*> system cluster-switch show -is-monitoring-enabled-operational true
Switch                      Type               Address          Model
--------------------------- ------------------ ---------------- ---------------
cs1                         cluster-network    10.228.143.200   BES-53248
           Serial Number: QTWCU22510008
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP

cs2                         cluster-network    10.228.143.202   BES-53248
           Serial Number: QTWCU22510009
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP
cluster1::*>
  1. 【第 6 步】在集群 LIF 上禁用自动还原。

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

第2步:配置端口

  1. 在交换机CS2上、确认连接到集群中节点的端口列表。

    show isdp neighbor
  2. 在集群交换机 CS2 上,关闭连接到节点集群端口的端口。例如,如果端口0/1到0/16连接到ONTAP节点:

    (cs2)> enable
    (cs2)# configure
    (cs2)(Config)# interface 0/1-0/16
    (cs2)(Interface 0/1-0/16)# shutdown
    (cs2)(Interface 0/1-0/16)# exit
    (cs2)(Config)#
  3. 验证集群 LIF 是否已迁移到集群交换机 CS1 上托管的端口。这可能需要几秒钟的时间。

    network interface show -role cluster
    显示示例
    cluster1::*> network interface show -role cluster
                Logical           Status     Network            Current       Current Is
    Vserver     Interface         Admin/Oper Address/Mask       Node          Port    Home
    ----------- ----------------- ---------- ------------------ ------------- ------- ----
    Cluster
                cluster1-01_clus1 up/up      169.254.3.4/23     cluster1-01   e0a     true
                cluster1-01_clus2 up/up      169.254.3.5/23     cluster1-01   e0a     false
                cluster1-02_clus1 up/up      169.254.3.8/23     cluster1-02   e0a     true
                cluster1-02_clus2 up/up      169.254.3.9/23     cluster1-02   e0a     false
                cluster1-03_clus1 up/up      169.254.1.3/23     cluster1-03   e0a     true
                cluster1-03_clus2 up/up      169.254.1.1/23     cluster1-03   e0a     false
                cluster1-04_clus1 up/up      169.254.1.6/23     cluster1-04   e0a     true
                cluster1-04_clus2 up/up      169.254.1.7/23     cluster1-04   e0a     false
    cluster1::*>
  4. 验证集群是否运行正常:

    cluster show

    显示示例
    cluster1::*> cluster show
    Node                 Health  Eligibility   Epsilon
    -------------------- ------- ------------  -------
    cluster1-01          true    true          false
    cluster1-02          true    true          false
    cluster1-03          true    true          true
    cluster1-04          true    true          false
  5. 如果您尚未保存当前交换机配置、请将以下命令的输出复制到日志文件中以保存此配置:

    show running-config
  6. 清理交换机 CS2 上的配置并执行基本设置。

    注意 更新或应用新 RCF 时,必须擦除交换机设置并执行基本配置。您必须使用串行控制台连接到交换机,才能擦除交换机设置。如果您已使用知识库文章、则此要求是可选的 "如何在保持远程连接的同时清除Broadcom互连交换机上的配置" 要清除配置、请事先清除。
    备注 清除配置不会删除许可证。
    1. 通过SSH连接到交换机。

      只有在从交换机上的端口中删除了所有集群的集群生命周期、并且交换机已准备好清除配置后、才能继续操作。

    2. 进入权限模式:

      (cs2)> enable
      (cs2)#
    3. 复制并粘贴以下命令以删除先前的RCIF配置(根据所使用的先前RCIF版本、如果不存在特定设置、某些命令可能会生成错误):

      clear config interface 0/1-0/56
      y
      clear config interface lag 1
      y
      configure
      deleteport 1/1 all
      no policy-map CLUSTER
      no policy-map WRED_25G
      no policy-map WRED_100G
      no class-map CLUSTER
      no class-map HA
      no class-map RDMA
      no classofservice dot1p-mapping
      no random-detect queue-parms 0
      no random-detect queue-parms 1
      no random-detect queue-parms 2
      no random-detect queue-parms 3
      no random-detect queue-parms 4
      no random-detect queue-parms 5
      no random-detect queue-parms 6
      no random-detect queue-parms 7
      no cos-queue min-bandwidth
      no cos-queue random-detect 0
      no cos-queue random-detect 1
      no cos-queue random-detect 2
      no cos-queue random-detect 3
      no cos-queue random-detect 4
      no cos-queue random-detect 5
      no cos-queue random-detect 6
      no cos-queue random-detect 7
      exit
      vlan database
      no vlan 17
      no vlan 18
      exit
    4. 将运行配置保存到启动配置:

      (cs2)# write memory
      
      This operation may take a few minutes.
      Management interfaces will not be available during this time.
      
      Are you sure you want to save? (y/n) y
      
      Config file 'startup-config' created successfully.
      
      Configuration Saved!
    5. 重新启动交换机:

      (cs2)# reload
      
      Are you sure you would like to reset the system? (y/n) y
    6. 使用SSH再次登录到交换机以完成RC框架 安装。

  7. 请注意以下事项:

    1. 如果交换机上安装了其他端口许可证、则必须修改RCIF以配置其他获得许可的端口。请参见 "激活新许可的端口" 了解详细信息。

    2. 记录在以前的RC框架 中所做的任何自定义设置、并将其应用于新的RC框架。例如、设置端口速度或硬编码FEC模式。

EFOS 3.12.x及更高版本
  1. 使用以下传输协议之一将 RCF 复制到交换机 CS2 的启动闪存: FTP , TFTP , SFTP 或 SCP 。

    此示例显示了使用SFTP将RCC复制到交换机CS2上的bootflash:

(cs2)# copy sftp://172.19.2.1/BES-53248-RCF-v1.9-Cluster-HA.txt
nvram:reference-config
Remote Password:**
Mode........................................... TFTP
Set Server IP.................................. 172.19.2.1
Path........................................... //tmp/
Filename....................................... BES-53248_RCF_v1.9-Cluster-HA.txt
Data Type...................................... Config Script
Destination Filename........................... BES-53248_RCF_v1.9-Cluster-HA.scr
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
TFTP Code transfer starting...
File transfer operation completed successfully.
  1. 验证脚本是否已下载并保存在您为其指定的文件名下:

    s记录列表

    (cs2)# script list
    
    Configuration Script Name                  Size(Bytes)  Date of Modification
    -----------------------------------------  -----------  --------------------
    Reference-config.scr                       2680         2024 05 31 21:54:22
    2 configuration script(s) found.
    2042 Kbytes free.
  2. 将此脚本应用于交换机。

    s记录应用

    (cs2)# script apply reference-config.scr
    
    Are you sure you want to apply the configuration script? (y/n) y
    
    The system has unsaved changes.
    Would you like to save them now? (y/n) y
    Config file 'startup-config' created successfully.
    Configuration Saved!
    
    Configuration script 'BES-53248_RCF_v1.9-Cluster-HA.scr' applied.
所有其他 EFOS 版本
  1. 使用以下传输协议之一将 RCF 复制到交换机 CS2 的启动闪存: FTP , TFTP , SFTP 或 SCP 。

    此示例显示了使用SFTP将RCC复制到交换机CS2上的bootflash:

(cs2)# copy sftp://172.19.2.1/tmp/BES-53248_RCF_v1.9-Cluster-HA.txt
nvram:script BES-53248_RCF_v1.9-Cluster-HA.scr
Remote Password:**
Mode........................................... SFTP
Set Server IP.................................. 172.19.2.1
Path........................................... //tmp/
Filename....................................... BES-53248_RCF_v1.9-Cluster-HA.txt
Data Type...................................... Config Script
Destination Filename........................... BES-53248_RCF_v1.9-Cluster-HA.scr
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
SFTP Code transfer starting...
File transfer operation completed successfully.
  1. 验证脚本是否已下载并保存到您为其指定的文件名中:

    s记录列表

    (cs2)# script list
    
    Configuration Script Name                  Size(Bytes)  Date of Modification
    -----------------------------------------  -----------  --------------------
    BES-53248_RCF_v1.9-Cluster-HA.scr          2241         2020 09 30 05:41:00
    
    1 configuration script(s) found.
  2. 将此脚本应用于交换机。

    s记录应用

    (cs2)# script apply BES-53248_RCF_v1.9-Cluster-HA.scr
    
    Are you sure you want to apply the configuration script? (y/n) y
    
    The system has unsaved changes.
    Would you like to save them now? (y/n) y
    Config file 'startup-config' created successfully.
    Configuration Saved!
    
    Configuration script 'BES-53248_RCF_v1.9-Cluster-HA.scr' applied.
  1. 检查命令的横幅输出 show clibanner。您必须阅读并遵循以下说明、以验证交换机的配置和操作是否正确。

    显示示例
    (cs2)# show clibanner
    
    Banner Message configured :
    =========================
    BES-53248 Reference Configuration File v1.9 for Cluster/HA/RDMA
    
    Switch   : BES-53248
    Filename : BES-53248-RCF-v1.9-Cluster.txt
    Date     : 10-26-2022
    Version  : v1.9
    Port Usage:
    Ports 01 - 16: 10/25GbE Cluster Node Ports, base config
    Ports 17 - 48: 10/25GbE Cluster Node Ports, with licenses
    Ports 49 - 54: 40/100GbE Cluster Node Ports, with licenses, added right to left
    Ports 55 - 56: 100GbE Cluster ISL Ports, base config
    NOTE:
    - The 48 SFP28/SFP+ ports are organized into 4-port groups in terms of port
    speed:
    Ports 1-4, 5-8, 9-12, 13-16, 17-20, 21-24, 25-28, 29-32, 33-36, 37-40, 41-44,
    45-48
    The port speed should be the same (10GbE or 25GbE) across all ports in a 4-port
    group
    - If additional licenses are purchased, follow the 'Additional Node Ports
    activated with Licenses' section for instructions
    - If SSH is active, it will have to be re-enabled manually after 'erase
    startup-config'
    command has been executed and the switch rebooted
  2. 在交换机上、验证在应用RC框架 后是否显示其他已获得许可的端口:

    show port all | exclude Detach
    显示示例
    (cs2)# show port all | exclude Detach
    
                     Admin     Physical     Physical   Link   Link    LACP   Actor
    Intf      Type   Mode      Mode         Status     Status Trap    Mode   Timeout
    --------- ------ --------- ------------ ---------- ------ ------- ------ --------
    0/1              Enable    Auto                    Down   Enable  Enable long
    0/2              Enable    Auto                    Down   Enable  Enable long
    0/3              Enable    Auto                    Down   Enable  Enable long
    0/4              Enable    Auto                    Down   Enable  Enable long
    0/5              Enable    Auto                    Down   Enable  Enable long
    0/6              Enable    Auto                    Down   Enable  Enable long
    0/7              Enable    Auto                    Down   Enable  Enable long
    0/8              Enable    Auto                    Down   Enable  Enable long
    0/9              Enable    Auto                    Down   Enable  Enable long
    0/10             Enable    Auto                    Down   Enable  Enable long
    0/11             Enable    Auto                    Down   Enable  Enable long
    0/12             Enable    Auto                    Down   Enable  Enable long
    0/13             Enable    Auto                    Down   Enable  Enable long
    0/14             Enable    Auto                    Down   Enable  Enable long
    0/15             Enable    Auto                    Down   Enable  Enable long
    0/16             Enable    Auto                    Down   Enable  Enable long
    0/49             Enable    40G Full                Down   Enable  Enable long
    0/50             Enable    40G Full                Down   Enable  Enable long
    0/51             Enable    100G Full               Down   Enable  Enable long
    0/52             Enable    100G Full               Down   Enable  Enable long
    0/53             Enable    100G Full               Down   Enable  Enable long
    0/54             Enable    100G Full               Down   Enable  Enable long
    0/55             Enable    100G Full               Down   Enable  Enable long
    0/56             Enable    100G Full               Down   Enable  Enable long
  3. 在交换机上验证是否已进行更改:

    show running-config
    (cs2)# show running-config
  4. 保存正在运行的配置,使其在重新启动交换机时成为启动配置:

    写入内存

    (cs2)# write memory
    This operation may take a few minutes.
    Management interfaces will not be available during this time.
    
    Are you sure you want to save? (y/n) y
    
    Config file 'startup-config' created successfully.
    
    Configuration Saved!
  5. 重新启动交换机并验证正在运行的配置是否正确:

    re负载

    (cs2)# reload
    
    Are you sure you would like to reset the system? (y/n) y
    
    System will now restart!
  6. 在集群交换机CS2上、启动连接到节点的集群端口的端口。例如,如果端口0/1到0/16连接到ONTAP节点:

    (cs2)> enable
    (cs2)# configure
    (cs2)(Config)# interface 0/1-0/16
    (cs2)(Interface 0/1-0/16)# no shutdown
    (cs2)(Interface 0/1-0/16)# exit
    (cs2)(Config)#
  7. 验证交换机CS2上的端口:

    show interfaces status all | exclude Detach
    显示示例
    (cs1)# show interfaces status all | exclude Detach
    
                                    Link    Physical    Physical    Media       Flow
    Port       Name                 State   Mode        Status      Type        Control     VLAN
    ---------  -------------------  ------  ----------  ----------  ----------  ----------  ------
    .
    .
    .
    0/16       10/25GbE Node Port   Down    Auto                                Inactive    Trunk
    0/17       10/25GbE Node Port   Down    Auto                                Inactive    Trunk
    0/18       10/25GbE Node Port   Up      25G Full    25G Full    25GBase-SR  Inactive    Trunk
    0/19       10/25GbE Node Port   Up      25G Full    25G Full    25GBase-SR  Inactive    Trunk
    .
    .
    .
    0/50       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/51       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/52       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/53       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/54       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/55       Cluster   ISL Port   Up      Auto        100G Full   Copper      Inactive    Trunk
    0/56       Cluster   ISL Port   Up      Auto        100G Full   Copper      Inactive    Trunk
  8. 验证集群上集群端口的运行状况。

    1. 验证集群中所有节点上的e0b端口是否均已启动且运行正常:

      network port show -role cluster
      显示示例
      cluster1::*> network port show -role cluster
      
      Node: cluster1-01
                                                                            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: cluster1-02
      
                                                                            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: cluster1-03
                                                                            Ignore
                                                        Speed(Mbps) Health  Health
      Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status  Status
      --------- ------------ ---------------- ---- ---- ----------- -------- -----
      e0a       Cluster      Cluster          up   9000  auto/100000 healthy false
      e0b       Cluster      Cluster          up   9000  auto/100000 healthy false
      
      Node: cluster1-04
                                                                            Ignore
                                                        Speed(Mbps) Health  Health
      Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status  Status
      --------- ------------ ---------------- ---- ---- ----------- -------- -----
      e0a       Cluster      Cluster          up   9000  auto/100000 healthy false
      e0b       Cluster      Cluster          up   9000  auto/100000 healthy false
    2. 从集群验证交换机运行状况:

      network device-discovery show -protocol cdp
      显示示例
      cluster1::*> network device-discovery show -protocol cdp
      Node/       Local  Discovered
      Protocol    Port   Device (LLDP: ChassisID)  Interface         Platform
      ----------- ------ ------------------------- ----------------- --------
      cluster1-01/cdp
                  e0a    cs1                       0/2               BES-53248
                  e0b    cs2                       0/2               BES-53248
      cluster01-2/cdp
                  e0a    cs1                       0/1               BES-53248
                  e0b    cs2                       0/1               BES-53248
      cluster01-3/cdp
                  e0a    cs1                       0/4               BES-53248
                  e0b    cs2                       0/4               BES-53248
      cluster1-04/cdp
                  e0a    cs1                       0/3               BES-53248
                  e0b    cs2                       0/2               BES-53248
  9. 验证集群是否显示两个集群交换机的信息。

ONTAP 9.8 及更高版本

从ONTAP 9.8开始、请使用以下命令:

system switch ethernet show -is-monitoring-enabled-operational true
cluster1::*> system switch ethernet show -is-monitoring-enabled-operational true
Switch                      Type               Address          Model
--------------------------- ------------------ ---------------- ---------------
cs1                         cluster-network    10.228.143.200   BES-53248
           Serial Number: QTWCU22510008
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP

cs2                         cluster-network    10.228.143.202   BES-53248
           Serial Number: QTWCU22510009
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP
cluster1::*>
ONTAP 9.7 及更早版本

对于ONTAP 9.7及更早版本、请使用命令:

system cluster-switch show -is-monitoring-enabled-operational true
cluster1::*> system cluster-switch show -is-monitoring-enabled-operational true
Switch                      Type               Address          Model
--------------------------- ------------------ ---------------- ---------------
cs1                         cluster-network    10.228.143.200   BES-53248
           Serial Number: QTWCU22510008
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP

cs2                         cluster-network    10.228.143.202   BES-53248
           Serial Number: QTWCU22510009
            Is Monitored: true
                  Reason: None
        Software Version: 3.10.0.3
          Version Source: CDP/ISDP
cluster1::*>
  1. 在集群交换机CS1上、关闭连接到节点集群端口的端口。

    以下示例使用接口示例输出:

    (cs1)> enable
    (cs1)# configure
    (cs1)(Config)# interface 0/1-0/16
    (cs1)(Interface 0/1-0/16)# shutdown
  2. 验证集群 LIF 是否已迁移到交换机 CS2 上托管的端口。这可能需要几秒钟的时间。

    network interface show -role cluster
    显示示例
    cluster1::*> network interface show -role cluster
                Logical            Status     Network            Current            Current  Is
    Vserver     Interface          Admin/Oper Address/Mask       Node               Port     Home
    ----------- ------------------ ---------- ------------------ ------------------ -------- ----
    Cluster
                cluster1-01_clus1  up/up      169.254.3.4/23     cluster1-01        e0a      false
                cluster1-01_clus2  up/up      169.254.3.5/23     cluster1-01        e0b      true
                cluster1-02_clus1  up/up      169.254.3.8/23     cluster1-02        e0a      false
                cluster1-02_clus2  up/up      169.254.3.9/23     cluster1-02        e0b      true
                cluster1-03_clus1  up/up      169.254.1.3/23     cluster1-03        e0a      false
                cluster1-03_clus2  up/up      169.254.1.1/23     cluster1-03        e0b      true
                cluster1-04_clus1  up/up      169.254.1.6/23     cluster1-04        e0a      false
                cluster1-04_clus2  up/up      169.254.1.7/23     cluster1-04        e0b      true
    cluster1::*>
  3. 验证集群是否运行正常:

    cluster show

    显示示例
    cluster1::*> cluster show
    Node                 Health   Eligibility   Epsilon
    -------------------- -------- ------------- -------
    cluster1-01          true     true          false
    cluster1-02          true     true          false
    cluster1-03          true     true          true
    cluster1-04          true     true          false
  4. 对交换机CS1重复步骤4至19。

  5. 在集群 LIF 上启用自动还原:

    network interface modify -vserver Cluster -lif * -auto-revert true
  6. 重新启动交换机 CS1 。这会触发集群的Sifs还原到其主端口。您可以忽略在交换机重新启动时报告的节点上的 " 集群端口关闭 " 事件。

    (cs1)# reload
    The system has unsaved changes.
    Would you like to save them now? (y/n) y
    Config file 'startup-config' created successfully.
    Configuration Saved! System will now restart!

第3步:验证配置

  1. 在交换机CS1上、验证连接到集群端口的交换机端口是否为*已启动*:

    show interfaces status all | exclude Detach
    显示示例
    (cs1)# show interfaces status all | exclude Detach
    
                                    Link    Physical    Physical    Media       Flow
    Port       Name                 State   Mode        Status      Type        Control     VLAN
    ---------  -------------------  ------  ----------  ----------  ----------  ----------  ------
    .
    .
    .
    0/16       10/25GbE Node Port   Down    Auto                                Inactive    Trunk
    0/17       10/25GbE Node Port   Down    Auto                                Inactive    Trunk
    0/18       10/25GbE Node Port   Up      25G Full    25G Full    25GBase-SR  Inactive    Trunk
    0/19       10/25GbE Node Port   Up      25G Full    25G Full    25GBase-SR  Inactive    Trunk
    .
    .
    .
    0/50       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/51       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/52       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/53       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/54       40/100GbE Node Port  Down    Auto                                Inactive    Trunk
    0/55       Cluster   ISL Port   Up      Auto        100G Full   Copper      Inactive    Trunk
    0/56       Cluster   ISL Port   Up      Auto        100G Full   Copper      Inactive    Trunk
  2. 验证交换机CS1和CS2之间的ISL是否正常运行:

    show port-channel 1/1
    显示示例
    (cs1)# show port-channel 1/1
    Local Interface................................ 1/1
    Channel Name................................... Cluster-ISL
    Link State..................................... Up
    Admin Mode..................................... Enabled
    Type........................................... Dynamic
    Port-channel Min-links......................... 1
    Load Balance Option............................ 7
    (Enhanced hashing mode)
    Mbr     Device/       Port      Port
    Ports   Timeout       Speed     Active
    ------- ------------- --------- -------
    0/55    actor/long    Auto      True
            partner/long
    0/56    actor/long    Auto      True
            partner/long
  3. 验证集群 LIF 是否已还原到其主端口:

    network interface show -role cluster
    显示示例
    cluster1::*> network interface show -role cluster
                Logical            Status     Network            Current             Current Is
    Vserver     Interface          Admin/Oper Address/Mask       Node                Port    Home
    ----------- ------------------ ---------- ------------------ ------------------- ------- ----
    Cluster
                cluster1-01_clus1  up/up      169.254.3.4/23     cluster1-01         e0a     true
                cluster1-01_clus2  up/up      169.254.3.5/23     cluster1-01         e0b     true
                cluster1-02_clus1  up/up      169.254.3.8/23     cluster1-02         e0a     true
                cluster1-02_clus2  up/up      169.254.3.9/23     cluster1-02         e0b     true
                cluster1-03_clus1  up/up      169.254.1.3/23     cluster1-03         e0a     true
                cluster1-03_clus2  up/up      169.254.1.1/23     cluster1-03         e0b     true
                cluster1-04_clus1  up/up      169.254.1.6/23     cluster1-04         e0a     true
                cluster1-04_clus2  up/up      169.254.1.7/23     cluster1-04         e0b     true
  4. 验证集群是否运行正常:

    cluster show

    显示示例
    cluster1::*> cluster show
    Node                 Health  Eligibility   Epsilon
    -------------------- ------- ------------- -------
    cluster1-01          true    true          false
    cluster1-02          true    true          false
    cluster1-03          true    true          true
    cluster1-04          true    true          false
  5. 验证远程集群接口的连接:

ONTAP 9.9.1及更高版本

您可以使用 network interface check cluster-connectivity 命令启动集群连接的可访问性检查、然后显示详细信息:

network interface check cluster-connectivity startnetwork 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
------ -------------------------- ------------------- ------------------- -------
cluster1-01
       3/5/2022 19:21:18 -06:00   cluster1-01_clus2   cluster01-02_clus1  none
       3/5/2022 19:21:20 -06:00   cluster1-01_clus2   cluster01-02_clus2  none

cluster1-02
       3/5/2022 19:21:18 -06:00   cluster1-02_clus2   cluster1-02_clus1   none
       3/5/2022 19:21:20 -06:00   cluster1-02_clus2   cluster1-02_clus2   none
所有ONTAP版本

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

cluster ping-cluster -node <name>

cluster1::*> cluster ping-cluster -node local
Host is cluster1-03
Getting addresses from network interface table...
Cluster cluster1-03_clus1 169.254.1.3 cluster1-03 e0a
Cluster cluster1-03_clus2 169.254.1.1 cluster1-03 e0b
Cluster cluster1-04_clus1 169.254.1.6 cluster1-04 e0a
Cluster cluster1-04_clus2 169.254.1.7 cluster1-04 e0b
Cluster cluster1-01_clus1 169.254.3.4 cluster1-01 e0a
Cluster cluster1-01_clus2 169.254.3.5 cluster1-01 e0b
Cluster cluster1-02_clus1 169.254.3.8 cluster1-02 e0a
Cluster cluster1-02_clus2 169.254.3.9 cluster1-02 e0b
Local = 169.254.1.3 169.254.1.1
Remote = 169.254.1.6 169.254.1.7 169.254.3.4 169.254.3.5 169.254.3.8
169.254.3.9
Cluster Vserver Id = 4294967293
Ping status:
............
Basic connectivity succeeds on 12 path(s)
Basic connectivity fails on 0 path(s)
................................................
Detected 9000 byte MTU on 12 path(s):
  Local 169.254.1.3 to Remote 169.254.1.6
  Local 169.254.1.3 to Remote 169.254.1.7
  Local 169.254.1.3 to Remote 169.254.3.4
  Local 169.254.1.3 to Remote 169.254.3.5
  Local 169.254.1.3 to Remote 169.254.3.8
  Local 169.254.1.3 to Remote 169.254.3.9
  Local 169.254.1.1 to Remote 169.254.1.6
  Local 169.254.1.1 to Remote 169.254.1.7
  Local 169.254.1.1 to Remote 169.254.3.4
  Local 169.254.1.1 to Remote 169.254.3.5
  Local 169.254.1.1 to Remote 169.254.3.8
  Local 169.254.1.1 to Remote 169.254.3.9
Larger than PMTU communication succeeds on 12 path(s)
RPC status:
6 paths up, 0 paths down (tcp check)
6 paths up, 0 paths down (udp check)
  1. 将权限级别重新更改为 admin :

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

    system node autosupport invoke -node * -type all -message MAINT=END
下一步是什么?

"启用 SSH :"(英文)