Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Troubleshooting Storage Issues While Upgrading Junos OS in EX2300 and EX3400 Switches

 

Problem

Description: Upgrading Junos OS in EX2300 and EX3400 switches fails.

Symptoms: When you upgrade Junos OS in EX2300 and EX3400 switches, you get the error not enough space to unpack installation-pack-name.

Cause

There is not enough memory in the switch to install the upgrade installation package.

Solution

If upgrading Junos OS in EX2300 and EX3400 switches fails due to the lack of memory in the switch:

  1. Perform a system storage cleanup and delete unwanted files in the system storage by using the command:

    Note

    You can get the list of files that this command deletes by using the command:



    user@switch> request system storage cleanup dry-run

    This command does not delete files in the root folder; it deletes files in the folders jail, log, and tmp only.

  2. If any directory is taking up a lot of memory, delete unwanted files in that directory. Check the memory utilization by using the command:



    user@switch> show system storage
  3. Delete non-recovery snapshots.
    • If Junos OS 15.1X53D56 or later is installed in your switch:

      1. Delete non-recovery snapshots by using the command:



        user@switch> request system software add software-image-name force
    • If a version of Junos OS released earlier than Junos OS 15.1X53D56 is installed in your switch:

      1. Check for non-recovery snapshots by using the command:



        user@switch> show system snapshot
      2. Note

        Snapshot names are not completed automatically in the CLI; you must enter the snapshot name.

        Delete non-recovery snapshots by using the command:



        user@switch> request system snapshot delete snapshot-name
  4. After upgrading Junos OS, delete the upgrade installation package by using the command:



    user@switch> request system software add software-image-name force unlink