Junos Recovery on QFX5100/EX4600
It’s possible that after a failed installation, the QFX5100 might not work properly and be left in a state that makes it inaccessible from remote and needs a new software installation by copying the software from the USB to the QFX5100 or by using the installation from USB.
There is another way to recover the device if you have console access and you are still able to reboot the device from CLI. From CLI, you will need to reboot completely the device, including the CentOS on top of which the Junos VM is running. This is done using “request system reboot hypervisor”. If the CLI is not working, then a power cycle will be needed.
A recovery image is created automatically on the switches. If a previously-running switch is powered on and unable to boot using a Junos OS image, you can boot the switch using the recovery Junos OS image by selecting one of the saved images.
Because the architecture of EX4600 is identical with the one of QFX5100, the same process applies to EX4600.
After the hypervisor reboot, monitor the console and you should see this screen:
Once you select “Junos Recovery” menu, you will be shown with the available images:
+------------------------------------------+ | Junos Recovery | +------------------------------------------+ Selected Junos instance 0 ------------------------------------------------- Current : jinstall-qfabric-5-14.1X53-D16.1-domestic-201510161424.img Previous : jinstall-qfx-5-14.1X53-D16.1-domestic-201510151740.img Old : jinstall-qfx-5-14.1X53-D16.2-domestic-201510151607.img ------------------------------------------------- Select an image for recovery or cancel to continue: Select a recovery image: 1) jinstall-qfabric-5-14.1X53-D16.1-domestic-201510161424.img 2) jinstall-qfx-5-14.1X53-D16.1-domestic-201510151740.img 3) jinstall-qfx-5-14.1X53-D16.2-domestic-201510151607.img 4) cancel Pick an option[1-4]: Once you choose your option, you will be asked for a confirmation immediately: Do you really want to recover to jinstall-qfx-5-14.1X53-D16.2-domestic-201510151607.img Please confirm[y/n]:y Recovering Junos image Reverting to jinstall-qfx-5-14.1X53-D16.2-domestic-201510151607.img This may take some time ... Recovery of Junos image completed. ------------------------------------------------- Modified Junos configuration: ------------------------------------------------- Current : jinstall-qfx-5-14.1X53-D16.2-domestic-201510151607.img Previous : jinstall-qfx-5-14.1X53-D16.1-domestic-201510151740.img Old : jinstall-qfabric-5-14.1X53-D16.1-domestic-201510161424.img ------------------------------------------------- ## Then you will be asked if you want to format the data disk and also config disk(that is, the device will boot using the factory default configuration): Do you want to format Junos data disk?[y/n]y Formatting Junos data disk. This may take some time ... Formatting of Junos data disk completed. Do you want to format Junos config disk?[y/n]y Formatting Junos config disk. This may take some time ... Formatting of Junos config disk completed.
After this, the device will boot and the ZTP process will start.
FORMAT INSTALL WITH USB
dd if=/var/tmp/junos-evo-install-ptx-fixed-x86-64-19.2R1.31-EVO.img of=/dev/rdiskN bs=1m