SRX Services Gateway
Reply
Contributor
pmazurkiewicz
Posts: 39
Registered: ‎11-09-2010
0
Accepted Solution

max-configurations-on-flash vs. max-configuration-rollbacks

Hi,

 

What is the difference between max-configurations-on-flash and max-configuration-rollbacks?

 

Regards,

Pawel

Super Contributor
deepakcr
Posts: 77
Registered: ‎12-08-2011
0

Re: max-configurations-on-flash vs. max-configuration-rollbacks

Hi Pawel,

 

On SRX Series devices, the factory default for the maximum number of backup configurations allowed is 5. Therefore, you can have one active configuration and a maximum of five rollback configurations. Increasing this backup configuration number will result in increased memory usage on disk and increased commit time.

To modify the factory defaults, use the following commands:

root@host# set system max-configurations-on-flash number
root@host# set system max-configuration-rollbacks number
 

where max-configurations-on-flash indicates backup configurations to be stored in the configuration partition and max-configuration-rollbacks indicates the maximum number of backup configurations.

Contributor
pmazurkiewicz
Posts: 39
Registered: ‎11-09-2010
0

Re: max-configurations-on-flash vs. max-configuration-rollbacks

I know this part. :smileywink: The question is - what is the difference?

 

Regards,

Pawel

Recognized Expert
JunOS_Fan
Posts: 241
Registered: ‎02-13-2012

Re: max-configurations-on-flash vs. max-configuration-rollbacks

Hi,

 

In Junos , by default , active configuration and first 3 rollbacks will be stored in /config directory and remaining rollback files (from 4 upto 49) will be stored in a different directory /var/db/config .

 

We can change these defaults ,with the following two statements ...

 

max-configurations-on-flash  : refers to /config directory . For example, if you set a value of 2  here, active config plus first 2 rollbacks will be stored in /config.

 

[edit]
lab@srx3# show system max-configurations-on-flash                    
max-configurations-on-flash 2
[edit]
lab@srx3# run file list /config/       

/config/:
.snap/
hsconfigs/
juniper.conf.1.gz
juniper.conf.2.gz
juniper.conf.gz
juniper.conf.md5*
license-status.db
usage.db

max-configuration-rollbacks : refers to the total no of rollback files to be stored. For example ,  if you set a value of 4 here, you can rollback upto 4 files. Out of these 4 rollbacks ,  2 files (max-configurations-on-flash 2) will be stored in /config and remaining 2 will be stored in /var/db/config.  

 

[edit]
lab@srx3# run file list /var/db/config/    

/var/db/config/:
hsconfigs/
juniper.conf.3.gz
juniper.conf.4.gz

[edit]
lab@srx3# rollback ?
Possible completions:
  <[Enter]>            Execute this command
  0                    2012-07-29 16:40:14 UTC by lab via cli 
  1                    2012-07-29 16:39:35 UTC by lab via cli 
  2                    2012-07-29 16:38:28 UTC by lab via cli 
  3                    2012-07-29 16:37:31 UTC by lab via cli 
  4                    2012-07-29 16:34:56 UTC by lab via cli 
  |                    Pipe through a command
[edit]

 

Suppose , if we set both values to 4 , all rollback files (junper.conf.n.gz, where n=1,2,3,4) will be stored in /config itself, no files will be stored in /var/db/config.

 

Hope this helps !!

Best regards
Pradeep (JNCIP-SEC,ENT,SP)
www.networker.co.in
Contributor
pmazurkiewicz
Posts: 39
Registered: ‎11-09-2010
0

Re: max-configurations-on-flash vs. max-configuration-rollbacks

Thank you very much!

It is good to know how it works. :smileyhappy:

 

Regards,

Pawel

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.