cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
20598
Views
5
Helpful
0
Comments
TCC_2
Level 10
Level 10

Core Issue

The Cisco 2600 and 3600 series routers do not support the squeeze command in Cisco IOS Software versions earlier than 12.2(1). Cisco IOS Software versions 12.2(1) and later do support the command. However, for the command to work, the Flash must first be erased while the Cisco IOS Software version 12.2 is running on the router. This is because an erase performed on the Cisco IOS Software version 12.2 creates a squeeze log. The squeeze log is not created if the Flash is erased on a Cisco IOS Software version earlier than 12.2.

The error appears similar to this:

2651#squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
%Error squeezing flash ()
2651# first create squeeze log by erasing the entire device

Resolution

To enable the squeeze operation to function properly, perform these steps:

1. Verify that the router is running Cisco IOS Software version 12.2 by issuing the show version command, as follows:

router#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(8)T5, RELEASE SOFTWARE (fc1)
TAC Support:
Copyright (c) 1986-2002 by Cisco Systems, Inc.
Compiled Fri 21-Jun-02 08:50 by ccai
Image text-base: 0x80008074, data-base: 0x80A2BD40
ROM: System Bootstrap, Version 12.2(7r) [cmong 7r], RELEASE SOFTWARE (fc1)
morannon uptime is 5 days, 1 hour, 27 minutes
System returned to ROM by power-on
System image file is "flash:c2600-i-mz.122-8.T5.bin"

2. Set up a TFTP server, and back up the Cisco IOS Software file to the TFTP server (if you do not already have a copy of the file). This is done by issuing the copy flash tftp command.

    For more information on this, refer to the Copying an Image from Flash Memory to a TFTP Server Example sections of Loading and Maintaining System Images.

3. Copy the file back to Flash through TFTP by issuing the copy tftp flash command. Select Yes at the erase option. Refer again to the Copying an Image from a TFTP Server to a Flash Memory File     System section of Loading and Maintaining System Images.

If the erase option is not given during the copy tftp flash command process, erase the Flash device. This is done by issuing the erase flash: command, then issue the copy tftp flash command.

Note: After erasing the Flash device, do not power cycle or reload the router, until the Cisco IOS Software image is back on the Flash device. Otherwise, it goes to ROM Monitor (ROMmon) mode.

4. After the Flash has been erased, and the Cisco IOS Software has been copied back to Flash, test the squeeze command functionality. This is done by copying a file to Flash, deleting it, and performing a squeeze.

This is an example of this, using the running-config file.

     a. Issue the show flash command  to verify what files are present on the Flash, as follows:

2600#show flash

System flash directory:
File  Length   Name/status
  1   7031032  c2600-i-mz.122-15.T2.bin
[7031096 bytes used, 9221832 available, 16252928 total]
16384K bytes of processor board System flash (Read/Write)

     b. Copy the running configuration to the Flash by issuing the copy running-config flash command, as shown below.

     Note: If you are prompted to erase the Flash (as in this example), type n. Do not press the Enter key, or the Flash and the Cisco IOS Software file will be erased.

2600#copy running-config flash:
Destination filename [running-config]?
Erase flash: before copying? [confirm]n
Verifying checksum...  OK (0xB839)
2141 bytes copied in 6.230 secs (344 bytes/sec)

     c. Issue the show flash command again to verify that the newly copied file is in Flash, as shown:

2600#show flash

System flash directory:
File  Length   Name/status
  1   7031032  c2600-i-mz.122-15.T2.bin
  2   2141     running-config
[7033304 bytes used, 9219624 available, 16252928 total]
16384K bytes of processor board System flash (Read/Write)

     d. Delete the file, as follows:

 2600#delete flash:running-config
Delete filename [running-config]?
Delete flash:running-config? [confirm]

     e. Issue the show flash command again to verify that the file is marked as deleted, as follows:

2600#show flash

System flash directory:
File  Length   Name/status
  1   7031032  c2600-i-mz.122-15.T2.bin
  2   2141     running-config [deleted]
[7033304 bytes used, 9219624 available, 16252928 total]
16384K bytes of processor board System flash (Read/Write)

     f. Issue the squeeze flash command, as follows:

2600#squeeze flash
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze of flash complete

     g. Issue show flash command again to verify that the file is deleted, and that all the space is recovered, as follows:

2600#show flash

System flash directory:
File  Length   Name/status
  1   7031032  c2600-i-mz.122-15.T2.bin
[7031096 bytes used, 9221832 available, 16252928 total]
16384K bytes of processor board System flash (Read/Write)

     h. The squeeze operation is verified.

     Note: If the Flash is erased again on a Cisco IOS Software version earlier than 12.2, the squeeze command will not work until the Flash has been erased again on a Cisco IOS Software version of 12.2 or later.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: