cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
35
Helpful
15
Replies
Highlighted

IOS Upgrade

Hello all, 

 

I am trying to update the IOS version on a Cisco 2921 Router. It seems that I am not able to add a later IOS on flash: since it seems that there is enough disk space.  The show flash: result indicates that there isn't much available disk space.

 

#show flash:
-#- --length-- -----date/time------ path
450 14018 Aug 8 2014 21:55:56 +01:00 startup-config
452 109294244 Nov 21 2016 15:11:06 +00:00 c2900-universalk9-mz.SPA.156-3.M0a.bin
453 192328 Sep 4 2014 11:38:04 +01:00 crashinfo_20140904-113805-LON
456 47446 Aug 12 2015 22:58:38 +01:00 tfpt

47935488 bytes available (208551936 bytes used)

I can see that the IOS loaded on the machine is 15.2(4), so I assume it should be somewhere on the flash:

 

#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.2(4)M3, RELEASE SOFTWARE (fc2)

 

So my questions are:


- How can I clear the flash: space that is not in use

- Why 15.2.4 is loaded and not the one displayed above 15.6. 

- Can I somehow validate the 15.6 in order to ensure it is not corrupted?

I know that I can erase the flash: but I am trying to understand how things are actually working. 

15 REPLIES 15
Highlighted
VIP Advocate

Re: IOS Upgrade

 

 

- >Why 15.2.4 is loaded and not the one displayed above 15.6. 

    - Check for any reference to boot variables or settings when issuing the show version command ; also examine the running config and look for related variables.

-> Can I somehow validate the 15.6 in order to ensure it is not corrupted?

     Use the verify command with path-to-that-image as argument , or else md5sum , and compare the checksum from the one provided on the software download site at cisco.com

 M.

Highlighted

Re: IOS Upgrade

Actually the file system loaded is on the flash but it is not displayed when I use show flash:

 

#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.2(4)M3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Tue 26-Feb-13 03:42 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)

CUBE-WIM-TWILIO-EXPO uptime is 6 weeks, 2 days, 1 hour, 6 minutes
System returned to ROM by reload at 13:45:49 UTC Tue Jan 7 2020
System restarted at 13:46:51 UTC Tue Jan 7 2020
System image file is "flash0:c2900-universalk9-mz.SPA.152-4.M3.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command

 

#show flash:
-#- --length-- -----date/time------ path
450 14018 Aug 8 2014 21:55:56 +01:00 startup-config
452 109294244 Nov 21 2016 15:11:06 +00:00 c2900-universalk9-mz.SPA.156-3.M0a.bin
453 192328 Sep 4 2014 11:38:04 +01:00 crashinfo_20140904-113805-LON
456 47446 Aug 12 2015 22:58:38 +01:00 tfpt

47935488 bytes available (208551936 bytes used)

 

Highlighted
VIP Mentor

Re: IOS Upgrade

you have still old IOS Code running 15.2

 

but you have a new image installed on your flash now.

 

set the new boot system.

 

config t

!

 no boot system

!

boot system flash:c2900-universalk9-mz.SPA.156-3.M0a.bin

!

wr

 - make sure you take backup config out of the box, connect console cable if available

 

reload  -- this will enable new version for you.

 

 

BB
*** Rate All Helpful Responses ***
Highlighted

Re: IOS Upgrade


@marce1000 wrote:

-> Can I somehow validate the 15.6 in order to ensure it is not corrupted?

     Use the verify command with path-to-that-image as argument , or else md5sum , and compare the checksum from the one provided on the software download site at cisco.com


Thank you for the response. 

Highlighted
VIP Advisor

Re: IOS Upgrade

Hi there,

Sounds like the router is booting the IOS image from TFTP. What is the output of:

sh boot

 

cheers,

Seb.

Highlighted
VIP Rising star

Re: IOS Upgrade

in addition to the suggestion the system has booted from tftp, you can do 

dir /all or  show file systems

to check if other filesystems are present where the device may have booted from

Highlighted

Re: IOS Upgrade

Same for 

 

#dir /all
Directory of flash0:/

450 -rw- 14018 Aug 8 2014 21:55:56 +01:00 startup-config
452 -rw- 109294244 Nov 21 2016 15:11:06 +00:00 c2900-universalk9-mz.SPA.156-3.M0a.bin
453 -rw- 192328 Sep 4 2014 11:38:04 +01:00 crashinfo_20140904-113805-LON
456 -rw- 47446 Aug 12 2015 22:58:38 +01:00 tfpt

256487424 bytes total (47935488 bytes free)

 

#show file systems
File Systems:

Size(b) Free(b) Type Flags Prefixes
- - opaque rw archive:
- - opaque rw system:
- - opaque rw tmpsys:
- - opaque rw null:
- - network rw tftp:
* 256487424 47935488 disk rw flash0: flash:#
- - disk rw flash1:
262136 229445 nvram rw nvram:
- - opaque wo syslog:
- - opaque rw xmodem:
- - opaque rw ymodem:
- - network rw rcp:
- - network rw pram:
- - network rw http:
- - network rw ftp:
- - network rw scp:
- - opaque ro tar:
- - network rw https:
- - opaque ro cns:
Highlighted

Re: IOS Upgrade

There is no TFTP Server configured, and the command doesn't seem to be available. 


#show bo?
% Unrecognized command

 

Highlighted
VIP Mentor

Re: IOS Upgrade

can you post below commands,

 

show version

show run | in boot

 

2 cases here :

 

1. you already upgraded, since it shows new version in flash:

2. or you have upgraded no rebooted to take effect.

 

so take action we need above output to confirm

 

here is upgrade guidelines - you can copy the image to USB and boot from USB for testing, and delete the flash image and copy image - Once router boot with the new version.

 

make sure you always take the configuration out of the box as a backup.

 

 

https://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration/guide/Software_Configuration/upgrade.html

BB
*** Rate All Helpful Responses ***
Highlighted

Re: IOS Upgrade

I haven't applied any images during boot. 

 

#show run | include boot
boot-start-marker
boot-end-marker
#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.2(4)M3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Tue 26-Feb-13 03:42 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)

XXXXXX uptime is 6 weeks, 2 days, 4 hours, 26 minutes
System returned to ROM by reload at 13:45:49 UTC Tue Jan 7 2020
System restarted at 13:46:51 UTC Tue Jan 7 2020
System image file is "flash0:c2900-universalk9-mz.SPA.152-4.M3.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command

The total size used doesn't add up. 

 

#show flash:
-#- --length-- -----date/time------ path
450 14018 Aug 8 2014 21:55:56 +01:00 startup-config
452 109294244 Nov 21 2016 15:11:06 +00:00 c2900-universalk9-mz.SPA.156-3.M0a.bin
453 192328 Sep 4 2014 11:38:04 +01:00 crashinfo_20140904-113805-LON
456 47446 Aug 12 2015 22:58:38 +01:00 tfpt

47935488 bytes available (208551936 bytes used)

I have restarted the Voice Gateway around a month ago and as you can see the 15.6.3 IOS sits there the last 4 years. 

This is a work Voice Gateway that I have inherited, and I know that I can erase the flash: put a new IOS image in, restart and it will start working, but I am trying to understand the logic behind it. 

 

Theo 

 

 

Highlighted
Hall of Fame Community Legend

Re: IOS Upgrade


@Theofilos Tzachristas wrote:
453 192328 Sep 4 2014 11:38:04 +01:00 crashinfo_20140904-113805-LON

See the file above?   It was created back in 04 Sept 2014.  I'd recommend deleting the file using the command "del /f /r flash0:crashinfo_2014*". 

The file "tfpt" can also be deleted. 


@Theofilos Tzachristas wrote:
c2900-universalk9-mz.SPA.156-3.M0a.bin

Are you really sure you need to run this "version 0" and also a "rebuild"?  I know I wouldn't.  

Find a "newer" version other than something that ends with "M0a".  

Highlighted

Re: IOS Upgrade

Thanks for the response. I created this thread in order to understand a few things about how IOS boot works and not to fix my issue. I have the latest version on a TFTP Server that I will add to the flash: after formatting it and clear all the unused space. 

Highlighted
VIP Mentor

Re: IOS Upgrade

Not sure what happened over the history with your network, so suggest to delete the crash file, get the latest stable firmware, remove the one available in the flash: copy the new version, and change the boot variable and let us know how it goes?

BB
*** Rate All Helpful Responses ***
Highlighted

Re: IOS Upgrade

Thank you. I can do that, but the reason I open this discussion was not to fix the issue, but to try and understand in depth a few things.