Description

After the upgrade, if the command "show system software backup" is executed, we see the junos image of the previous version.

On SRX300 series firewalls, when this command is executed, the output is as below:

root@jtac-srx345> show system software backup

Backup JUNOS package information:

File name: /altroot/cf/packages/junos-21.2R3.8

File size: 423313256

 

On TVP platforms (SRX1500 and SRX 4000 series), when this command is executed, the output is as below:

root@jtac-srx1500> show system software backup

Backup JUNOS package information:

File name: /recovery/images/install-media-srx-700e-junos-21.4R3-S4.9.tgz

File size: 1107843053

 

On SRX5000 series firewalls, when this command is executed, the output is as below:

root@jtac-srx5400> show system software backup

Backup JUNOS package information:

File name: 21.2R3.8

File size: 2268532322


What is this image used for? How to delete it to increase the space on the device?

Symptoms

These files cannot be deleted using the command "request system software delete <filename/path>" as this package will not be currently active.

There is no command as "request system software backup delete"

 

root> request system software delete junos-21.2R3.8

Removing package 'junos-21.2R3.8' ...

pkg_delete: no such package 'junos-21.2R3.8' installed

 

root> request system software delete /altroot/cf/packages/junos-21.2R3.8

Removing package '/altroot/cf/packages/junos-21.2R3.8' ...

pkg_delete: no such package 'junos-21.2R3.8' installed

 

Solution

On all SRX1500, SRX4000 and SRX5000 series firewalls, this image is used to roll back the JUNOS to the previous version from which the device was upgraded.

On the SRX300 series, this is used as the image for the alternate partition (backup partition) and to rollback the JUNOS version.

 

This image cannot be deleted on SRX300 and SRX5000 series firewalls.

 

On TVP platforms (SRX1500 and SRX 4000 series), this can be cleared/deleted by following the below process.

 

1. From the CLI, perform a rollback, but do not apply it.

root@jtac-srx1500> request system software rollback

root@jtac-srx1500-r2034> request system software rollback

Initiating rollback on Host..

Rolling Back to previous image : /recovery/images/install-media-srx-700e-junos-21.4R3-S4.9.tgz

Installing /var/tmp/previous_image_to_be_installed.tgz\

Extracting the package ...

..

Host OS upgrade staged. Reboot the system to complete installation!

 

2. From the CLI, log in to the shell first:

root@srx1500> start shell user root

 

3. Login to the Linux operating system using the root password again:

root@srx1500% ssh -JU __juniper_private4__ [email protected]

[email protected]'s password:

 

4. Once logged in, issue the following command to remove the rollback image:

root@jtac-srx1500-node:~# upgrade_platform -r

...

upgrade_platform: Requested rollback of a staged upgrade..

bzImage-intel-x86-64.bin: OK

initramfs.cpio.gz: OK

version.txt: OK

upgrade_platform: Checksum verified and OK...

/root

upgrade_platform: Restoring backup to current.

bzImage-intel-x86-64.bin: OK

initramfs.cpio.gz: OK

version.txt: OK

upgrade_platform: Checksum verified and OK...

/root

 

After this, if the same command is executed again, there will be no image.

root@jtac-srx1500> show system software backup

There is no backup JUNOS package.

Modification History

2024-09-15 : Article Created