How to remove previous XOS releases from the CPM

book

Article ID: 167838

calendar_today

Updated On:

Products

XOS

Issue/Introduction

This article describes how to safely remove previously installed XOS packages from the local filesystem on a CPM.
This article describes how to safely remove previously installed XOS packages from the local filesystem on a CPM.
 

Cause

Problem:

When using the shar upgrade procedure to upgrade XOS on a Crossbeam chassis, the used size of the root directory on the CPM disk increases with each upgrade. The increased disk usage may raise an alarm and prevent an XOS upgrade in the future.

For example, an alarm similar to the following may appear:

CBS# show alarms active minor
Active Alarms Summary:
 
  Source         Critical     Major        Minor
  ------         --------     -----        -----
  cp2               0           0            1
  Total             0           0            1
 
 
* indicates an alarm that can be cleared with the 'clear alarms' CLI command
 
Minor: 
 
 ID      Date             Source   Description
 --      ----             ------   -----------
 5715    Mar  9 17:16:41  cp2      Disk utilization (72%) /                      

The upgrade shar file and RPM packages related to each XOS release are located in the /crossbeam/rpm directory  on the CPM. Customers should not manually remove RPM files from this directory. Manual changes in this directory can cause dependency issues.

Resolution

To safely remove previously installed XOS packages, use the appropriate Crossbeam CLI commands.

1.  To view previously installed XOS versions, run the following CLI command: 
 
CBS# upgrade show release

2.  Identify the release to be removed.

3.  To delete old XOS packages and free up disk space in the root partition, run the following CLI command:

CBS# upgrade remove <release_number>
 

Example

The following example shows how to remove XOS V9.5.5 from a chassis that has been upgraded to XOS V9.6.0: 
 
CBS# upgrade show release 
Crossbeam: 9.5.5-21 
Crossbeam: 9.6.0-105 (current) 
 

CBS# upgrade remove 9.5.5-21 
 
 

Workaround

N/A