This article addresses an issue where the /var partition on Juniper devices reaches high utilization or becomes full due to large configuration database files in the /var/rundb directory. This condition may trigger system alarms and negatively impact configuration management operations, including delays or timeouts during commit and configuration comparison actions.
Frequent load replacement operations can cause database size on disk can grow although the actual configuration size is less. This may result in Minor RE 0 /var partition usage is high [or] Major RE 0 /var partition is full system alarms. It can also lead to failed or delayed configuration comparisons (show | compare) and may cause commit operations to fail.
The following shell commands can be used to assess /var partition usage:
Resizing the configuration database reduces the size of the bloated juniper.db file to its expected size, freeing up disk space and resolving configuration comparison delays. Any commit operation performed after the database resize will also reduce the sizes of the associated files — juniper.data, juniper.data+, and juniper.save — further decreasing disk usage.
Recovery CLI Commands:
Example:
root@qfx5200:RE:0% df -h /varFilesystem Size Used Avail Capacity Mounted on/dev/ada1p1 475M 394M 43M 90% /.mount/var root@qfx5200:RE:0% du -xah /var | sort -rh | head -20393M /var391M /var/rundb 80M /var/rundb/juniper.save 80M /var/rundb/juniper.db 80M /var/rundb/juniper.data+ 80M /var/rundb/juniper.data 44M /var/rundb/render.db {master:0} root@qfx5200> show system configuration database usageMaximum size of the database: 409.99 MBCurrent database size on disk: 80.00 MB Actual database usage: 79.68 MBAvailable database space: 330.31 MB{master:0}root@qfx5200> request system configuration database resizeConfiguration database resized{master:0}root@qfx5200> show system configuration database usageMaximum size of the database: 409.99 MBCurrent database size on disk: 1.50 MB Actual database usage: 1.49 MBAvailable database space: 408.51 MB{master:0}root@qfx5200> configure{master:0}[edit]root@qfx5200# show | compare{master:0}[edit]root@qfx5200# commit and-quit{master:0}root@j02-34> start shellroot@qfx5200:RE:0% df -h /varFilesystem Size Used Avail Capacity Mounted on/dev/ada1p1 475M 85M 390M 18% /.mount/var