SRX Services Gateway
Highlighted
SRX Services Gateway

snapshot commands difference

‎01-08-2020 03:24 PM

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. 

 

 

6 REPLIES 6
Highlighted
SRX Services Gateway
Solution
Accepted by topic author CP1
‎01-21-2020 07:08 PM

Re: snapshot commands difference

‎01-09-2020 12:10 AM

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-sn...

 

"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: /

--------------------------------------------------

If this solves your problem, please mark this post as "Accepted Solution".
If you think that my answer was helpful, please spend some Kudos.
Highlighted
SRX Services Gateway

Re: snapshot commands difference

‎01-14-2020 07:38 PM

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,

Highlighted
SRX Services Gateway

Re: snapshot commands difference

‎01-15-2020 02:20 AM

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.

--------------------------------------------------

If this solves your problem, please mark this post as "Accepted Solution".
If you think that my answer was helpful, please spend some Kudos.
Highlighted
SRX Services Gateway

Re: snapshot commands difference

‎01-21-2020 07:07 PM

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. 

SRX Services Gateway

Re: snapshot commands difference

‎01-22-2020 02:21 AM

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.

--------------------------------------------------

If this solves your problem, please mark this post as "Accepted Solution".
If you think that my answer was helpful, please spend some Kudos.
Highlighted
SRX Services Gateway

Re: snapshot commands difference

‎02-09-2020 04:04 PM

Thanks, F1ght3r. 

 

Regards.

Feedback