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

安装参考配置文件( RCF )

贡献者 netapp-yvonneo

首次设置 Nexus 3132Q-V 交换机后,安装参考配置文件 (RCF)。

开始之前

验证以下安装和连接:

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

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

  • 当前的RC框架。

  • 安装RCF时需要与交换机建立控制台连接。

关于此任务

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

在此过程中不需要任何可操作的交换机间链路 (ISL)。这是设计使然,因为 RCF 版本的更改可能会暂时影响 ISL 连接。为了实现无中断集群操作,以下步骤将所有集群 LIF 迁移到可操作的合作伙伴交换机,同时在目标交换机上执行步骤。

第1步:在交换机上安装RC框架

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

    network device-discovery show

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

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

      network port show -ipspace cluster

      显示示例
      cluster1::*> network port show -ipspace 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
      e0d       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
      e0d       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 -vserver cluster

      显示示例
      cluster1::*> network interface show -vserver 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  e0d     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  e0d     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
      cluster1::*>
    3. 验证集群是否同时显示两个集群交换机的信息:

      ssystem cluster-switch show -is-monitoring-enableed-Operational true

      显示示例
      cluster1::*> system cluster-switch show -is-monitoring-enabled-operational true
      Switch                      Type               Address          Model
      --------------------------- ------------------ ---------------- ---------------
      cs1                         cluster-network    10.0.0.1         NX3132QV
           Serial Number: FOXXXXXXXGS
            Is Monitored: true
                  Reason: None
        Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                          9.3(4)
          Version Source: CDP
      cs2                         cluster-network    10.0.0.2         NX3132QV
           Serial Number: FOXXXXXXXGD
            Is Monitored: true
                  Reason: None
        Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                          9.3(4)
          Version Source: CDP
      2 entries were displayed.
    备注 对于ONTAP 9.8及更高版本、请使用命令 system switch ethernet show -is-monitoring-enabled-operational true
  3. 在集群 LIF 上禁用自动还原。

    cluster1::*> network interface modify -vserver Cluster -lif * -auto-revert false

    确保在运行此命令后禁用自动还原。

  4. 在集群交换机 CS2 上,关闭连接到节点集群端口的端口。

    cs2> enable
    cs2# configure
    cs2(config)# interface eth1/1/1-2,eth1/7-8
    cs2(config-if-range)# shutdown
    cs2(config-if-range)# exit
    cs2# exit
    备注 显示的端口数量根据集群中的节点数量而变化。
  5. 验证集群端口是否已故障转移到集群交换机 cs1 上托管的端口。这可能需要几秒钟。

    network interface show -vserver cluster

    显示示例
    cluster1::*> network interface show -vserver 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::*>
  6. 验证集群是否运行正常:

    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
    cluster1::*>
  7. 如果尚未保存当前交换机配置的副本、请将以下命令的输出复制到文本文件中:

    s如何运行配置

  8. 记录当前运行配置和正在使用的 RCF 文件之间的任何自定义添加。

    备注

    确保配置以下内容:* 用户名和密码* 管理 IP 地址* 默认网关* 交换机名称

  9. 将基本配置详细信息保存到 `write_erase.cfg`bootflash 上的文件。

    备注 升级或应用新的 RCF 时,必须清除交换机设置并执行基本配置。您必须连接到交换机串行控制台端口才能重新设置交换机。

    cs2# show run | section "switchname" > bootflash:write_erase.cfg

    cs2# show run | section "hostname" >> bootflash:write_erase.cfg

    cs2# show run | i "username admin password" >> bootflash:write_erase.cfg

    cs2# show run | section "vrf context management" >> bootflash:write_erase.cfg

    cs2# show run | section "interface mgmt0" >> bootflash:write_erase.cfg

  10. 对于 RCF 版本 1.12 及更高版本,运行以下命令:

    cs2# echo "hardware access-list tcam region vpc-convergence 256" >> bootflash:write_erase.cfg

    cs2# echo "hardware access-list tcam region racl 256" >> bootflash:write_erase.cfg

    cs2# echo "hardware access-list tcam region e-racl 256" >> bootflash:write_erase.cfg

    cs2# echo "hardware access-list tcam region qos 256" >> bootflash:write_erase.cfg

  11. 验证 `write_erase.cfg`文件按预期填充:

    show file bootflash:write_erase.cfg

  12. 发出 `write erase`命令来删除当前保存的配置:

    cs2# write erase

    Warning: This command will erase the startup-configuration.

    Do you wish to proceed anyway? (y/n) [n] y

  13. 将先前保存的基本配置复制到启动配置中。

    cs2# copy bootflash:write_erase.cfg startup-config

  14. 重新启动交换机:

    cs2# reload

    This command will reboot the system. (y/n)? [n] y

  15. 对交换机 CS1 重复步骤 7 至 14 。

  16. 将ONTAP集群中所有节点的集群端口连接到交换机CS1和CS2。

第2步:验证交换机连接

  1. 验证连接到集群端口的交换机端口是否为*已启动*。

    show interface brief | grep up

    显示示例
    cs1# show interface brief | grep up
    .
    .
    Eth1/1/1      1       eth  access up      none                    10G(D) --
    Eth1/1/2      1       eth  access up      none                    10G(D) --
    Eth1/7        1       eth  trunk  up      none                   100G(D) --
    Eth1/8        1       eth  trunk  up      none                   100G(D) --
    .
    .
  2. 验证 CS1 和 CS2 之间的 ISL 是否正常运行:

    s如何执行端口通道摘要

    显示示例
    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/31(P)   Eth1/32(P)
    cs1#
  3. 验证集群 LIF 是否已还原到其主端口:

    network interface show -vserver cluster

    显示示例
    cluster1::*> network interface show -vserver 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         e0d     true
                cluster1-01_clus2  up/up      169.254.3.5/23     cluster1-01         e0d     true
                cluster1-02_clus1  up/up      169.254.3.8/23     cluster1-02         e0d     true
                cluster1-02_clus2  up/up      169.254.3.9/23     cluster1-02         e0d     true
                cluster1-03_clus1  up/up      169.254.1.3/23     cluster1-03         e0b     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         e0b     true
                cluster1-04_clus2  up/up      169.254.1.7/23     cluster1-04         e0b     true
    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
    cluster1::*>

步骤 3:设置ONTAP集群

NetApp建议您使用System Manager设置新集群。

系统管理器为集群设置和配置提供了简单易行的工作流程,包括分配节点管理 IP 地址、初始化集群、创建本地层、配置协议和配置初始存储。

下一步是什么?

安装完 RCF 后,您可以…… "验证 SSH 配置"