Junos OS

Expand all | Collapse all

How to really understand the request system snapshot on mx80?

Jump to Best Answer
  • 1.  How to really understand the request system snapshot on mx80?

    Posted 04-22-2020 07:17

    Hi All,

    I have the following question that basically is not answered clearly by any documentation)

     

    Scenario: upgrade mx80 from JUNOS 16.1R5-7 to 18.4R3.
    I want to go for the following upgrade-path:

    Start sw version installed: JUNOS 16.1R5-7
    Intermediate sw version: 17.2R3.4
    Intermediate sw version: 18.1R2.6
    Final sw version: 18.4R3

    Now in case of problem I want to use only the so called "snapshot":
    "On routers running Junos OS, back up the currently running and active file system partitions to standby partitions that are not running."

    I already run the snapshot and now on the Internal NAND flash device (da1) there is a backup of root file system and of /config.

    user@mx-80> request system snapshot
    Verifying compatibility of destination media partitions...
    Running newfs (899MB) on internal media / partition (da1s1a)...
    Running newfs (100MB) on internal media /config partition (da1s1e)...
    Copying '/dev/da0s1a' to '/dev/da1s1a' .. (this may take a few minutes)
    Copying '/dev/da0s1e' to '/dev/da1s1e' .. (this may take a few minutes)

    The following filesystems were archived: / /config

     

    What was copied?

    user@mx-80> show system snapshot
    Information for snapshot on internal (da1s1)
    Creation date: Apr 22 10:35:33 2020
    JUNOS version on snapshot:
    jbase : ppc-17.2R3.4
    jcrypto: ppc-17.2R3.4
    jcrypto-dp-support: 17.2R3.4
    jdocs : 17.2R3.4
    jkernel: ppc-17.2R3.4
    jmacsec: 17.2R3.4
    jpfe : MX80-17.2R3.4
    jroute : ppc-17.2R3.4
    jsd : powerpc-17.2R3.4
    jsdn-powerpc: 17.2R3.4
    jweb : ppc-17.2R3.4
    py-base-powerpc: 17.2R3.4
    py-extensions-powerpc: 17.2R3.4

     


    Assuming that during the upgrade the router will not boot-up from da0 (does not matter in which step i am on the above upgrade path) and assuming that i do not want to use any usb, than the last chance for the router to boot-up is to use the da1.
    Question: did i get correctly that in this case the router, using the snapshot  on da1,  will restore the  OS 17.2R3.4 plus  the configuration that was saved?

    Thanks.



  • 2.  RE: How to really understand the request system snapshot on mx80?
    Best Answer

    Posted 04-22-2020 07:45

    Hello FabNewCert.

     

    The snaptshot allows you to copy/backup the JunosOS file system to the backup partition. In case the primary gets corrupted for some reason, the router will bootup from the secondary, so that you can continue working. Now every time you perform an upgrade, you will need to take the snaptshot so they sync, otherwise in your example, let's say you took the snapshot at 17X and you already upgraded to 18 but you didn't take the snaptshot; If the primary partition fails to boot the router will go to the 17 as this is where you took the snapshot. 

    So, to answer your question. Yes, If primary partition fails, the router will bootup with the backup partition and will restore the  OS 17.2R3.4 plus  the configuration that was saved.