Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Ensure Sufficient Disk Space for Upgrades

SUMMARY The amount of free disk space necessary to upgrade a device with a new version of Junos OS Evolved can vary from one release to another. Check the software version you are installing to determine the free disk space requirements, and then clear enough disk space for the upgrade.

If the /soft, /var, or /data directories are at 90% capacity or more, the device does not have enough storage space to install a software package. If the amount of storage space on a device is insufficient for installing Junos OS Evolved, you might receive a warning similar to the following messages, that a file system is low on free disk space:

WARNING: The /soft filesystem is low on free disk space.

WARNING: This package requires 1075136k free, but there is only 666502k available.

When the system file storage space on the device is full, rebooting the device does not solve the problem. The following error message displays during a typical operation on the device after the file storage space is full: user@host> configure /soft: write failed, filesystem is full

  1. To determine the amount of free disk space on the device, issue the show system storage command. The command output displays statistics about the amount of free disk space in the device's file system.

    For example:

  2. If the amount of free disk space on a device is insufficient for installing Junos OS Evolved, you can clean up the file storage on the device by deleting the system files or unnecessary software images. You can use either the request system storage cleanup or the request system software delete operational mode command, or both, depending on where you need to clear space.
    1. Issue the request system storage cleanup operational mode command on the primary Routing Engine to delete system files in the /var directory for all Routing Engines in a system, usually system-log and trace files.

      The list of files to be deleted displays:

      Enter the option yes to delete the files.

    2. Before you can clean up unnecessary software images in the /soft and /data directories for all Routing Engines in a system, you must first find out what images exist on the device, using the show system software list operational mode command.

      You can delete software images one at a time or you can delete all software images except for the current and rollback images. These commands delete the images on all Routing Engines in the system.

      • To delete the software images one at a time, issue the request system software delete image-name operational mode command for each image you need to delete. If you delete this image, you cannot downgrade to this particular version of the software. You cannot delete the currently running software version. Use the force option to delete the rollback software image.
      • Starting in Junos OS Evolved Release 20.4R2, to delete all software images except for the current and rollback images, issue the request system software delete archived operational mode command. This command fails when a next-boot software image is on the Routing Engine; a new software image was installed, but the device has not yet been rebooted to finish the installation process.