cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
34519
Views
49
Helpful
34
Replies

C9200 not enough free space to upgrade

bjorn.jensen
Level 1
Level 1

I got an stack with two C9200. One C9200-24P-E, and one C9200-48T-E.

This stack runs in install-mode, with software version 17.03.03.

 

The two flash: are as following : 

Switch#dir flash-1:
Directory of flash-1:/

72892 -rw- 2097152 Sep 30 2021 08:07:04 +00:00 nvram_config
72887 -rw- 15088 Sep 30 2021 08:07:01 +00:00 rdope_out.txt
72904 -rw- 0 Sep 30 2021 08:07:01 +00:00 dope_hist
72889 -rw- 89 Sep 30 2021 08:06:58 +00:00 rdope.log
72876 -rw- 134458 Sep 30 2021 08:05:22 +00:00 memleak.tcl
72867 drwx 4096 Sep 30 2021 08:05:06 +00:00 .installer
72874 -rw- 2131 Sep 30 2021 08:05:06 +00:00 boothelper.log
16216 drwx 4096 Sep 30 2021 08:05:04 +00:00 dc_profile_dir
72870 -rw- 629 Sep 30 2021 08:04:45 +00:00 bootloader_evt_handle.log
72893 -rw- 2097152 Sep 28 2021 09:24:14 +00:00 nvram_config_bkup
80962 drwx 4096 Sep 28 2021 09:24:09 +00:00 license_evlog
113345 drwx 4096 Sep 28 2021 09:23:55 +00:00 .prst_sync
72866 -rw- 2131 Sep 28 2021 09:20:05 +00:00 boothelper.log.old
72906 -rw- 4919 Sep 28 2021 09:17:56 +00:00 packages.conf
72900 -rw- 556 Sep 28 2021 07:38:37 +00:00 vlan.dat
105249 drwx 4096 Aug 7 2021 00:08:47 +00:00 .rollback_timer
105256 -rw- 40648801 Aug 7 2021 00:02:29 +00:00 cat9k_lite-rpboot.17.03.03.SPA.pkg
105255 -rw- 11031572 Aug 7 2021 00:01:34 +00:00 cat9k_lite-webui.17.03.03.SPA.pkg
105254 -rw- 4133912 Aug 7 2021 00:01:34 +00:00 cat9k_lite-srdriver.17.03.03.SPA.pkg
105253 -rw- 426931224 Aug 7 2021 00:01:34 +00:00 cat9k_lite-rpbase.17.03.03.SPA.pkg
72895 drwx 4096 Aug 6 2021 11:43:27 +00:00 pnp-tech
72886 drwx 4096 Jun 29 2021 04:59:58 +00:00 .dbpersist
72894 drwx 4096 Jun 28 2021 18:42:57 +00:00 guest-share
72871 drwx 4096 Jun 28 2021 18:42:54 +00:00 core
16220 drwx 4096 Jun 28 2021 18:42:34 +00:00 pnp-info
72888 drwx 4096 Jun 28 2021 18:42:33 +00:00 onep
16218 drwx 4096 Jun 28 2021 18:41:44 +00:00 .USWAP
72877 drwx 4096 Jun 28 2021 18:41:35 +00:00 Tbot
32385 drwx 4096 Jun 28 2021 18:41:34 +00:00 .CRFT
72875 drwx 4096 Jun 28 2021 18:41:29 +00:00 sys_report
16193 drwx 4096 Jun 28 2021 18:41:27 +00:00 tech_support
72873 drwx 4096 Jun 28 2021 18:41:27 +00:00 ss_disc
72872 -rw- 5242880 Jun 28 2021 18:41:27 +00:00 ssd
113348 drwx 4096 Jun 28 2021 18:41:27 +00:00 gs_script

1957167104 bytes total (1359478784 bytes free)
Switch#

Switch#dir flash-2:
Directory of flash:/

56684 -rw- 556 Sep 30 2021 08:09:17 +00:00 stby-vlan.dat
89057 drwx 4096 Sep 30 2021 08:08:23 +00:00 .installer
56681 -rw- 15088 Sep 30 2021 08:07:07 +00:00 rdope_out.txt
56690 -rw- 0 Sep 30 2021 08:07:07 +00:00 dope_hist
56685 -rw- 2097152 Sep 30 2021 08:07:04 +00:00 nvram_config_bkup
56683 -rw- 2097152 Sep 30 2021 08:07:04 +00:00 nvram_config
56682 -rw- 89 Sep 30 2021 08:07:04 +00:00 rdope.log
97154 drwx 4096 Sep 30 2021 08:06:59 +00:00 license_evlog
56678 -rw- 134458 Sep 30 2021 08:05:44 +00:00 memleak.tcl
56677 -rw- 2131 Sep 30 2021 08:05:28 +00:00 boothelper.log
16217 drwx 4096 Sep 30 2021 08:05:26 +00:00 dc_profile_dir
56675 -rw- 407 Sep 30 2021 08:05:07 +00:00 bootloader_evt_handle.log
105249 drwx 4096 Sep 28 2021 09:21:28 +00:00 .prst_sync
56674 -rw- 2131 Sep 28 2021 09:20:06 +00:00 boothelper.log.old
56687 drwx 4096 Sep 28 2021 09:18:34 +00:00 .rommon_sync
56686 -rw- 4919 Sep 28 2021 09:17:55 +00:00 packages.conf
56680 -rw- 556 Sep 28 2021 07:38:37 +00:00 vlan.dat
89062 drwx 4096 Jun 3 2021 05:18:22 +00:00 .dbpersist
89069 drwx 4096 Jun 3 2021 05:18:12 +00:00 pnp-tech
97153 drwx 4096 Jun 2 2021 19:57:14 +00:00 .rollback_timer
89096 -rw- 40648801 Jun 2 2021 19:51:53 +00:00 cat9k_lite-rpboot.17.03.03.SPA.pkg
89095 -rw- 11031572 Jun 2 2021 19:50:22 +00:00 cat9k_lite-webui.17.03.03.SPA.pkg
89094 -rw- 4133912 Jun 2 2021 19:50:22 +00:00 cat9k_lite-srdriver.17.03.03.SPA.pkg
89093 -rw- 426931224 Jun 2 2021 19:50:22 +00:00 cat9k_lite-rpbase.17.03.03.SPA.pkg
89068 drwx 4096 Jun 2 2021 19:44:06 +00:00 guest-share
89060 drwx 4096 Jun 2 2021 19:44:04 +00:00 core
89065 drwx 4096 Jun 2 2021 19:43:43 +00:00 onep
89064 drwx 4096 Jun 2 2021 19:43:42 +00:00 pnp-info
48577 drwx 4096 Jun 2 2021 19:37:19 +00:00 Tbot
16219 drwx 4096 Jun 2 2021 19:37:13 +00:00 sys_report
16194 drwx 4096 Jun 2 2021 19:37:11 +00:00 tech_support
11 drwx 4096 Jun 2 2021 19:37:11 +00:00 ss_disc
56676 -rw- 5242880 Jun 2 2021 19:37:11 +00:00 ssd
105252 drwx 4096 Jun 2 2021 19:37:11 +00:00 gs_script

1956839424 bytes total (846458880 bytes free)
Switch#

 

I have tried to copy new BIN-file to flash: and then run the "install add file flash:*******.bin activate commit". 

This fails due to insufficient space on switch-2.

I have also tried to run the install directly from usbflash0:, but with the same result.

As you can see, there are no BIN files from before that I can delete. Also ran "install remove inactive" to clear away any installation that is not in use.

 

Here are the error messages I get:

Switch#conf term
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no boot sys
Switch(config)#boot sys flash:packages.conf
Switch(config)#end
Switch#
*Sep 30 08:21:58.604: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.1.5)
Switch#wr mem
Building configuration...
[OK]

Switch#
Switch#copy usbflash0-1:cat9k_lite_iosxe.17.03.04.SPA.bin flash:
Destination filename [cat9k_lite_iosxe.17.03.04.SPA.bin]?
Copy in progress...CCCCCCCCC**

482874449 bytes copied in 41.184 secs (11724807 bytes/sec)

*Sep 30 08:26:57.038: %PLATFORM-4-ELEMENT_WARNING: Switch 2 R0/0: smand: 2/RP/0: limited space - copy files out of flash: directory. flash: value 81% (1556 MB) exceeds warning level 70% (1337 MB).
*Sep 30 08:26:57.037: %PLATFORM-4-ELEMENT_WARNING: Switch 1 R0/0: smand: 2/RP/0: limited space - copy files out of flash: directory. flash:$ file usbflash0-1:cat9k_lite_iosxe.17.03.04.SPA.bin activate commit

Switch#install add file flash:cat9k_lite_iosxe.17.03.04.SPA.bin activate commit
install_add_activate_commit: START Thu Sep 30 08:28:04 UTC 2021
Sep 30 08:28:05.386 %INSTALL-5-INSTALL_START_INFO: R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.17.03.04.SPA.bin

*Sep 30 08:28:05.346: %INSTALL-5-INSTALL_START_INFO: Switch 2 R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.17.03.04.SPA.bininstall_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....

--- Starting initial file syncing ---
[2]: Copying flash:cat9k_lite_iosxe.17.03.04.SPA.bin from switch 2 to switch 1
[1]: Finished copying to switch 1
Info: Finished copying flash:cat9k_lite_iosxe.17.03.04.SPA.bin to the selected switch(es)
Finished initial file syncing

--- Starting Add ---
Performing Add on all members

[1] Add package(s) on switch 1
[1] Finished Add on switch 1
[2] Add package(s) on switch 2
Expanding image file: flash:cat9k_lite_iosxe.17.03.04.SPA.bin
[2]: Expanding file
... expanding file completed
[2]: Verifying parameters
[2]: Expanding superpackage flash:cat9k_lite_iosxe.17.03.04.SPA.bin
[2]: ... parameters verified
[2]: Validating package type
[2]: FAILED: flash: requires 471558 KB of free space, but only 451660 KB is available
FAILED: [2]: FAILED: Expanding all-in-one software package failed in switch 2
FAILED: install_add exit(1) Thu Sep 30 08:29:48 UTC 2021
[2] Finished Add on switch 2
Checking status of Add on [1 2]
Add: Passed on [1]. Failed on [2]
Finished Add

FAILED: install_add_activate_commit exit(1) Thu Sep 30 08:33:10 UTC 2021
Sep 30 08:33:11.266 %INSTALL-3-OPERATION_ERROR_MESSAGE: R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: FAILED: [2]: FAILED: Expanding all-in-one software package failed in switch 2
Sep 30 08:33:11.328 %INSTALL-3-OPERATION_ERROR_MESSAGE: R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: FAILED: install_add exit(1) Thu Sep 30 08:29:48 UTC 2021
Sep 30 08:33:11.387 %INSTALL-3-OPERATION_ERROR_MESSAGE: R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: [2]: FAILED: Add failed in switch 2

Switch#
*Sep 30 08:33:11.226: %INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 2 R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: FAILED: [2]: FAILED: Expanding all-in-one software package failed in switch 2
*Sep 30 08:33:11.286: %INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 2 R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: FAILED: install_add exit(1) Thu Sep 30 08:29:48 UTC 2021
*Sep 30 08:33:11.348: %INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 2 R0/0: install_engine: Failed to install_add_activate_commit package flash:cat9k_lite_iosxe.17.03.04.SPA.bin, Error: [2]: FAILED: Add failed in switch 2
*Sep 30 08:33:27.879: %PLATFORM-4-ELEMENT_WARNING: Switch 1 R0/0: smand: 1/RP/0: limited space - copy files out of flash: directory. flash: value 80% (1528 MB) exceeds warning level 70% (1337 MB).
*Sep 30 08:33:27.882: %PLATFORM-4-ELEMENT_WARNING: Switch 2 R0/0: smand: 1/RP/0: limited space - copy files out of flash: directory. flash: value 80% (1528 MB) exceeds warning level 70% (1337 MB).

Switch#
Switch#

 

How can I upgrade the switch in another way. What other files can I delete?

 

 

 

34 Replies 34

[2]: FAILED: flash: requires 471558 KB of free space, but only 455760 KB is available
FAILED: [2]: FAILED: Expanding all-in-one software package failed in switch 2

Looks still required somemore house keeping required.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello

Could also try:
install remove inactive 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

I have already run this earlier in the prosess

damian-jimenez
Level 1
Level 1

OK, i have the same issue kinda, that the installation couldn't progress due to no left space on one of the stack members.
That was happening cause i didn't approve on time the question about if i really wanted to upgrade the device, so the installation was left uncompleted. When we execute the "install add file..." the image is being uncompress to all stack members.

If you do a dir, you will see that one of the flash: is showing incorrect free space on the device. This is happening cause there are some hidden files that when you execute "install remove inactive" Cisco software is unable to find, do not know why cause it should be plain and straight.
So what we have to do is delete this files manually.

This was my case:

Directory of flash-2:/

1956904960 bytes total (817102848 bytes free)


If you perform the sum it was incorrect. SO i did:

dir flash-2:/*


And i found:

Directory of flash-2:/.images/

8151 drwx 4096 May 8 2024 12:30:10 +02:00 17.14.01.0.1391.1712301670


This is a directory that contains the uncompressed files from the image:

dir flash-2:/.images/17.14.01.0.1391.1712301670/
Directory of flash-2:/.images/17.14.01.0.1391.1712301670/

8164 -rw- 44699191 May 8 2024 12:30:09 +02:00 cat9k_lite-rpboot.17.14.01.SPA.pkg
8158 -rw- 4905 May 8 2024 12:30:09 +02:00 packages.conf
8162 -rw- 11894784 May 8 2024 12:28:15 +02:00 cat9k_lite-webui.17.14.01.SPA.pkg
8161 -rw- 6447104 May 8 2024 12:28:14 +02:00 cat9k_lite-srdriver.17.14.01.SPA.pkg
8160 -rw- 415162368 May 8 2024 12:28:14 +02:00 cat9k_lite-rpbase.17.14.01.SPA.pkg
8152 -rw- 1048 May 8 2024 12:25:47 +02:00 hdr_file
8163 -rw- 354 May 8 2024 12:22:24 +02:00 install_add_pkg_list.txt


This are the files that you have to delete:

 

delete flash-2:/.images/17.14.01.0.1391.1712301670/*


delete flash-2:/.images/17.14.01.0.1391.1712301670/*
Delete filename [/.images/17.14.01.0.1391.1712301670/*]?
Delete flash-2:/.images/17.14.01.0.1391.1712301670/hdr_file? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/packages.conf? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpbase.17.14.01.SPA.pkg.lnk? [confirm]
%Error deleting flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpbase.17.14.01.SPA.pkg.lnk (No such file or directory)
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpboot.17.14.01.SPA.pkg.lnk? [confirm]
%Error deleting flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpboot.17.14.01.SPA.pkg.lnk (No such file or directory)
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-srdriver.17.14.01.SPA.pkg.lnk? [confirm]
%Error deleting flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-srdriver.17.14.01.SPA.pkg.lnk (No such file or directory)
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-webui.17.14.01.SPA.pkg.lnk? [confirm]
%Error deleting flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-webui.17.14.01.SPA.pkg.lnk (No such file or directory)
Delete flash-2:/.images/17.14.01.0.1391.1712301670/install_add_pkg_list.txt? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpbase.17.14.01.SPA.pkg? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-rpboot.17.14.01.SPA.pkg? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-srdriver.17.14.01.SPA.pkg? [confirm]
Delete flash-2:/.images/17.14.01.0.1391.1712301670/cat9k_lite-webui.17.14.01.SPA.pkg? [confirm]

 

Then you will see the correct free space and you will be able to install the upgrade across the whole stack:


dir flash-2:/


1956904960 bytes total (1295777792 bytes free)

Hello, 

thanks for that info, this help me. 
TL

Review Cisco Networking for a $25 gift card