cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
770
Views
0
Helpful
4
Replies

Upgrade ASR9K IOS XR error - disk space

FrankHu114051
Level 1
Level 1

It says "XR does not have enough disk space in harddisk:" which harddisk: is that? how to check and how to cleanup the disk? Thanks!

2025-02-24 18:24:35 Install operation 31 started by fhu:
install add source harddisk:/ ASR9K-x64-iosxr-k9-7.11.21-hu.tar
2025-02-24 18:24:36 Action 1: install add action started
2025-02-24 18:24:50 Install operation will continue in the background
2025-02-24 18:28:58 WARNING : the following files/packages were not added to the Software Repository due to unsupported file format
README-ASR9K-x64-iosxr-k9-7.11.21.txt
2025-02-24 18:29:11 ERROR! XR does not have enough disk space in harddisk:
harddisk: to proceed.
Please clear up space and retry the operation
2025-02-24 18:29:13 ERROR!! failed while distributing packages to sysadmin

2025-02-24 18:29:28 Install operation 31 aborted
2025-02-24 18:29:28 Ending operation 31

4 Replies 4

tkarnani
Cisco Employee
Cisco Employee

show media

admin show media

those commands will give you the disk usage

example:

RP/0/RP0/CPU0:ASR-9922-B#show media
Mon Feb 24 18:56:11.434 UTC

Media Info for Location: node0_RP0_CPU0
Partition                            Size     Used  Percent    Avail
--------------------------------------------------------------------
rootfs:                              3.8G     2.5G      68%     1.2G
harddisk:                             23G     2.0G      10%      19G
log:                                 1.9G     479M      27%     1.4G
config:                              969M     375M      42%     528M
disk0:                               3.8G     231M       7%     3.4G
harddiska:                           3.7G      12M       1%     3.5G
apphost:                              20G     129M       1%      18G
RP/0/RP0/CPU0:ASR-9922-B#

 

Thank you for the information but how big does IOS need and how to cleanup if needed? how to see the files in the harddisk: below and how to delete the file(s) if needed to?

 

RP/0/RSP0/CPU0:BLFLVTSTCR9#show media location 0/RSP0/CPU0
Mon Feb 24 18:36:31.582 UTC

Media Info for Location: node0_RSP0_CPU0
Partition Size Used Percent Avail
--------------------------------------------------------------------
rootfs: 3.8G 2.2G 59% 1.5G
harddisk: 5.5G 4.8G 93% 412M
log: 469M 58M 14% 376M
config: 469M 1.3M 1% 433M
disk0: 968M 5.8M 1% 896M
harddiska: 3.7G 7.5M 1% 3.5G
apphost: 2.4G 88M 4% 2.2G

The OS itself resides on disk0:
Harddisk: is primarily used for crash files and show techs. It looks like harddisk is pretty full, you can use the delete command to delete files or go into the shell and use Linux commands (run, cd /harddisk:, rm -rf <>).

Harddisk needs a few hundred MB of space for fpds etc during upgrade, that's why you see the error.

Sam

I am a little confused that when I "show harddisk:" from the router and VM it shows me the different contents. Is there a Cisco document shows how they build the hard drive(s) on different "locations" ? Thanks!