Skip to main content
Cluster and storage switches
La versione in lingua italiana fornita proviene da una traduzione automatica. Per eventuali incoerenze, fare riferimento alla versione in lingua inglese.

Aggiorna uno switch di storage Cisco Nexus 3232C

Collaboratori

Seguire questa procedura per aggiornare il software Cisco NX-OS e i file di configurazione di riferimento (RCF) sugli switch Cisco Nexus 3232C.

Verifica dei requisiti

Di cosa hai bisogno

Prima di aggiornare il software NX-OS e gli RCF sullo switch storage, assicurarsi che sussistano le seguenti condizioni:

  • Lo switch funziona correttamente (non devono essere presenti errori nei registri o problemi simili).

  • Le variabili di boot desiderate sono state selezionate o impostate in RCF per riflettere le immagini di boot desiderate se si sta installando solo NX-OS e mantenendo la versione corrente di RCF.

    Se è necessario modificare le variabili di boot per riflettere le immagini di boot correnti, è necessario farlo prima di riapplicare RCF in modo che venga creata un'istanza della versione corretta in caso di riavvio futuro.

  • Hai fatto riferimento alle guide all'aggiornamento e al software appropriate disponibili sul "Switch Cisco Nexus serie 3000" Pagina per la documentazione completa sulle procedure di upgrade e downgrade dello storage Cisco.

  • Il numero di porte 10 GbE e 40/100 GbE è definito nei file di configurazione di riferimento (RCF) disponibili su "Switch Ethernet Cisco®" pagina.

Sostituire lo switch

A proposito degli esempi

Gli esempi di questa procedura utilizzano la seguente nomenclatura di switch e nodi:

  • I nomi dei due switch di storage sono S1 e S2.

  • I nodi sono node1 e node2.

Gli esempi di questa procedura utilizzano due nodi; node1 con due porte di storage e node2 con due porte di storage. Vedere "Hardware Universe" per verificare le porte di storage corrette sulle piattaforme.

Nota La procedura richiede l'utilizzo di entrambi i comandi ONTAP e Cisco Nexus 3000 Series Switches; i comandi ONTAP vengono utilizzati se non diversamente indicato. Gli output dei comandi possono variare a seconda delle diverse versioni di ONTAP.

Fase 1: Controllare lo stato di salute di switch e porte

  1. Se AutoSupport è attivato, eliminare la creazione automatica del caso richiamando un messaggio AutoSupport: system node autosupport invoke -node * -type all - message MAINT=xh

    x è la durata della finestra di manutenzione in ore.

    Nota Il messaggio AutoSupport informa il supporto tecnico di questa attività di manutenzione in modo che la creazione automatica del caso venga soppressa durante la finestra di manutenzione.
  2. Verificare che gli switch storage siano disponibili:

    system switch ethernet show

    Mostra esempio
    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. Verificare che le porte dei nodi siano funzionanti e funzionanti:

    storage port show -port-type ENET

    Mostra esempio
    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. Verificare che non vi siano problemi relativi allo switch di storage o al cablaggio:

    system health alert show -instance

    Mostra esempio
    storage::*> system health alert show -instance
    There are no entries matching your query.

Fase 2: Copiare l'RCF sullo switch Cisco S2

  1. Copiare l'RCF sullo switch S2 nella flash di avvio dello switch utilizzando uno dei seguenti protocolli di trasferimento: FTP, HTTP, TFTP, SFTP o SCP.

    Per ulteriori informazioni sui comandi Cisco, consultare la guida appropriata in "Cisco Nexus 3000 Series NX-OS Command References".

    Mostra esempio

    Nell'esempio seguente viene illustrato l'utilizzo di HTTP per copiare un RCF nella flash di avvio sullo switch 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#
  2. Applicare l'RCF precedentemente scaricato al bootflash:

    copy bootflash:

    Mostra esempio

    L'esempio seguente mostra il file RCF Nexus_3232C_RCF_v1.6-Storage.txt In fase di installazione sullo switch S2:

    S2# copy Nexus_3232C_RCF_v1.6-Storage.txt running-config echo-commands
  3. Verificare che il file RCF sia la versione più recente corretta:

    show running-config

    Quando si controlla l'output per verificare che l'RCF sia corretto, assicurarsi che le seguenti informazioni siano corrette:

    • Il banner RCF

    • Le impostazioni di nodo e porta

    • Personalizzazioni

      L'output varia in base alla configurazione del sito. Controllare le impostazioni della porta e fare riferimento alle note di rilascio per eventuali modifiche specifiche all'RCF installato.

    Nota

    Nell'output di intestazione da show banner motd Per verificare la corretta configurazione e il corretto funzionamento dello switch, leggere e seguire le istruzioni della sezione NOTE IMPORTANTI.

    + .Mostra esempio

    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#

    +

    Nota Quando si applica RCF per la prima volta, il messaggio ERROR: Failed to write VSH comands (ERRORE: Impossibile scrivere i comandi VSH) è previsto e può essere ignorato.
  4. Dopo aver verificato che le versioni software e le impostazioni dello switch siano corrette, copiare running-config sul startup-config File sullo switch S2.

    Per ulteriori informazioni sui comandi Cisco, consultare la guida appropriata in "Cisco Nexus 3000 Series NX-OS Command References".

    Mostra esempio

    Nell'esempio riportato di seguito viene illustrato il running-config il file è stato copiato correttamente in startup-config file:

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

Fase 3: Copiare l'immagine NX-OS sullo switch Cisco S2 e riavviare

  1. Copiare l'immagine NX-OS sullo switch S2.

    Mostra esempio
    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. Installare l'immagine di sistema in modo che la nuova versione venga caricata al successivo riavvio dello switch S2.

    Lo switch verrà riavviato in 10 secondi con la nuova immagine, come mostrato nel seguente output:

    Mostra esempio
    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. Salvare la configurazione.

    Per ulteriori informazioni sui comandi Cisco, consultare la guida appropriata in "Cisco Nexus 3000 Series NX-OS Command References".

    Viene richiesto di riavviare il sistema.

    Mostra esempio
    S2# copy running-config startup-config
    [] 100% Copy complete.
    S2# reload
    This command will reboot the system. (y/n)?  [n] y
  4. Verificare che il nuovo numero di versione del sistema operativo NX sia presente sullo switch:

    Mostra esempio
    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#

Fase 4: Controllare nuovamente lo stato di salute di switch e porte

  1. Controllare nuovamente che gli switch di storage siano disponibili dopo il riavvio:

    system switch ethernet show

    Mostra esempio
    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. Verificare che le porte dello switch siano funzionanti e funzionanti dopo il riavvio:

    storage port show -port-type ENET

    Mostra esempio
    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. Controllare nuovamente che non vi siano problemi relativi allo switch di storage o al cablaggio del cluster:

    system health alert show -instance

    Mostra esempio
    storage::*> system health alert show -instance
    There are no entries matching your query.
  4. Ripetere la procedura per aggiornare il software NX-OS e RCF sullo switch S1.

  5. Se è stata eliminata la creazione automatica del caso, riattivarla richiamando un messaggio AutoSupport:

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