I have been following this thread and have something to add. I have a number of EX2300 and EX3400 with the same issue. I decided to open a JTAC case and this is what they did to get around the issue.
1. Run the request system storage cleanup command. This will remove any unnecessary files but keep everything under /root intact:
root@juniper> request system storage cleanup
2. Run the request system snapshot delete snap* command. This will delete any existing recovery snapshots that are stored on the system.
root@juniper> request system snapshot delete snap*
Note: If you are unable to delete the recovery.ufs snapshot, please follow the steps under KB32170 - Recovery and Non-recovery snapshots on Junos devices .
3. Copy os-package and package-hooks-ex to /var/tmp .
4. Install the two packages by using the request system software add command:
root@juniper> request system software add /var/tmp/os-package.tgz
root@juniper> request system software add /var/tmp/package-hooks-ex.tgz
5. Install the Junos OS release software by adding options no-copy , unlink , and force under the request system software add command:
root@juniper> request system software add /var/tmp/<junos-package> force unlink
6. After reboot, remove the interim packages by issuing the commands "request system software delete os-package" and "request system software delete package-hooks-platform"
7. Reboot
I do not know if the files os-package.tgz and package-hooks-ex.tgz are available for download somewhere outside of getting the direct link from support.
I was also told that Junos version 19 and newer, using "request system software add /var/tmp/<junos-package> unlink no-copy" will update the switches without the not enough space error.
------------------------------
PAUL PETERSON
------------------------------
Original Message:
Sent: 06-01-2022 10:14
From: Dante Klerkx
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
Minor update: we found out a little optimization is possible. It is not necessary to copy the file from the master to the other VC members. Instead you can initiate the upgrade from the master for each member with the no-copy option:
request system software add /var/tmp/package.tgz no-copy member <VC member number>
and repeat this for every member in the VC. Then reboot the VC as a whole and done!
Original Message:
Sent: 05-18-2022 14:35
From: Dante Klerkx
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
Hi Andreas,
Thank you for the feedback. I'm aware of the EX3400 storage issues, those have been around for a long time, and multiple options to get it working are available. The USB option works, however very inconvenient for remote upgrades ;-).
However, this thread is about the EX4300, which haven't shown any issues until recently. A colleague tried to upgrade an EX4300 VC and when the master started to unpack the tgz on the members, the upgrade failed stating the member that failed was a few MB storage short in order to be able to complete the upgrade.
We copied the software package manually from the master to the other VC members, logged in the members individually and started an upgrade with the no-copy option for the local member only. After all the members were ready, the VC was rebooted and upgraded fine.
I found it dissappointing the storage seems to have become an issue another hardware type next to EX3400 and EX2300.
FYI: I noticed that older QFX51xx and EX46xx platforms are not able to download a file an upgrade package to /var/tmp, even though they have plenty of space. The problem here was that the file copy command puts a temporary download file in the home directory of the logged in user and the partition where the home directory resides is too small. Hence the file copy fails with the message "not enough storage".
I find it hard to understand Juniper has not fixed this yet (this issue has been there for years), seems like an easy fix to me: just do not make a temporary copy in the home dir...
Or maybe I'm just the only one downloading images that way? :-P
Storage and Juniper switches, not the best story so far.
But I'm still a Juniper fan nevertheless :-)
Cheers,
Dante
Original Message:
Sent: 05-16-2022 16:29
From: Andreas
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
Hi Dante,
I'm currently struggling with a stack of EX3400s and it looks the outcome will be upgrading via USB, this has always worked for me.
FAT32 USB with the OS-package directly on it.
Here is a guide if you need to prepare it on an production environment for a later reboot (not using boot loader), if you have a VC stack first run 'request session member <member id>' and add 'member <member id>' to the 'request system software add...' line to upgrade each invidually, dont forget to unmount between each switch.
#Enter the shellstart shell#run ls before inserting USB, this way you will know which partition is the USB.ls /dev/da*#Navigate to var/tmp and create a directory for the USB.cd /var/tmpmkdir usb#Check the USB partition, note which one is newls /dev/da*#Mount the usb folder to the USB (da1s1 in this instance)mount -t msdosfs /dev/da1s1 /var/tmp/usb#Double check pathmount | grep usb#Run the followingrequest system software add /var/tmp/<os-package.tgz> no-copy no-validate force#Unmountstart shellsuumount /dev/da1s1
------------------------------
Andreas
Original Message:
Sent: 05-04-2022 03:51
From: Dante Klerkx
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
Hi,
We're having the same issues... What was the outcome for you guys?
Cheers,
Dante
Original Message:
Sent: 10-21-2021 11:50
From: Unknown User
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
I have the same issue on 2 different 4300-MP stacks. Support recommended deleting a /var/tmp/.scheme-cache file, but neither stack has that file on it.
Going back for round two of Support.
Original Message:
Sent: 10-15-2021 11:45
From: KET VO
Subject: The /var/tmp filesystem on JUNOS is low on free disk space when upgrading on EX4300
Hi All,
I am using EX4300: Model: ex4300-48t Junos: 18.4R3-S1.3
Today i cannot upgrade to version 20.4R3.8 ( Or 20.2). This is error:
"root> ... add /var/tmp/jinstall-ex-4300-20.2R3.9-signed.tgz reboot
NOTICE: Validating configuration against jinstall-ex-4300-20.2R3.9-signed.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
The /var/tmp filesystem on JUNOS is low on free disk space.
This package requires 12MB more space free.
ERROR: Please use the request system storage cleanup command to delete old files from /var/tmp"
I tried to "request system zeroize" successfully before upgrade but i met the same error.
"request system storage cleanup" is not useful.
I am looking forward to hearing from you soon.
Here is show system storage:

Best Regards,
Ket, Vo Van.
------------------------------
KET VO
------------------------------