Cisco Nexus Hyperfabric — Recover a Cisco 6000 Series Switch Using a USB Drive
Recover a Cisco 6000 series switch using a USB drive
This article provides the procedure to recover Cisco 6000 series switches using a USB drive. If a switch encounters issues, such as becoming unresponsive and remaining stuck at the login screen, recovery is essential to restore its functionality. This process involves reloading the switch with a Cisco Nexus Hyperfabric OS image that includes an updated agent.
Supported hardware and software versions
USB recovery is available only on select BIOS versions. To confirm compatibility, check the BIOS version displayed in the banner after the system reboots.
Hardware model |
Minimum BIOS version |
---|---|
HF6100-32D |
15.4 |
HF6100-60L4D |
5.8 |
Prerequisites for preparing the USB recovery drive
Ensure you have these items for USB drive preparation.
- Linux virtual machine (VM)
- USB drive with at least 20GB of capacity and support for USB 3.0.
-
Download the specific Cisco 6000 series switch recovery image (.tar) from the Cisco Software Download site and extract these files:
- efi_boot.img
- efi_recovery.img
-
Cisco 6000 series switch model binary file:
- SONiC.202405c.2.1.1-0.HF6100-32D.bin
- SONiC.202405c.2.1.1-0.HF6100-60L4D.bin
- readme.txt (contains the MD5 checksum for verifying file integrity)
Prepare the USB recovery drive
Follow these steps to create a bootable USB drive.
Step 1 | Attach the USB drive to the Linux VM and confirm the device is connected. Example:
In this example, the drive is sdb. Exercise extra caution with the detected USB partition to prevent accidentally formatting non-USB data disks. |
Step 2 | Partition the USB drive and verify the partitions.
|
Step 3 | Format partition entries with the FAT filesystem and assign labels. Partition 1 must have the label "BOOT" and partition 2 must have the label "MAIN". Example:
|
Step 4 | Download the EFI boot and recovery artifacts to the same folder on your Linux system. In this example, the Cisco HF6100-32D switch files are downloaded to ~/usb_recovery. Example:
|
Step 5 | Copy the EFI boot and the EFI recovery images to the USB drive. Example:
|
Step 6 | Create a temporary directory, mount the second partition, and copy the Cisco 6100 series switch image. The image must be named sonic_recovery.bin or it will not be automatically detected.
|
Step 7 | Exit the mounted temporary directory and sync write operations. Example:
|
Step 8 | Unmount the sdb2 partition and eject the USB drive. Example:
|
The USB drive is now ready to be used to recover a Cisco 6000 series switch.
Recover the switch using the prepared USB drive
Follow these steps to recover a Cisco 6000 series switch using the USB drive.
Step 1 | Insert the prepared USB drive into the switch. See the specific Cisco 6000 series switch model documentation to locate the USB port. |
Step 2 | Power cycle the switch to initiate the recovery process.
|
Step 3 | Remove the USB drive from the switch after recovery. If you forget to remove the USB drive, the switch will continue to boot from the USB drive. |