Maybe useful for someone else - some things about mgmt vrf were not literally same as in docs, I followed these steps:
Preparation:
Download recovery and upgrade from
1.73 GB folder on MEGA
Extract the downloaded Mellanox.zip
Files are now in Mellanox/ dir
Rename the upgrade image from .zip to .img:
Code:
mv Mellanox/Upgrade/3.10.4206/onyx-X86_64-3.10.4206.zip \
Mellanox/Upgrade/3.10.4206/onyx-X86_64-3.10.4206.img
Download ONIE, two versions are available - see doc Mellanox/SSDReplacementWithONIENOSInstall.pdf page 7:
* 115200 bps:
onie-recovery-x86_64-mlnx_x86-r0.iso | Powered by Box
* 9600 bps:
https://mellanox.box.com/s/dtydz931fa7l6t6ndtn00j43xrron3ck
(click download)
Seeing now that ONIE is also available in the Mellanox.zip file
Write the ONIE iso to USB stick:
Code:
sudo dd if=onie-recovery-x86_64-mlnx_x86-r0.iso of=/dev/sdx bs=1M
sudo sync
Replace the SSD in the switch - I used the following: Transcend TS128GMSA452T2
--
Recovery procedure:
Documented in Mellanox/SSDReplacementWithONIENOSInstall.pdf
Make sure serial and ethernet (mgmt) are connected - I'm using DHCP.
Put USB stick in switch and turn it on, during boot, press CTRL-B, when asked for password, enter "admin"
In BIOS, go to right most tab named "Save & Exit" and select your USB drive under "Boot Override" - do NOT choose the UEFI variant.
In following GRUB menu choose "ONIE: Embed ONIE".
After ONIE is installed, the switch reboots.
Remove USB drive.
In GRUB choose "ONIE: Install OS".
After it boots press enter, then - in order to stop auto-discovery - type:
You should have networking, ping your gateway.
Now scp the recovery image onto the switch into /tmp:
Code:
scp user@workstation:~/Mellanox/Recovery/3.9.3202/X86_64-3.9.3202-installer.bin /tmp
Install the image:
Code:
onie-nos-install /tmp/X86_64-3.9.3202-installer.bin
After that is done, the switch boots from partition 1 containing the new 3.9.3202 software.
Login with user admin pass admin.
I chose following options:
* Use the wizard: yes
* Hostname, default <enter>
* Use DHCP, default yes <enter>
* Enable IPv6, default yes <enter>
* Enable IPv6 SLAAC on mgmt0, default no <enter>
* Enable IPv6 DHCPv6 on mgmt0, default yes <enter>
* Update time <enter>
* Enable password hardening, type "no"
* Type admin password: admin
* Confirm admin password: admin
* Type monitor password: monitor
* Confirm monitor password: monitor
* press <enter> again to confirm config
--
Upgrade procedure:
Mostly taken from here:
https://enterprise-support.nvidia.c...switch-os-software-on-mellanox-switch-systems
You're booted in Onyx 3.9.3202.
Check network, ping your gateway:
Steps to upgrade:
Code:
enable
configure terminal
image fetch vrf mgmt scp://user:pass@workstation/dir/to/Mellanox/Upgrade/3.10.4206/onyx-X86_64-3.10.4206.img
image install onyx-X86_64-3.10.4206.img
image boot next
configuration write
reload
System now reboots -- it chooses the 2nd option (partition) in Grub for booting by default, let it continue
System further upgrades during boot
Login
Code:
switch [standalone: master] > show version
Product name: Onyx
Product release: 3.10.4206
Build ID: #1-dev
Build date: 2023-03-08 19:11:42
Target arch: x86_64
Target hw: x86_64
Built by: sw-r2d2-bot@8503df9ba338
Version summary: X86_64 3.10.4206 2023-03-08 19:11:42 x86_64
Product model: x86onie
Host ID: ************
System serial num: ************
System UUID: ********-****-****-****-************
Uptime: 2m 15.120s
CPU load averages: 1.05 / 0.40 / 0.15
Number of CPUs: 4
System memory: 2574 MB used / 5229 MB free / 7803 MB total
Swap: 0 MB used / 0 MB free / 0 MB total
Done!