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

升级 Cisco Nexus 3232C 存储交换机

贡献者

按照以下步骤升级Cisco Nexus 3232C交换机上的Cisco NX-OS软件和参考配置文件(RCF)。

查看要求

开始之前

在升级存储交换机上的NX-OS软件和RCF之前、请确保满足以下条件:

  • 交换机完全正常运行(日志中不应有任何错误或类似问题)。

  • 如果您仅安装NX-OS并保留当前RCF版本、则已在RCF中检查或设置所需的启动变量、以反映所需的启动映像。

    如果您需要更改启动变量以反映当前启动映像,则必须在重新应用 RCF 之前进行更改,以便在未来重新启动时实例化正确的版本。

  • 您已参考上提供的相应软件和升级指南 "Cisco Nexus 3000 系列交换机" 第页,了解有关 Cisco 存储升级和降级过程的完整文档。

  • 10 GbE 和 40/100 GbE 端口的数量在上提供的参考配置文件( RCF )中定义 "Cisco ® 以太网交换机" 页面。

更换交换机

关于示例

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

  • 两个存储交换机的名称分别为 S1 和 S2 。

  • 节点为 node1 和 node2 。

此操作步骤 中的示例使用两个节点:节点 1 具有两个存储端口,节点 2 具有两个存储端口。请参见 "Hardware Universe" 验证平台上的存储端口是否正确。

备注 操作步骤 要求同时使用 ONTAP 命令和 Cisco Nexus 3000 系列交换机命令;除非另有说明,否则使用 ONTAP 命令。根据不同版本的 ONTAP ,命令输出可能会有所不同。

第1步:检查交换机和端口的运行状况

  1. 如果启用了AutoSupport 、则通过调用AutoSupport 消息禁止自动创建案例: system node autosupport invoke -node * -type all - message MAINT=xh

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

    备注 AutoSupport 消息会通知技术支持此维护任务,以便在维护窗口期间禁止自动创建案例。
  2. 检查存储交换机是否可用:

    system switch ethernet show

    显示示例
    storage::*> system switch ethernet show
    Switch                      Type               Address          Model
    --------------------------- ------------------ ---------------- ---------------
    S1
                                storage-network    172.17.227.5     NX3232C
         Serial Number: FOC221206C2
          Is Monitored: true
                Reason: None
      Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                        9.3(3)
        Version Source: CDP
    
    S2
                                storage-network    172.17.227.6     NX3232C
         Serial Number: FOC220443LZ
          Is Monitored: true
                Reason: None
      Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                        9.3(3)
        Version Source: CDP
    
    2 entries were displayed.
    storage::*>
  3. 验证节点端口是否运行正常:

    storage port show -port-type ENET

    显示示例
    storage::*> storage port show -port-type ENET
                                          Speed                       VLAN
    Node               Port Type  Mode    (Gb/s) State    Status        ID
    ------------------ ---- ----- ------- ------ -------- ----------- ----
    node1
                       e3a  ENET  storage    100 enabled  online        30
                       e3b  ENET  storage      0 enabled  offline       30
                       e7a  ENET  storage      0 enabled  offline       30
                       e7b  ENET  storage    100 enabled  online        30
    node2
                       e3a  ENET  storage    100 enabled  online        30
                       e3b  ENET  storage      0 enabled  offline       30
                       e7a  ENET  storage      0 enabled  offline       30
                       e7b  ENET  storage    100 enabled  online        30
  4. 检查是否不存在存储交换机或布线问题:

    system health alert show -instance

    显示示例
    storage::*> system health alert show -instance
    There are no entries matching your query.

第2步:将RCF复制到Cisco交换机S2

  1. 使用以下传输协议之一将交换机 S2 上的 RCF 复制到交换机 bootflash : FTP , HTTP , TFTP , SFTP 或 SCP 。

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

    显示示例

    以下示例显示了用于将 RCF 复制到交换机 S2 上的 bootflash 的 HTTP :

    S2# copy http://172.16.10.1//cfg/Nexus_3232C_RCF_v1.6-Storage.txt bootflash: vrf management
    % Total    % Received % Xferd  Average  Speed   Time    Time     Time                          Current
                                   Dload    Upload  Total   Spent    Left                          Speed
      100        3254       100    3254     0       0       8175     0 --:--:-- --:--:-- --:--:-   8301
    Copy complete, now saving to disk (please wait)...
    Copy complete.
    S2#
  2. 将先前下载的RCF应用于bootflash:

    copy bootflash:

    显示示例

    以下示例显示了正在交换机 S2 上安装的 RCF 文件 Nexus 3232C_RCF_v1.6-Storage.txt

    S2# copy Nexus_3232C_RCF_v1.6-Storage.txt running-config echo-commands
  3. 验证 RCF 文件是否为正确的较新版本:

    s如何运行配置

    在检查输出以确认您的 RCF 正确无误时,请确保以下信息正确无误:

    • RCF 横幅

    • 节点和端口设置

    • 自定义

      输出因站点配置而异。检查端口设置,并参阅发行说明,了解您安装的 RCF 的任何特定更改。

    备注

    在的横幅输出中 show banner motd 命令中、您必须阅读并按照*重要说明*一节中的说明进行操作、以确保交换机的配置和操作正确无误。

    + .显示示例

    Details
    S2# show banner motd
    
    ******************************************************************************
    * NetApp Reference Configuration File (RCF)
    *
    * Switch   : Cisco Nexus 3232C
    * Filename : Nexus_3232C_RCF_v1.6-Storage.txt
    * Date     : Oct-20-2020
    * Version  : v1.6
    *
    * Port Usage : Storage configuration
    * Ports  1-32: Controller and Shelf Storage Ports
    * Ports 33-34: Disabled
    *
    * IMPORTANT NOTES*
    * - This RCF utilizes QoS and requires TCAM re-configuration, requiring RCF
    *   to be loaded twice with the Storage Switch rebooted in between.
    *
    * - Perform the following 4 steps to ensure proper RCF installation:
    *
    *   (1) Apply RCF first time, expect following messages:
    *       - Please save config and reload the system...
    *       - Edge port type (portfast) should only be enabled on ports...
    *       - TCAM region is not configured for feature QoS class IPv4 ingress...
    *
    *   (2) Save running-configuration and reboot Cluster Switch
    *
    *   (3) After reboot, apply same RCF second time and expect following messages:
    *       - % Invalid command at '^' marker
    *       - Syntax error while parsing...
    *
    *   (4) Save running-configuration again
    ******************************************************************************
    S2#

    +

    备注 首次应用 RCF 时,系统会显示 * 错误:无法写入 VSH 命令 * 消息,可以忽略该消息。
  4. 验证软件版本和交换机设置是否正确后、复制 running-config 将文件保存到 startup-config 交换机S2上的文件。

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

    显示示例

    以下示例显示了已成功将 running-config 文件复制到 starstartup-config 文件:

    S2# copy running-config startup-config
    [########################################] 100% Copy complete.

第3步:将NX-OS映像复制到Cisco交换机S2并重新启动

  1. 将NX-OS映像复制到交换机S2。

    显示示例
    S2# copy sftp: bootflash: vrf management
    Enter source filename: /code/nxos.9.3.4.bin
    Enter hostname for the sftp server: 172.19.2.1
    Enter username: user1
    
    Outbound-ReKey for 172.19.2.1:22
    Inbound-ReKey for 172.19.2.1:22
    user1@172.19.2.1's password:
    sftp> progress
    Progress meter enabled
    sftp> get   /code/nxos.9.3.4.bin  /bootflash/nxos.9.3.4.bin
    /code/nxos.9.3.4.bin  100% 1261MB   9.3MB/s   02:15
    sftp> exit
    Copy complete, now saving to disk (please wait)...
    Copy complete.
    
    cs2# copy sftp: bootflash: vrf management
    Enter source filename: /code/n9000-epld.9.3.4.img
    Enter hostname for the sftp server: 172.19.2.1
    Enter username: user1
    
    Outbound-ReKey for 172.19.2.1:22
    Inbound-ReKey for 172.19.2.1:22
    user1@172.19.2.1's password:
    sftp> progress
    Progress meter enabled
    sftp> get   /code/n9000-epld.9.3.4.img  /bootflash/n9000-epld.9.3.4.img
    /code/n9000-epld.9.3.4.img  100%  161MB   9.5MB/s   00:16
    sftp> exit
    Copy complete, now saving to disk (please wait)...
    Copy complete.
  2. 安装系统映像,以便在下次重新启动交换机 S2 时加载新版本。

    交换机将在 10 秒后重新启动,并显示新映像,如以下输出所示:

    显示示例
    S2# install all nxos bootflash:nxos.9.3.4.bin
    Installer will perform compatibility check first. Please wait.
    Installer is forced disruptive
    
    Verifying image bootflash:/nxos.9.3.4.bin for boot variable "nxos".
    [] 100% -- SUCCESS
    
    Verifying image type.
    [] 100% -- SUCCESS
    
    Preparing "nxos" version info using image bootflash:/nxos.9.3.4.bin.
    [] 100% -- SUCCESS
    
    Preparing "bios" version info using image bootflash:/nxos.9.3.4.bin.
    [] 100% -- SUCCESS
    
    Performing module support checks.
    [] 100% -- SUCCESS
    
    Notifying services about system upgrade.
    [] 100% -- SUCCESS
    
    
    Compatibility check is done:
    Module  bootable          Impact  Install-type  Reason
    ------  --------  --------------  ------------  ------
         1       yes      disruptive         reset  default upgrade is not hitless
    
    
    Images will be upgraded according to following table:
    Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
    ------  ----------  ----------------------------------------  --------------------  ------------
         1        nxos                                    9.3(3)                9.3(4)           yes
         1        bios     v08.37(01/28/2020):v08.23(09/23/2015)    v08.38(05/29/2020)            no
    
    
    Switch will be reloaded for disruptive upgrade.
    Do you want to continue with the installation (y/n)?  [n] y
    input string too long
    Do you want to continue with the installation (y/n)?  [n] y
    
    Install is in progress, please wait.
    
    Performing runtime checks.
    [] 100% -- SUCCESS
    
    Setting boot variables.
    [] 100% -- SUCCESS
    
    Performing configuration copy.
    [] 100% -- SUCCESS
    
    Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
    Warning: please do not remove or power off the module at this time.
    [] 100% -- SUCCESS
    
    
    Finishing the upgrade, switch will reboot in 10 seconds.
    S2#
  3. 保存配置。

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

    系统将提示您重新启动系统。

    显示示例
    S2# copy running-config startup-config
    [] 100% Copy complete.
    S2# reload
    This command will reboot the system. (y/n)?  [n] y
  4. 确认交换机上已有新的 NX-OS 版本号:

    显示示例
    S2# show version
    Cisco Nexus Operating System (NX-OS) Software
    TAC support: http://www.cisco.com/tac
    Copyright (C) 2002-2020, Cisco and/or its affiliates.
    All rights reserved.
    The copyrights to certain works contained in this software are
    owned by other third parties and used and distributed under their own
    licenses, such as open source.  This software is provided "as is," and unless
    otherwise stated, there is no warranty, express or implied, including but not
    limited to warranties of merchantability and fitness for a particular purpose.
    Certain components of this software are licensed under
    the GNU General Public License (GPL) version 2.0 or
    GNU General Public License (GPL) version 3.0  or the GNU
    Lesser General Public License (LGPL) Version 2.1 or
    Lesser General Public License (LGPL) Version 2.0.
    A copy of each such license is available at
    http://www.opensource.org/licenses/gpl-2.0.php and
    http://opensource.org/licenses/gpl-3.0.html and
    http://www.opensource.org/licenses/lgpl-2.1.php and
    http://www.gnu.org/licenses/old-licenses/library.txt.
    
    Software
      BIOS: version 08.38
     NXOS: version 9.3(4)
      BIOS compile time:  05/29/2020
      NXOS image file is: bootflash:///nxos.9.3.4.bin
      NXOS compile time:  4/28/2020 21:00:00 [04/29/2020 02:28:31]
    
    
    Hardware
      cisco Nexus3000 C3232C Chassis (Nexus 9000 Series)
      Intel(R) Xeon(R) CPU E5-2403 v2 @ 1.80GHz with 8154432 kB of memory.
      Processor Board ID FOC20291J6K
    
      Device name: S2
      bootflash:   53298520 kB
    Kernel uptime is 0 day(s), 0 hour(s), 3 minute(s), 42 second(s)
    
    Last reset at 157524 usecs after Mon Nov  2 18:32:06 2020
      Reason: Reset due to upgrade
      System version: 9.3(3)
      Service:
    
    plugin
      Core Plugin, Ethernet Plugin
    
    Active Package(s):
    
    S2#

第4步:重新检查交换机和端口的运行状况

  1. 重新启动后、重新检查存储交换机是否可用:

    system switch ethernet show

    显示示例
    storage::*> system switch ethernet show
    Switch                      Type               Address          Model
    --------------------------- ------------------ ---------------- ---------------
    S1
                                storage-network    172.17.227.5     NX3232C
         Serial Number: FOC221206C2
          Is Monitored: true
                Reason: None
      Software Version: Cisco Nexus Operating System (NX-OS) Software, Version
                        9.3(4)
        Version Source: CDP
    
    S2
                                storage-network    172.17.227.6    NX3232C
         Serial Number: FOC220443LZ
          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.
    storage::*>
  2. 重新启动后、验证交换机端口是否运行正常且正常运行:

    storage port show -port-type ENET

    显示示例
    storage::*> storage port show -port-type ENET
                                          Speed                       VLAN
    Node               Port Type  Mode    (Gb/s) State    Status        ID
    ------------------ ---- ----- ------- ------ -------- ----------- ----
    node1
                       e3a  ENET  storage    100 enabled  online        30
                       e3b  ENET  storage      0 enabled  offline       30
                       e7a  ENET  storage      0 enabled  offline       30
                       e7b  ENET  storage    100 enabled  online        30
    node2
                       e3a  ENET  storage    100 enabled  online        30
                       e3b  ENET  storage      0 enabled  offline       30
                       e7a  ENET  storage      0 enabled  offline       30
                       e7b  ENET  storage    100 enabled  online        30
  3. 重新检查集群是否没有存储交换机或布线问题:

    system health alert show -instance

    显示示例
    storage::*> system health alert show -instance
    There are no entries matching your query.
  4. 重复执行操作步骤 以升级交换机 S1 上的 NX-OS 软件和 RCF 。

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

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