Description

This article provides information about the max-configurations-on-flash configuration option.

Symptoms

  • By default, Junos saves the current configuration and three previous versions of the committed configuration on the compact flash card.
  • You can change this with the max-configurations-on-flash configuration option.

Solution

 

The current configuration is stored on the compact flash card in the juniper.conf.gz file, which is present in the /config directory, along with the last three committed configurations, which are juniper.conf.1.gz , juniper.conf.2.gz , and juniper.conf.3.gz .

To specify how many previous versions of the committed configurations you want to store on the compact flash card, include the max-configurations-on-flash statement at the [edit system] hierarchy level:

[edit system]
max-configurations-on-flash <number> ;
Number can be within the range of 0 to 49. Previously committed configurations are also present on the hard disk in the /var/db/config directory.


To mirror the contents on the compact flash case to the hard disk, include the mirror-flash-on-disk  statement at the [edit system] hierarchy level

[edit system]
mirror-flash-on-disk;

Caution: We recommend that you disable flash-to-disk mirroring when you upgrade or downgrade the router. You cannot issue the request system snapshot command while flash-to-disk mirroring is enabled.
Note: After you have enabled or disabled the mirror-flash-on-disk statement, you must reboot the router for your changes to take effect. To reboot, issue the request system reboot command.