No menu items!
No menu items!
More

    [Nexus] Hướng dẫn nâng cấp BIOS Nexus

    Thông thường khi bạn muốn nâng cấp os version của các thiết bị Nexus lên phiên bản cao hơn đồng nghĩa bạn phải upgrade luôn BIOS của nó. Ví dụ như Nxos version 7 thì BIOS bạn cần cũng phải ở phiên bản 4.0 trở lên.

    Bây giờ mình sẽ demo upgrade thiết bị Nexus 3064 có BIOS version 1.7.0 lên 2.6.0 như sau. Trước tiên hãy check version thiết bị trước khi upgrade.

    matbaoCA-sw01# show version
    Cisco Nexus Operating System (NX-OS) Software
    TAC support: http://www.cisco.com/tac
    Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_serie
    s_home.html
    Copyright (c) 2002-2016, Cisco Systems, Inc. All rights reserved.
    The copyrights to certain works contained herein are owned by
    other third parties and are used and distributed under license.
    Some parts of this software are covered under the GNU Public
    License. A copy of the license is available at
    http://www.gnu.org/licenses/gpl.html.
    
    Software
      BIOS:      version 1.7.0
      loader:    version N/A
      kickstart: version 6.0(2)U6(7)
      system:    version 6.0(2)U6(7)
      Power Sequencer Firmware:
                 Module 1: version v1.0
      SFP uC:    version 2.12
      BIOS compile time:       10/14/2013
      kickstart image file is: bootflash:///n3000-uk9-kickstart.6.0.2.U6.7.bin
      kickstart compile time:  7/28/2016 9:00:00 [07/28/2016 16:40:23]
      system image file is:    bootflash:///n3000-uk9.6.0.2.U6.7.bin
      system compile time:     7/28/2016 9:00:00 [07/28/2016 17:12:38]
    
    
    Hardware
      cisco Nexus 3064 Chassis ("48x10GE + 4x40G Supervisor")
      Intel(R) Celeron(R) CPU        P4505  @ 1.87GHz with 3665240 kB of memory.
      Processor Board ID FOC18340FJ7
    
      Device name: matbaoCA-sw01
      bootflash:    1966080 kB
    
    Kernel uptime is 0 day(s), 0 hour(s), 2 minute(s), 33 second(s)
    
    Last reset
      Reason: Unknown
      System version: 6.0(2)U6(7)
      Service:
    
    plugin
      Core Plugin, Ethernet Plugin

    Mình sử dụng usb để upgrade, usb của mình sẽ chép sẵn file image, kickstart. Hãy cắm usb vào thiết bị và show các file có trên usb bạn sẽ thấy đã có file image và kickstart.

    matbaoCA-sw01# dir usb1:
          65536    Nov 15 08:03:00 2022  .Spotlight-V100/
           4096    Nov 15 08:03:20 2022  ._n3000-uk9-kickstart.6.0.2.U6.3a.bin
           4096    Nov 15 08:03:42 2022  ._n3000-uk9.6.0.2.U6.3a.bin
          65536    Nov 15 08:03:00 2022  .fseventsd/
          65536    Nov 14 20:20:12 2022  System Volume Information/
       37853184    Nov 14 16:59:00 2022  n3000-uk9-kickstart.6.0.2.U6.3a.bin
      206762702    Nov 14 16:59:26 2022  n3000-uk9.6.0.2.U6.3a.bin
    
    Usage for usb1://sup-local
      250413056 bytes used
     4042129408 bytes free
     4292542464 bytes total

    Bạn có thể show các file trong bootflash, ở trong bootflash cũng có 2 file kickstart và image. Mình sẽ sử dụng lệnh copy 2 file này từ usb sang bootflash thay thế cho 2 file cũ.

    matbaoCA-sw01# dir bootflash:
           4096    Mar 07 07:01:45 2018  .patch/
              0    Oct 10 08:49:51 2022  20221010_084951_poap_3972_init.log
              0    Oct 11 05:51:44 2022  20221011_055144_poap_3937_init.log
              0    Nov 14 03:08:03 2022  20221114_030803_poap_3936_init.log
              0    Nov 14 08:22:17 2022  20221114_082217_poap_3936_init.log
              0    Nov 14 10:54:20 2022  20221114_105420_poap_3936_init.log
       37861376    Dec 21 12:35:13 2016  n3000-uk9-kickstart.6.0.2.U6.7.bin
      205813793    Dec 22 04:50:28 2016  n3000-uk9.6.0.2.U6.7.bin
           1024    Oct 10 08:48:50 2022  sprom_cstruct_2_0_0
           1024    Oct 10 08:49:24 2022  sprom_cstruct_3_0_0
           4096    Aug 18 15:21:43 2022  vdc_2/
           4096    Aug 18 15:21:43 2022  vdc_3/
           4096    Aug 18 15:21:43 2022  vdc_4/
           4096    Aug 18 15:21:46 2022  virtual-instance/
    
    Usage for bootflash://sup-local
      371863552 bytes used
     1481252864 bytes free
     1853116416 bytes total

    Sử dụng lệnh đưới để copy file kickstart.

    matbaoCA-sw01# copy usb1:/n3000-uk9-kickstart.6.0.2.U6.3a.bin bootflash:
    Copy progress 100% 37853KB
    Copy complete, now saving to disk (please wait)...

    Và lệnh này để copy file image.

    matbaoCA-sw01# copy usb1:/n3000-uk9.6.0.2.U6.3a.bin bootflash:
    Copy progress 100% 206762KB
    Copy complete, now saving to disk (please wait)...

    Sau khi copy xong bạn sẽ thấy có 2 file mới đó là n3000-uk9.6.0.2.U6.3a.bin và n3000-uk9-kickstart.6.0.2.U6.3a.bin trong bootflash.

    matbaoCA-sw01# dir bootflash:
           4096    Mar 07 07:01:45 2018  .patch/
              0    Oct 10 08:49:51 2022  20221010_084951_poap_3972_init.log
              0    Oct 11 05:51:44 2022  20221011_055144_poap_3937_init.log
              0    Nov 14 03:08:03 2022  20221114_030803_poap_3936_init.log
              0    Nov 14 08:22:17 2022  20221114_082217_poap_3936_init.log
              0    Nov 14 10:54:20 2022  20221114_105420_poap_3936_init.log
       37853184    Nov 15 00:53:24 2022  n3000-uk9-kickstart.6.0.2.U6.3a.bin
       37861376    Dec 21 12:35:13 2016  n3000-uk9-kickstart.6.0.2.U6.7.bin
      206762702    Nov 15 00:54:09 2022  n3000-uk9.6.0.2.U6.3a.bin
      205813793    Dec 22 04:50:28 2016  n3000-uk9.6.0.2.U6.7.bin
           1024    Oct 10 08:48:50 2022  sprom_cstruct_2_0_0
           1024    Oct 10 08:49:24 2022  sprom_cstruct_3_0_0
           4096    Aug 18 15:21:43 2022  vdc_2/
           4096    Aug 18 15:21:43 2022  vdc_3/
           4096    Aug 18 15:21:43 2022  vdc_4/
           4096    Aug 18 15:21:46 2022  virtual-instance/
    
    Usage for bootflash://sup-local
      616742912 bytes used
     1236373504 bytes free
     1853116416 bytes total

    Bây giờ bạn hãy sử dụng lệnh sau để tiến hành install BIOS và OS mới vào thiết bị.

    install all system <image_file> <kickstart_file>

    Chạy lệnh và chờ trong ít phút để quá trình cài đặt được hoàn thành, lưu ý không nên để mất nguồn đột ngột vì nó rất nhạy cảm dễ bị hỏng và không boot được nữa.

    matbaoCA-sw01# install all system n3000-uk9.6.0.2.U6.3a.bin kickstart n3000-uk9-kickstart.6.0.2.U6.3a.bin
    Installer is forced disruptive
    
    Verifying image bootflash:/n3000-uk9-kickstart.6.0.2.U6.3a.bin for boot variable "kickstart".
    [########################################] 100% -- SUCCESS
    
    Verifying image bootflash:/n3000-uk9.6.0.2.U6.3a.bin for boot variable "system".
    [########################################] 100% -- SUCCESS
    
    Verifying image type.
    [########################################] 100% -- SUCCESS
    
    Extracting "system" version from image bootflash:/n3000-uk9.6.0.2.U6.3a.bin.
    [########################################] 100% -- SUCCESS
    
    Extracting "kickstart" version from image bootflash:/n3000-uk9-kickstart.6.0.2.U6.3a.bin.
    [########################################] 100% -- SUCCESS
    
    Extracting "bios" version from image bootflash:/n3000-uk9.6.0.2.U6.3a.bin.
    [########################################] 100% -- SUCCESS
    
    Collecting "running" plugin(s) information.
    [########################################] 100% -- SUCCESS
    
    Collecting plugin(s) information from "new" image.
    [########################################] 100% -- SUCCESS
    
    Performing runtime checks.
    [########################################] 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  Forced by the user
    
    
    
    Images will be upgraded according to following table:
    Module             Image         Running-Version             New-Version  Upg-Required
    ------  ----------------  ----------------------  ----------------------  ------------
         1            system             6.0(2)U6(7)            6.0(2)U6(3a)           yes
         1         kickstart             6.0(2)U6(7)            6.0(2)U6(3a)           yes
         1              bios      v1.7.0(10/14/2013)      v2.6.0(08/06/2014)           yes
         1            SFP-uC                   v2.12                   v2.12            no
    
    
    Switch will be reloaded for disruptive upgrade.
    Do you want to continue with the installation (y/n)?  [n] y
    
    Time Stamp: Tue Nov 15 01:01:37 2022
    
    
    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/power-seq.
    Warning: please do not remove or power off the module at this time.
    Note: Power-seq upgrade needs a power-cycle to take into effect.
    On success of power-seq upgrade, SWITCH OFF THE POWER to the system and then, power it up.
    [########################################] 100% -- SUCCESS
    
    Converting startup config.
    [########################################] 100% -- SUCCESS
    
    Time Stamp: Tue Nov 15 01:07:44 2022
    
    
    Finishing the upgrade, switch will reboot in 10 seconds

    Như vậy là quá trình install BIOS và OS mới đã hoàn thành, thiết bị sẽ khởi động lại sau 10s. Sau khi khởi động xong bạn hãy login vào thiết bị và show boot nó lên, nếu cài đặt boot đang trống thì hãy thực hiện bước dưới. Trường hợp của mình cài đặt boot đang được cài đặt nên mình sẽ bỏ qua bước dưới.

    matbaoCA-sw01# show boot
    Current Boot Variables:
    
    
    kickstart variable = bootflash:/n3000-uk9-kickstart.6.0.2.U6.3a.bin
    system variable = bootflash:/n3000-uk9.6.0.2.U6.3a.bin
    Boot POAP Disabled
    
    Boot Variables on next reload:
    
    
    kickstart variable = bootflash:/n3000-uk9-kickstart.6.0.2.U6.3a.bin
    system variable = bootflash:/n3000-uk9.6.0.2.U6.3a.bin
    Boot POAP Disabled

    Nếu cài đặt boot đang trống thì hãy thực hiện bước này nhé.

    boot kickstart bootflash:/n3000-uk9-kickstart.6.0.2.U6.3a.bin
    boot system bootflash:/n3000-uk9.6.0.2.U6.3a.bin

    Bây giờ bạn hãy show version và chúng ta có kết quả.

    matbaoCA-sw01# sh version
    Cisco Nexus Operating System (NX-OS) Software
    TAC support: http://www.cisco.com/tac
    Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_serie
    s_home.html
    Copyright (c) 2002-2016, Cisco Systems, Inc. All rights reserved.
    The copyrights to certain works contained herein are owned by
    other third parties and are used and distributed under license.
    Some parts of this software are covered under the GNU Public
    License. A copy of the license is available at
    http://www.gnu.org/licenses/gpl.html.
    
    Software
      BIOS:      version 2.6.0
      loader:    version N/A
      kickstart: version 6.0(2)U6(3a)
      system:    version 6.0(2)U6(3a)
      Power Sequencer Firmware:
                 Module 1: version v1.0
      SFP uC:    version 2.12
      BIOS compile time:       08/06/2014
      kickstart image file is: bootflash:///n3000-uk9-kickstart.6.0.2.U6.3a.bin
      kickstart compile time:  2/14/2016 22:00:00 [02/15/2016 07:12:24]
      system image file is:    bootflash:///n3000-uk9.6.0.2.U6.3a.bin
      system compile time:     2/14/2016 22:00:00 [02/15/2016 07:39:42]
    
    
    Hardware
      cisco Nexus 3064 Chassis ("48x10GE + 4x40G Supervisor")
      Intel(R) Celeron(R) CPU        P450 with 3665240 kB of memory.
      Processor Board ID FOC18340FJ7
    
      Device name: matbaoCA-sw01
      bootflash:   30302208 kB
    
    Kernel uptime is 0 day(s), 0 hour(s), 32 minute(s), 29 second(s)
    
    Last reset at 820572 usecs after  Tue Nov 15 01:07:54 2022
    
      Reason: Disruptive upgrade
      System version: 6.0(2)U6(7)
      Service:
    
    plugin
      Core Plugin, Ethernet Plugin

    Sau khi hoàn thành hãy lưu lại config.

    StorageCA-SW01# copy running-config  startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...

    Bài viết gần đây

    spot_img

    Related Stories

    Leave A Reply

    Please enter your comment!
    Please enter your name here

    Đăng ký nhận thông tin bài viết qua email