Recover a Cisco MDS Switch Stuck at the loader> Prompt

A Cisco MDS switch that stops at loader> cannot find a valid kickstart image. The kickstart image may be missing, corrupted, or the wrong one for the hardware. To recover, boot a matching kickstart image from bootflash or over TFTP, load the system image of the same release from the switch(boot)# prompt, then point the boot variables at those two files and save the configuration. The steps apply to MDS 9100, 9200 and 9300 fabric switches and to MDS 9700 supervisors. A switch that is stuck at loader again after the next reload almost always skipped that last step.

Identify the Failed Boot Stage

An MDS switch boots in four stages, and the prompt it stops at shows which stage failed. That decides where recovery starts.

StagePromptWhat it means when the switch stops here
BIOSNonePower-on self test and memory test; no prompt is available
Loaderloader>No valid kickstart image was found, or the boot was interrupted with Ctrl+C
Kickstartswitch(boot)#The kickstart image runs, but the system image is missing or invalid, or the boot was interrupted with Ctrl+]
Systemlogin:The system image loaded the startup configuration; the switch is up
MDS boot stages and the console prompt each stage leaves when the boot stops there.

A switch at switch(boot)# already has a working kickstart image. Skip the loader steps and go straight to loading the system image in the next section. A switch at loader> needs a kickstart image first.

Work from a console connection. The management port has no IP address until the loader or the kickstart image configures one, and SSH is not available until the system image is running.

Match the Image Prefix to the Platform

Choosing the wrong image is the quickest way to fail a recovery. Each MDS platform has its own file name prefix, and the kickstart and system images must have the same prefix and the same NX-OS release. A kickstart image from 9.4(4) will not load a system image from another release, and a Supervisor-4 cannot boot a Supervisor-1 image.

PlatformImage file name begins with
MDS 9124Vm9124v-s8ek9
MDS 9132Tm9100-s6ek9
MDS 9148Sm9100-s5ek9
MDS 9148Tm9148-s6ek9
MDS 9148Vm9148v-s8ek9
MDS 9220im9220-s7ek9
MDS 9250im9250-s5ek9
MDS 9396Sm9300-s1ek9
MDS 9396Tm9300-s2ek9
MDS 9396Vm9396v-s3ek9
MDS 9706, 9710 and 9718 with Supervisor-1 or -1E (DS-X97-SF1-K9, DS-X97-SF1E-K9)m9700-sf3ek9
MDS 9706, 9710 and 9718 with Supervisor-4 (DS-X97-SF4-K9)m9700-sf4ek9
NX-OS image file name prefixes by MDS platform. The kickstart and system images of one release share the same prefix.

The MDS 9700 row is where mistakes happen most. NX-OS lists a Supervisor-1 as “Supervisor Module-3” in show module, and its images carry sf3, not sf1. Bootflash on a director that has been through a supervisor migration can hold both sf3ek9 and sf4ek9 files. Pick the prefix that matches the supervisor installed in the slot being recovered.

Each kickstart and system pair is a matched set. Download both files for the same release from Cisco, and check the MD5 checksum shown on the download page before copying them anywhere. Cisco also publishes NPE (No Payload Encryption) builds, which only customers under U.S. export restrictions may run. Use the standard images unless the switch is required to run NPE.

Boot From Images Already in Bootflash

In most loader failures the images are still in bootflash and the boot variables simply point to the wrong file, a deleted file, or nothing. Start by listing what the supervisor holds:

loader> dir

Find a kickstart file and a system file with the same prefix and the same release, for example m9148-s6ek9-kickstart-mz.9.4.4.bin and m9148-s6ek9-mz.9.4.4.bin. Boot the kickstart image:

loader> boot bootflash:m9148-s6ek9-kickstart-mz.9.4.4.bin

The image is verified and the prompt changes to switch(boot)#. Now load the system image of the same release:

switch(boot)# load bootflash:m9148-s6ek9-mz.9.4.4.bin

The system image starts, reads the startup configuration and returns a login: prompt. If the system image refuses to load, check the two file names again. The kickstart and system releases must match exactly. Boot again from the loader with the kickstart file of the system release you want to run.

If dir shows no usable pair, or the matching files fail image verification, the images need to come from a server. Continue with TFTP.

Netboot the Kickstart Over TFTP

When bootflash has no usable images, the loader can pull a kickstart image over the management port. Put the kickstart and system images for the platform on a TFTP server that the switch’s mgmt0 port can reach.

At the loader, set an IP address, subnet mask and default gateway for mgmt0. The syntax depends on the hardware. On T-series and V-series fabric switches:

loader> set ip 192.0.2.20 255.255.255.0
loader> set gw 192.0.2.1

Older platforms such as the MDS 9148S use this form:

loader> net --ip=192.0.2.20 --nm=255.255.255.0 --gw=192.0.2.1

On any other platform, including MDS 9700 supervisors, enter help at the loader prompt to see the commands that platform supports before typing an address. The loader cannot send pings, so test reachability by pinging the switch address from the TFTP server. Then boot the kickstart image directly from the server:

loader> boot tftp://192.0.2.50/m9148-s6ek9-kickstart-mz.9.4.4.bin

Once the switch reaches switch(boot)#, confirm that mgmt0 still has its address with show ip. If it does not, configure it again. Then copy both images into bootflash so the next boot does not depend on the server, and load the system image:

switch(boot)# configure terminal
switch(boot)(config)# interface mgmt 0
switch(boot)(config-if)# ip address 192.0.2.20 255.255.255.0
switch(boot)(config-if)# no shutdown
switch(boot)(config-if)# exit
switch(boot)(config)# ip default-gateway 192.0.2.1
switch(boot)(config)# end
switch(boot)# copy tftp://192.0.2.50/m9148-s6ek9-kickstart-mz.9.4.4.bin bootflash:
switch(boot)# copy tftp://192.0.2.50/m9148-s6ek9-mz.9.4.4.bin bootflash:
switch(boot)# load bootflash:m9148-s6ek9-mz.9.4.4.bin

If bootflash is too full for both new files, delete old system images first and keep at least one kickstart image. A kickstart image is what lets the switch reach switch(boot)# and pull new files the next time something goes wrong. Some recovery procedures include init system. It reformats bootflash and removes every file stored there, so use it only for a corrupted file system, and only with a configuration backup held off the switch.

Make the Recovery Survive a Reload

A switch brought up by hand from the loader is running, but it will not stay that way. The boot variables still point to the files that failed. Set them to the images now running:

switch# configure terminal
switch(config)# boot kickstart bootflash:m9148-s6ek9-kickstart-mz.9.4.4.bin
switch(config)# boot system bootflash:m9148-s6ek9-mz.9.4.4.bin
switch(config)# end
switch# show boot

The switch checks each image and its compatibility as the variable is set. show boot prints two blocks, and the second one decides what happens at the next reload:

Current Boot Variables:
  kickstart variable = bootflash:/m9148-s6ek9-kickstart-mz.9.4.4.bin
  system variable = bootflash:/m9148-s6ek9-mz.9.4.4.bin

Boot Variables on next reload:
  kickstart variable = bootflash:/m9148-s6ek9-kickstart-mz.9.4.1.bin
  system variable = bootflash:/m9148-s6ek9-mz.9.4.1.bin

Until the configuration is saved, “Boot Variables on next reload” still lists the old files. If those files were deleted, the switch is back at loader> after the next reload. Save, then check again:

switch# copy running-config startup-config
switch# show boot

Both blocks must now list the same two files, and dir bootflash: must show that both files exist. A switch that keeps returning to the loader after every reload has the same root cause: boot variables that point to a file someone deleted or renamed during cleanup. Compare show boot with dir bootflash: before deleting any image.

To shorten the next recovery, keep a copy of the running kickstart and system images, and the configuration, on a server outside the switch.

Dual-Supervisor MDS 9700 Directors

On an MDS 9706, 9710 or 9718 with two supervisors, a supervisor stuck at loader is usually the standby. The active supervisor keeps the control plane and Fibre Channel traffic running, so the standby can be recovered without a traffic outage while the active supervisor stays healthy. The common cause is a spare supervisor inserted with images of a different release, or with no boot variables at all.

Check the state from the active supervisor with show module. Then restart the standby from the active supervisor:

switch# reload module 6

Use the slot number of the standby supervisor. If the standby comes back to the loader again, force it to netboot its software from the active supervisor:

switch# reload module 6 force-dnld

Confirm that force-dnld appears under reload module 6 ? on the running release before using it. Check the slot number twice. Reloading the slot of the active supervisor reboots it and hands control to the standby, which is the wrong move when the standby is the one that cannot boot.

If the netboot does not bring the standby up, connect a console to the standby supervisor and recover it with the bootflash or TFTP steps above. Use images of exactly the release the active supervisor runs. Once the standby is up, check that it has the images with dir bootflash://sup-standby/. When it does not, copy them from the active supervisor:

switch# copy bootflash:m9700-sf4ek9-kickstart-mz.9.4.4.bin bootflash://sup-standby/
switch# copy bootflash:m9700-sf4ek9-mz.9.4.4.bin bootflash://sup-standby/

Both supervisors in a director must be the same type. A Supervisor-1 or -1E and a Supervisor-4 can share a chassis only while a migration to Supervisor-4 is in progress, and the migration has its own procedure and NX-OS release requirements. A Supervisor-4 inserted into the standby slot of a Supervisor-1 director outside that procedure is not a recovery case. Plan the migration instead.

Signs of a Supervisor Hardware Fault

Software recovery has a limit. Stop and treat the problem as hardware when any of these holds:

  • dir at the loader cannot read bootflash, or files copied to bootflash fail verification again right after a clean copy.
  • The kickstart image boots over TFTP, but the system image fails to load from a fresh copy with a verified checksum.
  • The same image pair boots on another supervisor or another switch of the same model, but not on this one.
  • The supervisor fails during power-on self test, before the loader prompt appears.

When the supervisor or the switch needs replacing, Layer23-Switch supplies MDS hardware covered by LSCare: a 3-year warranty on enterprise equipment and advance replacement from stock, usually shipped within one business day after a fault is confirmed. LSCare does not include Cisco TAC, so a switch under an active Cisco support contract can also be handled through TAC. Fabric switches are listed by family in MDS 9100, MDS 9200 and MDS 9300. The MDS 9710 chassis has its own product page. For a supervisor module, a replacement switch or a matched spare, send the PID and serial number through the quote request form.

FAQ

Does recovering from the loader> prompt erase the MDS configuration?

No. The loader and kickstart steps do not touch the startup configuration, and the system image reads it as it finishes loading. The configuration is lost only if bootflash or the file system is reformatted during recovery, for example with init system, so keep a configuration backup off the switch before running any formatting command.

Why does an MDS switch return to loader> after every reload?

The boot variables point to images that are no longer in bootflash, or the corrected variables were never saved. Set boot kickstart and boot system to files that exist, run copy running-config startup-config, and check that both blocks of show boot list the same files.

Can a Supervisor-4 boot a Supervisor-1 image?

No. MDS 9700 Supervisor-1 and -1E modules use images that begin with m9700-sf3ek9, and Supervisor-4 modules use images that begin with m9700-sf4ek9. Recover each supervisor with the image family that matches its own hardware.

Is loader> recovery the same as MDS password recovery?

No. Password recovery interrupts a healthy boot with Ctrl+] and works from the switch(boot)# prompt to reset the admin password. Loader recovery fixes a switch whose kickstart image cannot be found or used.

Expertise Builds Trust 200+ Countries • 21500+ Customers/Projects CCIE · JNCIE · HPE Master ASE · Dell Server/AI Expert

Latest Articles