SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  snapshot commands difference

    Posted 01-08-2020 15:24

    Hi, 

     

    For SRX550:

     

    What is the difference between "request system snapshot slice alternate" & "request system snapshot media internal"?

     

    I think:

    media internal -  backup the OS on the internal flash.

    slice alternate -  writes the OS on the hard disk partition 

     

    Thank you. 

     

     



  • 2.  RE: snapshot commands difference
    Best Answer

     
    Posted 01-09-2020 00:10

    Hello CP1,

     

    I just have an SRX345, but I think the behavior is the same as SRX550. When you have look at the following website

     

    https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/request-system-snapshot-partition.html

     

    "media internal" is the default option. When you execute this without the "slice alternate" option, you can see this:

     

    > request system snapshot media internal
    node0:
    --------------------------------------------------------------------------
    error: Cannot snapshot to current boot device

     

    So you need the "slice alternate" option to make a snapshot to the backup partition, which is not in use:

     

    > request system snapshot slice alternate
    node0:
    --------------------------------------------------------------------------
    Formatting alternate root (/dev/da0s1a)...
    Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
    The following filesystems were archived: /



  • 3.  RE: snapshot commands difference

    Posted 01-14-2020 19:38

    Hi F1gh3r,

     

    Thanks for your reply. 

     

    I have checked on SRX550 and you are right the behaviour is the same as SRX345. 

     

    Regards to below process: 

     

    Formatting alternate root (/dev/da0s1a)...
    Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
    The following filesystems were archived: /dev/da0s2a' to '/dev/da0s1a,

     

    I guess the current version resides on da0s2a storage and da0s1a is a backup partition. Both storages are compact flash?

     

    Regards,



  • 4.  RE: snapshot commands difference

     
    Posted 01-15-2020 02:20

    Hi CP1,

     

    correct, da0s2a is the primary and da0s1a is the backup. These are just partitions, which are stored on the physical internal CompactFlash card. So if the CompactFlash card is faulty, both partitions are faulty as well.



  • 5.  RE: snapshot commands difference

    Posted 01-21-2020 19:08

    Hi F1ght3r,

     

    Thanks for your reply. 

     

    Make sense. 

     

    Finally, I would like to clarify about:

     

    Can I delete the junos OS from /var/tmp locaton after complete upgrade? As far as I know the /var/tmp location refers as a dump location so no harm to delete the junos OS after issueing the command "request system software add" and once the upgrade finish, is this correct?

     

    After issuing the commad "request system software add" where actually device store the packag files?

     

    Thank you for your time, appreciated.

     

    Regards. 



  • 6.  RE: snapshot commands difference

     
    Posted 01-22-2020 02:21

    Hi CP1,

     

    yes, you can delete the Junos installation file from /var/tmp/ at any time directly after the upgrade. You can even perform a "request system storage cleanup" so that Junos is doing this automatically.

     

    If you do not use the "no-copy" command, the copies of the packages are stored to the "/var/sw/pkg/" directory by default.



  • 7.  RE: snapshot commands difference

    Posted 02-09-2020 16:05

    Thanks, F1ght3r. 

     

    Regards.