升級Cisco Nexus 3232C 儲存交換機
請依照下列步驟升級Cisco Nexus 3232C 交換器上的Cisco NX-OS 軟體和參考設定檔 (RCF)。
審查要求
在升級儲存交換器上的 NX-OS 軟體和 RCF 之前,請確保滿足以下條件:
-
交換器功能完全正常(日誌中不應有任何錯誤或類似問題)。
-
如果您僅安裝 NX-OS 並保留目前的RCF 版本,則您已在 RCF 中檢查或設定了所需的啟動變量,以反映所需的啟動映像。
如果需要更改啟動變數以反映目前的啟動映像,則必須在重新應用 RCF 之前進行更改,以便在以後的重新啟動中實例化正確的版本。
-
您已參考了網站上提供的相應軟體和升級指南。 "CiscoNexus 3000 系列交換機"此頁麵包含有關Cisco儲存升級和降級程序的完整文件。
-
10 GbE 和 40/100 GbE 連接埠的數量在參考設定檔 (RCF) 中定義,該檔案可在以下位置取得: "Cisco®乙太網路交換機"頁。
更換開關
本流程中的範例使用以下開關和節點命名規則:
-
這兩個儲存交換器的名稱分別為 S1 和 S2。
-
節點分別為 node1 和 node2。
本流程中的範例使用了兩個節點;節點 1 有兩個儲存端口,節點 2 也有兩個儲存端口。參見"Hardware Universe"請確認您平台上的儲存連接埠是否正確。看 "安裝HWU中沒有的設備還需要哪些額外資訊?" 有關交換器安裝要求的詳細資訊。
|
|
流程需要同時使用ONTAP指令和Cisco Nexus 3000 系列交換器指令;除非另有說明,否則使用ONTAP指令。命令輸出可能因ONTAP版本不同而有所差異。 |
步驟 1:檢查交換器和連接埠的運作狀況
-
如果啟用了AutoSupport,則透過呼叫AutoSupport訊息來阻止自動建立案例:
system node autosupport invoke -node * -type all - message MAINT=xhx 是維護視窗的持續時間,單位為小時。
AutoSupport訊息會通知技術支援此維護任務,以便在維護視窗期間抑制自動建立案例。 -
檢查儲存開關是否可用:
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::*> -
確認節點連接埠運作正常:
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 -
檢查儲存交換器或線纜是否有問題:
system health alert show -instance顯示範例
storage::*> system health alert show -instance There are no entries matching your query.
步驟 2:將 RCF 複製到Cisco交換器 S2
-
使用下列傳輸協定之一將交換器 S2 上的 RCF 複製到交換器啟動快閃記憶體:FTP、HTTP、TFTP、SFTP 或 SCP。
有關Cisco命令的更多信息,請參閱 "Cisco Nexus 3000 系列 NX-OS 指令參考"。
顯示範例
以下範例展示如何使用 HTTP 將 RCF 檔案複製到交換器 S2 的啟動快閃記憶體中:
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# -
將先前下載的 RCF 檔案套用到啟動快閃記憶體:
copy bootflash:顯示範例
以下範例展示了 RCF 文件 `Nexus_3232C_RCF_v1.6-Storage.txt`正在交換器 S2 上安裝:
S2# copy Nexus_3232C_RCF_v1.6-Storage.txt running-config echo-commands
-
請確認 RCF 檔案是否為最新版本:
show running-config檢查輸出結果以驗證是否擁有正確的 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 指令失敗 訊息是正常的,可以忽略。 -
-
確認軟體版本和交換器設定正確後,複製以下內容: `running-config`文件到 `startup-config`文件位於交換器 S2 上。
有關Cisco命令的更多信息,請參閱 "Cisco Nexus 3000 系列 NX-OS 指令參考"。
顯示範例
以下範例展示了 `running-config`文件已成功複製到 `startup-config`文件:
S2# copy running-config startup-config [########################################] 100% Copy complete.
步驟 3:將 NX-OS 映像複製到Cisco交換器 S2 並重新啟動
-
複製 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.
-
安裝系統映像,以便下次交換器 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# -
儲存配置。
有關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
-
確認交換器上已更新為新的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:重新檢查交換器和連接埠的運作狀況
-
重新啟動後請再次檢查儲存交換器是否可用:
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::*> -
重新啟動後,請確認交換器連接埠運作正常:
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 -
再次檢查叢集是否有儲存交換器或線纜問題:
system health alert show -instance顯示範例
storage::*> system health alert show -instance There are no entries matching your query.
-
重複上述步驟,升級交換器 S1 上的 NX-OS 軟體和 RCF。
-
如果您已停用自動建立案例功能,請透過呼叫AutoSupport訊息重新啟用該功能:
system node autosupport invoke -node * -type all -message MAINT=END