Description

Unable to upgrade the JUNOS OS in EX3400 due to limited storage.

Symptoms

Error appeared while upgrading the JUNOS OS

Removing /var/log/wtmp.0.gz
Removing /var/log/messages.0.gz
Removing /var/log/interactive-commands.0.gz
setting unlink by default
setting unlink by default
getting unlink by default
setting unlink by default
Error: not enough space to unpack /var/tmp/junos-arm-32-21.2R3.8.tgz
ERROR: Either use "force or consider deleting snapshots using 'request system snapshot delete <snap>'"


root@juniper> show system storage member 0
fpc0:
--------------------------------------------------------------------------
Filesystem               Size           Used            Avail          Capacity          Mounted on /
dev/gpt/junos           1.3G          995M           301M                89%          /.mount     <=== Not enough space
tmpfs                        81M           200K           80M                    0%          /.mount/tmp
tmpfs                        324M         324M           624K                  0%          /.mount/mfs
 

Solution

Check for recovery & non-recovery snap shot

  • root@juniper> show system snapshot


Delete non-recovery snapshot

  • root@juniper> request system snapshot delete <snapshot-name>


Delete recovery snapshot (Repeat the steps for each VC member, From Here to End)

  • Mount the OAM partition

root@juniper> start shell user root
root@juniper% mount /dev/gpt/oam/ /oam/
root@juniper% ls -l /oam/

  • Delete snapshot

root@juniper% cli
root@juniper> file list /oam/snapshot/
root@juniper> file delete /oam/snapshot/recovery.ufs.uzip


Clear system storage

  • root@juniper> request system storage cleanup


Check system storage

  • root@juniper> show system storage

fpc0:
--------------------------------------------------------------------------
Filesystem               Size           Used            Avail          Capacity          Mounted on /
dev/gpt/junos           1.3G          995M           301M                89%          /.mount
tmpfs                        81M           200K           80M                    0%          /.mount/tmp
tmpfs                        324M         324M           624K                  0%          /.mount/mfs
/dev/gpt/oam/           484M         70M             375M                16%         /.mount/oam <==== use this directory to upgrade the switch


Copy JUNOS OS to /var/tmp directory using filezilla / WinSCP or FTP

Move JUNOS OS from "/var/tmp" to "/.mount/oam"

  • root@juniper> file copy /var/tmp/JUNOS.tgz fpc0:/.mount/oam/


Delete JUNOS OS from "/var/tmp/" directory

  • root@juniper> file delete /var/tmp/JUNOS.tgz


Upgrade JUNOS by adding no-validation & force

  • root@juniper> request system software add /.mount/oam/JUNOS.tgz no-validate force

Reboot the switch to complete upgradation
  • root@juniper> request system reboot at now

Modification History

23/05/23_first_draft
23/06/16_edited content