07-25-2009 11:10 AM - edited 03-06-2019 06:56 AM
How I can free space in flash using CNA safely?
It is safe to say the system boot image can be deleted?
07-25-2009 11:20 AM
Not sure how you can use CNA, but make sure you copy all the files to a computer / tftp server.
You can compress the running-config :
switch(config)#service compress-config
Then a write mem should compress your image on flash
If you delete the boot image, you will save space, but if the switch crashes, it will go to rommon and you will have to upload the file again to flash memory
07-25-2009 11:34 AM
Thanks for the replay!
Unfortunatelly I got the message "Boot ROMs do not support NVRAM compression.
Disabling service compress-config."
I just need to know if there is something else I can do other than put more memory.
07-26-2009 02:17 AM
Do a "dir" and post the output.
Are you using HTML to log into the switch? If not delete the HTML directory. It should give you enough space for 2 .bin files.
07-26-2009 06:00 AM
I don't think getting rid of the HTML folder will give me enough space:
2 -rwx 109 Feb 28 1993 19:09:32 -05:00 info
4 -rwx 549 Dec 31 1969 19:01:50 -05:00 env_vars
5 -rwx 736 Jun 12 2007 06:11:41 -05:00 vlan.dat
6 -rwx 1048 Feb 18 2009 13:34:10 -05:00 multiple-fs
7 -rwx 3110758 Feb 28 1993 19:11:29 -05:00 c2950-i6q4l2-mz.121-22.EA6.bin
8 drwx 4160 Feb 28 1993 19:12:09 -05:00 html
377 -rwx 109 Feb 28 1993 19:12:49 -05:00 info.ver
378 -rwx 5275 Feb 18 2009 13:34:10 -05:00 config.text
379 -rwx 25 Feb 18 2009 13:34:10 -05:00 private-config.text
7741440 bytes total (2983936 bytes free)
07-26-2009 09:16 PM
Hi Javier,
Sounds like it could. Delete the HTML file and you should have more than enough for the second .BIN file.
07-26-2009 10:04 PM
Would the squeeze command be of any assistance?
http://www.cisco.com/en/US/docs/ios/12_1/configfun/command/reference/frd2001.html#wp1033959
07-27-2009 06:11 AM
There is not files tagged as deleted or error so squeeze command didn't help.
This is what I got when I try to do the upgrade:
Determining the total flash size.
Extracting the info file from the tar image.
Reading the info file of the tar image file.
Actual free space 3074560
Required Space 5792768
Software upgrade failed.
There is insufficient flash space for the new image.
Total free space required is 5792768 bytes.
Remove unwanted files from the flash and upgrade again.
07-27-2009 09:41 AM
Try deleting the html directory + files anyways, it always contains some files inside that hold some of your flash space.
Compare yours with my switch:
C2950G-24#dir
Directory of flash:/
2 -rwx 110 Mar 01 1993 00:46:04 +00:00 info
3 -rwx 3721946 Mar 14 1993 23:11:11 +00:00 c2950-i6k2l2q4-mz.121-22.E
A13.bin
4 -rwx 3117390 Mar 01 1993 01:18:01 +00:00 c2950-i6q4l2-mz.121-22.EA8
5 -rwx 616 Mar 01 1993 00:00:20 +00:00 vlan.dat
7 -rwx 186 Mar 01 1993 00:06:58 +00:00 env_vars
8 -rwx 24 Apr 24 1993 07:23:27 +00:00 private-config.text
9 -rwx 3013 Apr 24 1993 07:23:27 +00:00 config.txt
415 -rwx 110 Mar 01 1993 00:49:41 +00:00 info.ver
7741440 bytes total (893952 bytes free)
------------------------
I have two IOS files just fine. The only difference is the html dir
07-27-2009 09:46 AM
But anyways, you need:
Total free space required is 5792768 bytes
Since you are installing a .tar image you are going to need to delete the current .bin file as well.
Otherwise delete the html directory and try the upgrade with only the .bin file
07-27-2009 02:05 PM
Hi Javier,
The 2950 is not capable of storing 2 FULL IOS (IOS BIN file plus the HTML) but it can accomodate 2 BIN files.
1. Delete the HTML sub-directory;
2. Copy the 2nd bin file from your TFTP server to the switch;
3. Point the bootvar to the 2nd BIN file; and
4. Reboot the switch.
Hope this helps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide