SRX Services Gateway
SRX Services Gateway

snapshot commands difference

2 weeks ago

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. 

 

 

3 REPLIES 3
SRX Services Gateway

Re: snapshot commands difference

2 weeks ago

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.
SRX Services Gateway

Re: snapshot commands difference

Tuesday

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,

SRX Services Gateway

Re: snapshot commands difference

Wednesday

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.