This article shows how to check the file sizes and view the largest size directories on the Junos device for troubleshooting or informational purposes.
The "Request system storage cleanup" command frees the necessary disk space needed for SRX operations. However, if this is not enough, and an administrator will need to work with JTAC in freeing disk space.
At the shell prompt, enter the "du -H | sort -rn | more" command to see the size of each directory, after logging your SSH/Console session.
Note that this will run from the current working directory, and list recursive sub directories. In the example below, it was started from the root (/) directory.
start shell cd / du -H | sort -rn | more 1242632 ./cf 809836 ./cf/packages 757544 ./var 566809 ./usr 376056 ./var/db 375312 ./cf/var 375240 ./cf/var/tmp 335328 ./var/db/idpd 312944 ./var/sw 312940 ./var/sw/pkg 252536 ./usr/sbin 213456 ./var/db/idpd/db 146824 ./usr/share 138512 ./usr/share/pfe 121412 ./var/db/idpd/db/dfa_cache 120434 ./usr/lib 89598 ./jail 53104 ./var/db/idpd/sec-download 51636 ./cf/root 45392 ./jail/html 43693 ./usr/lib/dd 41988 ./var/db/idpd/bins
2020-06-30: Article reviewed for accuracy; no changes required.