Cisco Nexus Switch Stuck in Loader
It seems the bootflash is corrupted. I have tried other images. But I got the same error.
loader> help
? Print the command list
boot Boot image
dir List file contents on a device
displaymem display MBI memory and other debug info
efishell launch efishell
eobc Booting image from active sup via EOBC channel
help Print the command list or the specific command usage
iofpga read/write iofpga register
ip Setting IP address or gateway address
keyinfo Command to remove development key.
pmfpga read/write pmfpga register
reboot Reboot the system
serial Serial console setting
set Set network configuration
show Show loader configuration
loader> dir
bootflash::
lost+found
……
virtual-instance-stby-sync
virtual-instance
n7700-s3-kickstart.8.4.8.bin
n7700-s3-dk9.8.4.8.bin
n7700-s3-kickstart.8.4.6a.bin
n7700-s3-dk9.8.4.6a.bin
n7700-s3-dk9.8.4.9.bin
n7700-s3-kickstart.8.4.9.bin
loader> boot bootflash:n7700-s3-dk9.8.4.9.bin
Booting bootflash:n7700-s3-dk9.8.4.9.bin
Trying diskboot
Filesystem type is ext2fs, partition type 0x83
Bad NBI magic. Expected 1b031336 got 4e530164
Boot failed
Error 9: Unknown boot failure
I meet the same issue. When the image is OK, I have the following log.
loader> boot bootflash:/n6000-uk9-kickstart.7.3.13.N1.1.bin
Booting kickstart image: bootflash:/n6000-uk9-kickstart.7.3.13.N1.1.bin
…………………………………………………………………….
……………………..Image verification OK
Booting kernel
IT: [ 13.744392] val:4, count7 .
[ 13.777618] TCO_TMR val:1023, SMI_EN= 0x42033 NMI_STS_CNT_REG = 0x2d count7 .
devmemfd:0x7f87fde8
phys->virt: 0x7f87fd2c7f87fde8–>0x0
devmemfd:0x7f87fe28
phys->virt: 0xa44000087f87fe28–>0x0
devmemfd:0x7f87fe28
phys->virt: 0xa44000087f87fe28–>0x0
devmemfd:0x7f87fe28
phys->virt: 0xa44000087f87fe28–>0x0
Starting system POST…..
P(0x3102) board
Executing Mod 1 1 SEEPROM Test:
…done (0 sec, 175 msec, 932 usec)
Executing Mod 1 1 GigE Port Test:
….done (16 sec, 85 msec, 593 usec)
Executing Mod 1 1 PCIE Test:
……..done (0 sec, 1 msec, 221 usec)
Mod 1 1 Post Completed Successfully
POST is completed
can’t create lock file /var/lock/mtab~308: No such file or directory (use -n flag to override)
nohup: redirecting stderr to stdout
Executing /etc/rc.d/rcS.d/S07firmware-upgrade-eusb
autoneg unmodified, ignoring
autoneg unmodified, ignoring
Checking all filesystems….. done.
Loading system software
No system image
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2023, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
switch(boot)#
It goes into boot mode. However, I write erase and reboot the switch. It goes into loader again. I boot from the kickstart and it goes back to boot mode.
loader> boot bootflash:/n6000-uk9-kickstart.7.3.13.N1.1.bin
Booting kickstart image: bootflash:/n6000-uk9-kickstart.7.3.13.N1.1.bin
…………………………………………………………………….
……………………..Image verification OK
Booting kernel
……
switch(boot)#
Load the correct image and switch is back up to normal.
switch(boot)# load bootflash:/n6000-uk9.7.3.13.N1.1.bin
Tue Mar 18 11:54:19 UTC 2025 BIGSUR SYNC getting started issu = 0
Uncompressing system image: bootflash:/n6000-uk9.7.3.13.N1.1.bin Tue Mar 18 11:54:29 UTC 2025
Load plugins that defined in image conf: /isan/plugin_img/img.conf
Loading plugin 0: core_plugin…
load_plugin: Can’t get exclude list from /isan/plugin/0/boot/etc/plugin_exclude.conf (rc 0x40ea0017)
Loading plugin 1: eth_plugin…
ethernet switching mode
INIT: Switching to runlevel: 3
INIT: Sending processes the TERM signal
INIT: (boot)#
touch: cannot touch `/var/lock/s
/isan/bin/muxif_config: fex vlan id: -f,4042
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 4042 to IF -:muxif:-
card index: 0x2b58
2025 Mar 18 11:55:06 %$ VDC-1 %$ %SYSLOG-2-SYSTEM_MSG : Syslogs wont be logged into logflash until logflash is online
2025 Mar 18 11:55:09 %$ VDC-1 %$ %KERN-0-SYSTEM_MSG: [ 13.744985] val:4, count7 . – kernel
2025 Mar 18 11:55:09 %$ VDC-1 %$ %KERN-0-SYSTEM_MSG: [ 13.778213] TCO_TMR val:1023, SMI_EN= 0x42033 NMI_STS_CNT_REG = 0x3d count7 . – kernel
2025 Mar 18 11:55:37 %$ VDC-1 %$ %USER-2-SYSTEM_MSG: CLIS: loading cmd files begin – clis
2025 Mar 18 11:55:49 %$ VDC-1 %$ %USER-2-SYSTEM_MSG: CLIS: loading cmd files end – clis
2025 Mar 18 11:55:49 %$ VDC-1 %$ %USER-2-SYSTEM_MSG: CLIS: init begin – clis
2025 Mar 18 11:55:49 %$ VDC-1 %$ %DAEMON-2-SYSTEM_MSG: <<%XMLMA-2-XMLMACRIT>> XML master agent: Starting sysmgr handshake. – xmlma[4478]
2025 Mar 18 11:55:49 %$ VDC-1 %$ %DAEMON-2-SYSTEM_MSG: <<%XMLMA-2-XMLMACRIT>> XML master agent: Done with sysmgr handshake. – xmlma[4478]
2025 Mar 18 11:56:33 %$ VDC-1 %$ %PFMA-2-PS_FAIL: Power supply 1 failed or shutdown(Serial number POG21488L5V)
System is coming up … Please wait …
System is coming up … Please wait …
System is coming up … Please wait …
System is coming up … Please wait …
System is coming up … Please wait …
System is coming up … Please wait …
2025 Mar 18 12:00:03 %$ VDC-1 %$ %VDC_MGR-2-VDC_ONLINE: vdc 1 has come online
System is coming up … Please wait …
Abort Power On Auto Provisioning and continue with normal setup ?(yes/no)[n]:
‘System no poap’ config enabled. Skipping POAP.
Reference: https://support.cloudmylab.com/kb/troubleshooting-boot-loader-prompt-for-nexus-9k