This article documents an issue on EX4600 running EOS code in which the show system storage command reports a negative value for the root (/) directory before performing a software upgrade.
show system storage
/
root@EX46> show version
Hostname: EX46
Model: ex4600-40f
Junos: 20.4R2-S1.6
show system storage fpc0: -------------------------------------------------------------------------- Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 1.4G 1.4G -28.3M 102% / devfs 1.0K 1.0K 0B 100% /dev
The suggestion is to check if the negative value is cosmetic or not, you can follow the steps below:
-Check if the value is affected removing files
-Test a commit check, without space, normally the commit fails
-Push an upgrade package, without space, staging the code, upgrade will fail.
From shell mode, you can look for files bigger than 10mb, you can safely remove files in var/tmp or log files.
sh -c 'find / -size +10485760c 2> /dev/null' | xargs du -h | sort -nr
If after deleting a file, the value is not affected. You can check if the commit works fine.
#set vlans v999 vlan-id 999
#commit check
If the commit succeeds it's probably a cosmetic issue. You can confirm pushing the upgrade:
>request system software add /var/tmp/code-version.tgz force-host no-validate
After reboot, the value is corrected:
Junos: 21.4R3-S12.2
fpc0: -------------------------------------------------------------------------- Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 1.6G 1.4G 139M 91% / devfs 1.0K 1.0K 0B 100% /dev