Global Leader in Turnkey, Integration, Supply Chain, Field Deployment & Support Services.

Get Instant Help - Anytime, Anywhere

Using Our Online Customer Support Portal

  • Premium Support Packages
  • Reduce Time to Market
  • 24 x 7 Premium Email/Phone Support

 Knowledgebase
Knowledgebase: Network Infrastructure
Upgrade Mellanox switches from a USB drive
Posted by on 24 June 2015 06:23 AM

By Robert Keith

To upgrade the Mellanox switches from a USB drive is similar to upgrading from a server but the patch to the USB is not obvious.

Once the image file is downloaded, simply copy this file to a USB drive to the top level folder and plug the USB drive into the USB port on the switch.
The USB drive will be automatically mounted and available to the Mellanox OS.

The upgrade process in summary is:

  1. Review the current image version
    • Type:  enable
    • Type:  show image
  2. Copy the image from the USB drive to the switch
    • Type:  image fetch <path to image on USB drive>
    • Example:  image fetch scp://admin@172.101.1.6/var/mnt/usb1/image-PPC_M460EX-3.4.1120.img
    • Note:  Since this example uses SCP, the USB may be located on a different switch than the one being updated
  3. Check that the image is on the switch
    • Type:  show Image
  4. Delete the old image
    • Type:  delete image <image file>
    • Note:  On new switches, only a single image may be loaded and this step unnecessary
    • Example   delete image  image-PPC_M460EX-3.3.5550.img
  5. Install the Image onto the switch OS
    • Type:  image install <image_name>
    • Example:   image install image-PPC_M460EX-3.4.1120.img
  6. Update the boot sequence to boot the new image
    • Type:  config term
    • Type:  image boot next
  7. Save the updated running configuration to permanent storage
    • Type:  config write
  8. Reboot the switch to boot the new image
    • Type:  reload
  9. Show the new version is active
    • Type:   show version

Below is the same commands with sample outputs:

IP1-SW2 [my-vip-IP1: master] > enable


IP1-SW2 [my-vip-IP1: master] # show image
Installed images:

Partition 1:
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Partition 2:
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Last boot partition: 1
Next boot partition: 1

Images available to be installed:

webimage.tbz
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Serve image files via HTTP/HTTPS: no

No image install currently in progress.

Boot manager password is set.

Image signing: trusted signature always required
Admin require signed images: yes

Settings for next boot only:
Fallback reboot on configuration failure: yes (default)

IP1-SW2 [my-vip-IP1: master] # image fetch scp://admin@172.101.1.6/var/mnt/usb1/image-PPC_M460EX-3.4.1120.img
Password (if required): *****
100.0% [#################################################################]
IP1-SW2 [my-vip-IP1: master] #


IP1-SW2 [my-vip-IP1: master] # show image
Installed images:

Partition 1:
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Partition 2:
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Last boot partition: 1

Next boot partition: 1

Images available to be installed:

image-PPC_M460EX-3.4.1120.img
PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

webimage.tbz
SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Serve image files via HTTP/HTTPS: no

No image install currently in progress.

Boot manager password is set.

Image signing: trusted signature always required
Admin require signed images: yes

Settings for next boot only:
Fallback reboot on configuration failure: yes (default)


image delete <old image>


mage install <image_name>

IP1-SW5 [my-vip-IP2: unknown] #
IP1-SW5 [my-vip-IP2: unknown] # image install image-PPC_M460EX-3.4.1120.img
Step 1 of 4: Verify Image
100.0% [#################################################################]
Step 2 of 4: Uncompress Image
100.0% [#################################################################]
Step 3 of 4: Create Filesystems
100.0% [#################################################################]
Step 4 of 4: Extract Image
100.0% [#################################################################]
IP1-SW5 [my-vip-IP2: unknown] #


image boot next

IP1-SW5 [my-vip-IP2: unknown] # config term
IP1-SW5 [my-vip-IP2: unknown] (config) # image boot next
IP1-SW5 [my-vip-IP2: unknown] (config) #


show images

IP1-SW5 [my-vip-IP2: unknown] #
IP1-SW5 [my-vip-IP2: unknown] # show image
Installed images:

  Partition 1:
  SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

  Partition 2:
  PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

Last boot partition: 1
Next boot partition: 1

Images available to be installed:

  image-PPC_M460EX-3.4.1120.img
  PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

  webimage.tbz
  SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Serve image files via HTTP/HTTPS: no

No image install currently in progress.

Boot manager password is set.

Image signing: trusted signature always required
Admin require signed images: yes

Settings for next boot only:
  Fallback reboot on configuration failure: yes (default)
IP1-SW5 [my-vip-IP2: unknown] #


configuration write

IP1-SW5 [my-vip-IP2: unknown] (config) # config write
IP1-SW5 [my-vip-IP2: unknown] (config) #

reload

 After reboot, Show Image:

IP1-SW5 [my-vip-IP2: standby] # show image
Installed images:

  Partition 1:
  SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

  Partition 2:
  PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

Last boot partition: 2
Next boot partition: 2

Images available to be installed:

  image-PPC_M460EX-3.4.1120.img
  PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

 webimage.tbz
 SX_PPC_M460EX SX_3.3.5006 2014-05-20 12:19:44 ppc

Serve image files via HTTP/HTTPS: no

No image install currently in progress.

Boot manager password is set.

Image signing: trusted signature always required
Admin require signed images: yes

Settings for next boot only:
  Fallback reboot on configuration failure: yes (default)
IP1-SW5 [my-vip-IP2: standby] #

show version

IP1-SW5 [my-vip-IP2: standby] # show version
Product name: MLNX-OS
Product release: 3.4.1120
Build ID: #1-dev
Build date: 2015-03-19 21:11:29
Target arch: ppc
Target hw: m460ex
Built by: jenkins@fit181
Version summary: PPC_M460EX 3.4.1120 2015-03-19 21:11:29 ppc

Product model: ppc
Host ID: 0002C9641B7C

Uptime: 20m 59.940s
CPU load averages: 1.26 / 1.47 / 1.47
Number of CPUs: 1
System memory: 719 MB used / 1308 MB free / 2027 MB total
Swap: 0 MB used / 0 MB free / 0 MB total
IP1-SW5 [my-vip-IP2: standby] #
(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: