Description

Storage issues on Juniper Networks QFX5120 | unable to copy file to switch

Solution

You can apply the following steps:

 

root@juniper> request system storage cleanup all-members

 

Delete the snapshot on all members:

root@juniper> request system snapshot delete * all-members

 

Storage cleanup will only remove files from the following directories:

/var/tmp

/var/log

/var/sw

/var/crash

 

Check for residual packages from old codes in the /packages/db/ directory and manually delete them.

Note: This is needed for each member.

Example: The current version this device is running is 181_r3_s4 and the previous version was: 151_x53_d59 (this is just an example of what you have to do with yours)

root@juniper> start shell user root

root@juniper% cd /packages/db/

root@juniper>% ls -l

total 224

drwxr-xr-x 3 root wheel 512 Feb 12 20:34 jdocs-ex-arm-32-20190315.110124_builder_junos_181_r3_s4

drwxr-xr-x 3 root wheel 512 Feb 12 20:34 jpfe-EX34XX-arm-32-20190315.110124_builder_junos_181_r3_s4

drwxr-xr-x 3 root wheel 512 Feb 12 20:34 jsd-arm-32-18.1R3-S4.2-jet-1

drwxr-xr-x 4 root wheel 512 Feb 12 20:34 jsdn-arm-32-18.1R3-S4.2

drwxrwxrwx 5 root wheel 512 Feb 12 19:27 junos-arm-32-15.1X53-D59.4---> old file

drwxr-xr-x 4 root wheel 512 Feb 12 20:34 junos-arm-32-18.1R3-S4.2

drwxr-xr-x 3 root wheel 512 Feb 12 20:34 junos-daemons-arm-32-20190315.110124_builder_junos_181_r3_s4

drwxr-xr-x 4 root wheel 512 Feb 12 20:35 junos-dp-crypto-support-ex-arm-32-20190315.110124_builder_junos_181_r3_s4

drwxr-xr-x 3 root wheel 512 Feb 12 19:33 junos-dp-crypto-support-mtx-arm-32-20180914.204810_builder_junos_151_x53_d59--> old file

 

Delete old files using the following command:

root@juniper% rm -R [filename]

 

Example:

root@juniper% rm -R junos-arm-32-15.1X53-D59.4

root@juniper% rm -R junos-dp-crypto-support-mtx-arm-32-20180914.204810_builder_junos_151_x53_d59

 

If you don’t have any large size file in /var and the you still have high utilization then it may be because of the memory bloating. In that case a power cycle of device can help to bring the /var utilization down.

 

Modification History

09/27/2023 - KB Created

Related Information

https://www.juniper.net/documentation/us/en/software/junos/junos-install-upgrade-evo/topics/task/ensure-sufficient-disk-space.html