Description

This article provides information on how to restore Junos Space from a system snapshot.

Symptoms

How to restore Junos Space from a system snapshot.

Solution

 

In Junos Space 11.4+, the system snapshot functionality was introduced for both Junos Space devices and Junos Space VMs. This feature allows you to take a snapshot of the current system state including all application, database, and operating system level information.

It is recommended to take a system snapshot, before upgrading to a new Junos Space version or patch, which can then be used to roll back to the existing setup; if required. To restore the system snapshot for a Junos Space VM, you can navigate to the system snapshot page and click restore.

To restore the system snapshot for a Junos Space device, you will need console access to the Junos Space server and also the recovery USB stick ; before proceeding. Additional information about restoring the system snapshot can be found in our technical documentation.

To restore the Junos Space VM from a system snapshot, perform the following procedure:

  1. From the navigation ribbon, go to Administration > Manage Fabric > System Snapshot .

  • Click the Restore button; this launches the restore process.

  • The VM will be off after the restore process; you will need to turn it back on from the ESX server. 


To restore the Junos Space device from a system snapshot, perform the following procedure:

  1. From the navigation ribbon, go to Administration > Manage Fabric > System Snapshot .
  2. Click the Restore button to get an overview of the procedure:

    alt

  3. Connect to the Junos Space CLI console and type the perl /var/www/cgi-bin/snapshot operation=restore command.
  4. Connect the recovery USB stick to the device and reboot it. If the Junos Space installer page does not load, you will need to enter the BIOS (refer to KB22409 - How to access the Junos Space bios [juniper.net] ) and adjust the boot order to boot from the USB stick.
  5. In the Junos Space Installer screen, type rescue-serial :

    alt

  6. Navigate through the following prompt pages:



    1. In the Choose a Language page, select English and press Enter :

      alt

    2. In the Rescue Method page, select Hard drive and press Enter :

      alt

    3. In the Select Partition page, select /dev/sdb1 and press Enter :

      alt

    4. In the Setup Networking page, select Yes and press Enter :

      alt

    5. In the Network Configuration page, select OK and press Enter :

      alt

    6. In the Miscellaneous Network Settings page, select OK and press Enter :

      alt

    7. In the Error with Data page, press Continue :

      alt

    8. In the Rescue page , select Continue  and mount /mnt/sysimage , which will mount the directory and place you in the shell:

      alt

  7. Type the following commands in the shell. This will start the system restore process and will take approximate 20-30 minutes to complete.

    lvm vgchange -ay jmpvgnocf
    mkdir /backup
    mount /dev/jmpvgnocf/lvbackup /backup
    sh /backup/restore.sh
  8. <once the="" is="" remove="" rescue="" usb="" stick="" from="" appliance="" and="" then="" issue="" command="" li="" line=""> When Restoring complete is displayed, remove the rescue USB stick from the device and console, and then issue the reboot command.