Use this procedure to resolve insufficient disk space during software installation. It helps recover from package installation failures caused by limited available storage.
Use this task to rectify insufficient disk space when installing software.
Problem:
The software installation terminates with the error Error on 0/1/CPU0: Insufficient disk space to install packages.
Cause:
To install the Cisco IOS XR software, an unused disk space of so-and-so must be available on the NCS 1010. If this space is not available before installing the software, the installation process terminates with the error.
Solution:
Identify the required disk space using the show install log or install add command.
View the space consumed by the harddisk: location using the show media location all command.
RP/0/RP0/CPU0:ios#show media location all
Wed Jan 8 08:29:00.808 UTC
Media Info for Location: node0_RP0_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
rootfs: 54.4G 16.5G 30% 38G
data: 77.3G 20.5G 27% 56.8G
disk0: 3.9G 12M 1% 3.6G
/var/lib/docker 6.6G 17M 1% 6.2G
disk2: 15G 6.1G 42% 8.6G
log: 5.3G 572M 12% 4.4G
harddisk: 61G 19G 32% 39G
Media Info for Location: node0_RP1_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
rootfs: 54.3G 16.5G 30% 37.9G
data: 77.4G 46.1G 60% 31.4G
disk0: 3.9G 8.5M 1% 3.6G
/var/lib/docker 6.6G 19M 1% 6.2G
log: 5.3G 492M 10% 4.5G
harddisk: 61G 44G 78% 14G
Media Info for Location: node0_0_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
rootfs: 54.4G 10.1G 18% 44.4G
data: 77.3G 1.9G 2% 75.5G
/var/lib/docker 6.6G 16M 1% 6.2G
disk0: 3.9G 8.2M 1% 3.6G
harddisk: 61G 109M 1% 57G
log: 5.3G 372M 8% 4.6G
Media Info for Location: node0_6_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
rootfs: 54.4G 10.1G 18% 44.4G
data: 77.3G 1.9G 2% 75.4G
disk0: 3.9G 8.3M 1% 3.6G
/var/lib/docker 6.6G 16M 1% 6.2G
harddisk: 61G 154M 1% 57G
log: 5.3G 374M 8% 4.6G
Use the following procedure to free up the disk space to make room for the software installation.
Before you begin
Follow these steps to rectify insufficient disk space when installing software.
Procedure
| 1. | Remove inactive packages from the system. Example:Remove the inactive packages:
|
|
| 2. | Remove stale or unnecessary files from the harddisk: location such as cores, debug logs, kdump and showtech data. We recommended that you do not remove files from other partitions because these locations may contain files that are relevant to collecting debug information. Carefully inspect the files to be deleted. Example:
Use the delete command to remove specific directory or files. When a directory contains files such as images, bug fixes or configuration files, you must remove the files before deleting the directory. Verify that the unwanted directory is removed from the harddisk. |