I'd like to add to
@tr33ks 's post that there may be additional config keys worth changing:
Code:
Name: /mfg/mfdb/switchx/system/local_mgmt_pn
Attrib: value
Type: string
Value: MSN2100-BB2F
Name: /mfg/mfdb/switchx/system/local_mgmt_sn
Attrib: value
Type: string
Value: MT1234X56789
Name: /mfg/mfdb/switchx/system/type
Attrib: value
Type: string
Value: MSN2100B
Another hint:
I got an Mellanox SN2700, but the Cumulus version. I wanted to use MLNX-OS on it, so I took the image from my SN2100 and flashed it to the SN2700 SSD, modified all the db stuff mentioned above and installed the SSD.
But: It did not boot and didn't even let me log in
One hint was the error
Code:
do_IRQ: 0.38 No irq handler for vector
Solution:
The BIOS version was ancient! Switch had BIOS from 03/08/2016 installed (Ver: 0ABZS017_01_01.213)
To update the BIOS, I had to change the grub command line to enable single user mode. For this, you need to mount the BOOTMGR partition, and edit
BOOTMGR/boot/grub2/grub.cfg
:
First,
remove / comment out the
Code:
set superusers="bootmgr"
password_pbkdf2 bootmgr grub.pbkdf2.sha512.10000.6B8FE34BDAE790140A879147E319B2241C5E5717DF927293FD812C74B13A684CB746B669786D6E8C78ACCE86FB002711DFAAD72860C6B268C629B1697AB233EF.D5290E4C6E4B40EAA1398A24AE151114EA1E262E0781AEE09BADCFE82F66DE0AA87EFDB3C712013F1C8B1699A31D43E5C3032B6EFAED8A334CD1E95D8D493685
we always want an unlocked GRUB.
Then, append
single
to the MLNX-OS cmdline, like
Code:
menuentry 'X86_64 3.10.2102 2022-05-03 02:34:20 x86_64 1' --class os --unrestricted {
set root=(hd0,4)
linux /vmlinuz ro root=/dev/sda6 fips=0 img_id=1 crashkernel=128M quiet loglevel=4 panic=10 console=tty0 console=ttyS0,115200n8 fsck.mode=force fsck.repair=yes single
}
Reinstall SSD in switch, boot, then do
Code:
/opt/tms/bin/bios_auto_update.sh
It will take one or two minutes
Output should look like
Code:
[admin@localhost root]# /opt/tms/bin/bios_auto_update.sh
bios_ivb.rom: OK
Jan 1 01:02:14 Current BIOS ver: 0ABZS017_01.01.213
Jan 1 01:02:14 BIOS will be updated to ver: 0ABZS017_02.02.004
BIOS update is being performed.
Please don't reboot or power-off the system.
Jan 1 01:03:14 BIOS /opt/tms/bin/bios_ivb.rom update success
Jan 1 01:03:14 BIOS update success.
You can then reboot with reboot now
Updated BIOS version should be
Code:
BIOS Date: 09/13/2018 12:00:00 Ver: 0ABZS017_02.02.004
And your MLNX-OS should work