Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

request system configuration database resize

 

Syntax

Release Information

Command introduced in Junos OS Release 17.2R1 for i386 platforms on the M Series , MX Series, or T Series devices only.

Description

You might require to perform a resizing of the configuration database as a result of performing frequent load replacement operations which replaces the configuration hierarchy with the new configuration. When this occurs, deleted objects store in the database, and the memory allocated in the database is freed after the commit is completed. However, during this process the database size on disk can grow although the actual configuration size is actually less.

The request system configuration database resize command provides you with a manual method to resize the configuration database. The system will display Database resize completed when the configuration database has been successfully resized.

Use the show system configuration database usage command to display configuration database disk space usage statistics. The Current database size on disk field will display the change in database size related to the use of the resize command. See show system configuration database usage.

Options

force(Optional) If there are uncommitted changes and you execute the request system configuration database resize command, the command will fail and an error will be generated (error: Database resize failed, Configuration Database Modified.). To execute the command when this occurs, use the force option to discard the uncommitted changes.
re0 | re1(Optional) If a router has dual Routing Engines, re0 and re1 identify the specific routing engine that is to execute the request system configuration database resize command. re0 is for the Routing Engine in slot 0 and re1 is for the Routing Engine in slot 1.
routing-engine(Optional) To execute the request system configuration database resize command on a specific routing engine, or on both routing engines, in a redundant configuration you can specify one of the following:
  • backup—Resizes the configuration database on the backup routing engine in a redundant configuration.

  • master—Resizes the configuration database on the master routing engine in a redundant configuration.

  • both—Resizes the configuration database on both routing engines.

  • local—Resizes the configuration database on the local routing engine.

Additional Information

Include below is a set of usage guidelines when using the request system configuration database resize command:

  • All other configuration sessions will be closed on the routing engine to remove the old mappings to the configuration database.

  • This command cannot be run from configuration mode.

  • Do not execute the request system configuration database resize command when a commit is in progress.

  • During the time when the request system configuration database resize command is in progress, a new configuration session cannot be opened. A warning message will appear instructing you that the configuration database is being resized (warning: Database is being resized).

  • If there are uncommitted changes and the command is executed, the command will fail and an error will be generated (error: Database resize failed, Configuration Database Modified.). To execute the command when this occurs, use the force option to discard the uncommitted changes.

  • To execute the command on both routing engines use the request system configuration database resize routing-engine both command.

  • Do not abort the command when it is in progress (for example, by specifying Ctrl+c or Ctrl+z).

Required Privilege Level

maintenance

List of Sample Output

request system configuration database resize

Output Fields

Sample Output

request system configuration database resize

user@host> show system configuration database usage
user@host> request system configuration database resize
user@host> show system configuration database usage