升級Cisco Nexus 3232C儲存交換器
請依照下列步驟升級Cisco Nexus 3232C交換器上的Cisco NX-OS軟體和參考組態檔(RCF)。
檢閱要求
在升級儲存交換器上的NX-OS軟體和RCFs之前、請先確認下列情況:
-
交換器完全正常運作(記錄中不應有錯誤或類似問題)。
-
如果您只安裝NX-OS並保留目前的RCF版本、則已在RCF中檢查或設定所需的開機變數、以反映所需的開機映像。
如果您需要變更開機變數以反映目前的開機映像、則必須在重新套用RCF之前執行此動作、以便在未來重新開機時產生正確的版本。
-
您已參閱上提供的適當軟體與升級指南 "Cisco Nexus 3000系列交換器" 頁面以取得Cisco儲存設備升級與降級程序的完整文件。
-
10 GbE和40/100 GbE連接埠的數量是在上可用的參考組態檔(RCFs)中定義 "Cisco®乙太網路交換器" 頁面。
更換交換器
本程序中的範例使用下列交換器和節點命名法:
-
這兩個儲存交換器的名稱分別為S1和S2。
-
節點是node1和node2。
本程序中的範例使用兩個節點:節點1具有兩個儲存連接埠、節點2則有兩個儲存連接埠。請參閱 "Hardware Universe" 驗證平台上的儲存連接埠是否正確。
此程序需要同時使用ONTAP 支援指令和Cisco Nexus 3000系列交換器的命令;ONTAP 除非另有說明、否則會使用支援指令。命令輸出可能會因ONTAP 不同版本的不相同而有所差異。 |
步驟1:檢查交換器和連接埠的健全狀況
-
如果啟用了「支援」功能、請叫用下列消息來禁止自動建立個案AutoSupport AutoSupport :
system node autosupport invoke -node * -type all - message MAINT=xh
_x_是維護時段的持續時間(以小時為單位)。
此資訊可通知技術支援人員執行此維護工作、以便在維護期間抑制自動建立案例。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::*>
-
驗證節點連接埠是否正常運作:
「torage 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複製到交換器bootflash:FTP、HTTP、TFTP、SFTP或scp。
如需Cisco命令的詳細資訊、請參閱中的適當指南 "Cisco Nexus 3000系列NX-OS命令參考資料"。
顯示範例
以下範例顯示HTTP用於將RCF複製到交換器S2上的bootflash:
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套用至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
-
確認RCF檔案為正確的更新版本:
「如何執行設定」
當您檢查輸出以確認您擁有正確的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命令參考資料"。
顯示範例
以下範例顯示「執行組態」檔案已成功複製到「儲存組態」檔案:
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::*>
-
確認交換器連接埠在重新開機後正常運作:
「torage 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 下列訊息來重新啟用:
「系統節點AutoSupport 不完整地叫用節點*-type all -most MAn=end」