Restoring a Primary HA Host to a Previous Version or Factory Default
Restore the JSA primary high-availability (HA) host to a previous version or factory default. You can restore a failed JSA primary HA host that does not include a recovery partition or a USB port to a previous version. You can also restore the system to factory defaults. When you restore the failed primary HA host, all data is removed and the factory default configuration is restored on the host.
- Use SSH to log in to the console as the root user.
- Copy the recovery.py script from the console to the failed
primary HA host.
scp recovery.py root@<TargetIP_address>:/root
- Obtain the JSA ISO from the following location: Juniper Support website
- Copy the ISO file to the target JSA host.
scp <iso_file_name> root@<TargetIP_address>:/root
- Use SSH to log in to the primary HA host.
- Type the following commands:
chmod 755 recovery.py
./recovery.py -r --default --reboot <iso_file_name>
- Press Enter when prompted to restart the system.
- When prompted, type flatten and press Enter.
The installer repartitions and reformats the hard disk, installs the operating system, and then installs JSA. Wait for the flatten process to complete. This process can take up to several minutes. After the process is complete, the normal installation process continues.