Description

I want to delete a snapshot created with "request system snapshot", in EVO

Symptoms

root@TEST> show system snapshot

-------------------------------

node: re0

-------------------------------

Current snapshot device: /dev/sdb

Snapshot boot device: sdb

List of installed version(s) in Snapshot boot device sdb:

 

[1] -> junos-evo-install-ptx-fixed-x86-64-24.2R2.16-EVO - [2025-08-26 19:49:06]

[2] < junos-evo-install-ptx-fixed-x86-64-22.4R1-S2.2-EVO - [2025-08-26 19:50:23]

 

'-' running version

'>' next boot version after upgrade/downgrade

'<' rollback boot version

Solution

In Junos, we can achieve this by "request system snapshot delete <package-name>".

 

The snapshot in EVO platforms are basically the software list in sda partition, which gets copied to sdb.

There are no explicit commands to achieve deletion of the snapshot.

 

Hence we are explaining in this KB, how to achieve modification of snapshot.

> You are having a snapshot which has current, rollback & archived versions.

> We can delete archived versions from sda, if they are not needed in snapshot.

request system software delete <package name>

> Once this is done, run 'request system snapshot'

> Now sdb will have only the current/rollback packages & others will be removed.

 

LAB:

++++++++++++++++++++++

root@LAB-PTX10001-36MR> show system software list 

-------------------------------

node: re0

-------------------------------

Active boot device is primary: /dev/sda

List of installed version(s) :

 

  '-' running version

  '>' next boot version after upgrade/downgrade

  '<' rollback boot version

  '*' deleted JSU version

 

 - junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited - [2025-08-18 00:26:28]

 < junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO - [2025-08-08 01:55:48]

   junos-evo-install-ptx-fixed-x86-64-23.4R1.10-EVO - [2025-07-09 20:41:59]

   junos-evo-install-ptx-fixed-x86-64-23.4R2-S4.11-EVO - [2025-07-07 20:57:33]

 

root@LAB-PTX10001-36MR> show system snapshot           

-------------------------------

node: re0

-------------------------------

Current snapshot device: /dev/sdb

Snapshot boot device: sdb

List of installed version(s) in Snapshot boot device sdb:

 

[1] -> junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited - [2025-08-26 04:00:30]

[2] < junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO - [2025-08-26 04:02:18]

[3]  junos-evo-install-ptx-fixed-x86-64-23.4R1.10-EVO - [2025-08-26 04:02:41]

[4]  junos-evo-install-ptx-fixed-x86-64-23.4R2-S4.11-EVO - [2025-08-26 04:03:03]

 

  '-' running version

  '>' next boot version after upgrade/downgrade

  '<' rollback boot version

 

After deletion of packages other than current & rollback.

 

root@LAB-PTX10001-36MR> show system software list              

-------------------------------

node: re0

-------------------------------

Active boot device is primary: /dev/sda

List of installed version(s) :

 

  '-' running version

  '>' next boot version after upgrade/downgrade

  '<' rollback boot version

  '*' deleted JSU version

 

 - junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited - [2025-08-18 00:26:28]

 < junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO - [2025-08-08 01:55:48]

 

root@LAB-PTX10001-36MR> show system snapshot                

-------------------------------

node: re0

-------------------------------

Current snapshot device: /dev/sdb

Snapshot boot device: sdb

List of installed version(s) in Snapshot boot device sdb:

 

[1] -> junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited - [2025-08-26 04:00:30]

[2] < junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO - [2025-08-26 04:02:18]

[3]  junos-evo-install-ptx-fixed-x86-64-23.4R1.10-EVO - [2025-08-26 04:02:41]

[4]  junos-evo-install-ptx-fixed-x86-64-23.4R2-S4.11-EVO - [2025-08-26 04:03:03]

 

  '-' running version

  '>' next boot version after upgrade/downgrade

  '<' rollback boot version

 

root@LAB-PTX10001-36MR> request system snapshot 

-------------------------------

node: re0

-------------------------------

........

Starting Snapshot in device /dev/sdb

List of software versions getting copied to Snapshot...

[1] junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited

[2] junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO

........

........

........

........

........

........

........

Software Snapshot completed.

 

root@LAB-PTX10001-36MR> show system snapshot    

-------------------------------

node: re0

-------------------------------

Current snapshot device: /dev/sdb

Snapshot boot device: sdb

List of installed version(s) in Snapshot boot device sdb:

 

[1] -> junos-evo-install-ptx-fixed-x86-64-21.4R3-S6.3-EVO-limited - [2025-08-26 04:14:41]

[2] < junos-evo-install-ptx-fixed-x86-64-24.4R2.12-EVO - [2025-08-26 04:16:29]

 

  '-' running version

  '>' next boot version after upgrade/downgrade

  '<' rollback boot version

++++++++++++++++++++++

Modification History

2025-09-02 : Article Created