SRX systems may sometimes run out of system storage capacity, commonly while performing a software upgrade of the device. This article lists the files that can be safely removed from the device in order to increase the storage capacity of the file system.
What are the common and safe files that can be removed in order to increase system storage capacity?Below is a typical show system storage command output, showing flash usage and available space.
show system storage
root@srx> show system storageFilesystem Size Used Avail Capacity Mounted on/dev/da0s1a 293M 179M 91M 66% /devfs 1.0K 1.0K 0B 100% /devdevfs 1.0K 1.0K 0B 100% /dev//dev/md0 494M 494M 0B 100% /junos/cf 293M 179M 91M 66% /junos/cfdevfs 1.0K 1.0K 0B 100% /junos/dev/procfs 4.0K 4.0K 0B 100% /proc/dev/bo0s3e 24M 108K 22M 0% /config/dev/bo0s3f 342M 110M 205M 35% /cf/var/dev/md1 168M 14M 141M 9% /mfs/cf/var/jail 342M 110M 205M 35% /jail/vardevfs 1.0K 1.0K 0B 100% /jail/dev/dev/md2 39M 4.0K 36M 0% /mfs/var/run/utm/dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
The following options are available to remove unwanted files on an SRX system:
request system storage cleanup
request system storage cleanup dry-run
request system software delete-backup
/var
/var/log
/var/tmp
file list /var/log/
tmp
request security utm anti-virus kaspersky-lab-engine pattern-delete request security utm anti-virus juniper-express-engine pattern-delete request security utm anti-virus sophos-engine pattern-delete request security idp storage-cleanup cache-files request security idp storage-cleanup downloaded-files