request system configuration database resize
Syntax
request system configuration database resize <force> <re0 | re1> <routing-engine backup | master | both | local>
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 |
re0 | re1 | (Optional)
If a router has dual Routing Engines, |
routing-engine | (Optional)
To execute the
|
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 theforce
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 terminate the command when it is in progress (for example, by specifying Ctrl+c or Ctrl+z).
Required Privilege Level
maintenance
Output Fields
Sample Output
request system configuration database resize
user@host> show system configuration database usage Maximum size of the database: 1309.99 MB Current database size on disk: 500.00 MB Actual database usage: 176.81 MB Available database space: 1133.18 MB user@host> request system configuration database resize Database resize completed user@host> show system configuration database usage Maximum size of the database: 1309.99 MB Current database size on disk: 176.50 MB Actual database usage: 176.48 MB Available database space: 1133.52 M
Release Information
Command introduced in Junos OS Release 17.2R1.