命令行方式升级 MLNX-OS
要升级 MLNX-OS,请执行以下步骤。
- Enter Config mode.
switch > enable switch # configure terminal switch (config) #
- Display the currently available image (.img file).
switch (config) # show images Installed images: Partition 1: X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 Partition 2: X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 Last boot partition: 1 Next boot partition: 1 Images available to be installed: webimage.tbz X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 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)
- Delete the image listed under “Images available to be installed” prior to fetching the new image. Use the command “image delete” for this purpose.
switch (config) # image delete webimage.tbz
- Fetch the new software image.
switch (config) # image fetch scp://root@192.168.1.10/root/image-X86_64-3.9.1906.img Password (if required): ****** 100.0%[##############################################]
- Display the available images again and verify that the new image now appears under “Images available to be installed”.
switch (config) # show images Installed images: Partition 1: X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 Partition 2: X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 Last boot partition: 1 Next boot partition: 1 Images available to be installed: webimage.tbz X86_64 3.9.1906 2020-11-01 x86_64 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)
- Install the new image.
switch (config) # image install webimage.tbz 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% [#############################################################]
- Have the new image activate during the next boot.
switch (config) # image boot next
- Run “show images” to review your images.
switch (config) # show images Installed images: Partition 1: X86_64 3.8.2102 2019-11-26 21:48:40 x86_64 Partition 2: X86_64 3.9.1906 2020-11-01 21:48:40 x86_64 Last boot partition: 1 Next boot partition: 2 Images available to be installed: webimage.tbz X86_64 3.9.1906 2020-11-01 21:48:40 x86_64 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)
- Save current configuration.
switch (config) # configuration write
- Reboot to run the new image.
switch (config) # reload Configuration has been modified; save first? [yes] yes Configuration changes saved. Rebooting...
web方式升级IB交换机
