cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5997
Views
20
Helpful
2
Comments
myat.thu1
Level 1
Level 1

Symptoms

 Just want to share additional steps required for upgrade process on Nexus 3000 which I encountered during on-site RCM. In my case, the upgrade path is nxos.7.0.3.I6.1 à nxos.7.0.3.I7.1.bin. On the Cisco Nexus 3000 Series switches, the bootflash size is limited to 1.4GB to 1.6GB. There isn’t enough space for new image after freeing up all the unnecessary files from the bootflash.

Diagnosis

As per Cisco Release Note; starting with Release 7.x, an enhancement is added to reduce the image size with the following command.

Solution

 

Switch# install all nxos bootflash:<image_name> compact

 

Before you compact the currently booted image, you need to;

  • Ensure a minimum of 750MB space is available in bootflash (Cisco Note: This is required to compact the currently booted image)
  • You need to compact the currently loaded image before you copied other image to bootflash. (Cisco Note: You cannot compact the currently loaded image if you have another image copied on the bootflash.)

 

In my case, Following is the process I followed.

 

  1. Delete unnecessary files from bootflash to Free up bootflash.

Switch# dir

       4096    Jan 09 15:40:06 2018  .rpmstore/

       4096    Jan 09 15:40:32 2018  .swtam/

          0    Aug 17 08:34:02 2017  .tclsh-history

       1868    Jan 09 15:38:08 2018  bios_daemon.dbg

        334    Aug 17 08:54:09 2017  license_FOC2127R15A_72_1.lic

       4096    Nov 17 13:30:08 2017  logflash/

       4096    Jan 09 15:30:09 2018  lost+found/

  759941120    Jan 08 11:05:34 2018  nxos.7.0.3.I6.1.bin

          0    Nov 17 14:01:27 2017  platform-sdk.cmd

       4096    Aug 17 08:52:09 2017  scripts/

       1024    Jan 09 15:39:55 2018  sprom_2_0_1

       1024    Jan 09 15:39:55 2018  sprom_3_0_0

       4096    Aug 17 08:51:17 2017  virtual-instance/

Usage for bootflash://

  856780800 bytes used

  759320576 bytes free

1616101376 bytes total

 

  1. Compact the currently booted image.

Switch# install all nxos bootflash:nxos.7.0.3.I6.1.bin compact

Installer will perform compatibility check first. Please wait.

Compacting currently loaded image bootflash:/nxos.7.0.3.I6.1.bin

...........................

Compact bootflash:/nxos.7.0.3.I6.1.bin done

 

  1. The currently booted file was compacted down to 400MB from 750MB.

Switch# dir

       4096    Jan 09 15:40:06 2018  .rpmstore/

       4096    Jan 09 15:40:32 2018  .swtam/

          0    Aug 17 08:34:02 2017  .tclsh-history

       1868    Jan 09 15:38:08 2018  bios_daemon.dbg

        334    Aug 17 08:54:09 2017  license_FOC2127R15A_72_1.lic

       4096    Nov 17 13:30:08 2017  logflash/

       4096    Jan 09 15:30:09 2018  lost+found/

  404853111    Jan 10 09:18:45 2018  nxos.7.0.3.I6.1.bin

          0    Nov 17 14:01:27 2017  platform-sdk.cmd

       4096    Aug 17 08:52:09 2017  scripts/

       1024    Jan 09 15:39:55 2018  sprom_2_0_1

       1024    Jan 09 15:39:55 2018  sprom_3_0_0

       4096    Aug 17 08:51:17 2017  virtual-instance/

Usage for bootflash://

502214656 bytes used

1113886720 bytes free

1616101376 bytes total

 

  1. Transfer target image to the switch.

Switch# dir

       4096    Jan 09 15:40:06 2018  .rpmstore/

       4096    Jan 09 15:40:32 2018  .swtam/

          0    Aug 17 08:34:02 2017  .tclsh-history

       1868    Jan 09 15:38:08 2018  bios_daemon.dbg

        334    Aug 17 08:54:09 2017  license_FOC2127R15A_72_1.lic

       4096    Nov 17 13:30:08 2017  logflash/

       4096    Jan 09 15:30:09 2018  lost+found/

  404853111    Jan 10 09:18:45 2018  nxos.7.0.3.I6.1.bin

  882475008    Jan 10 09:41:13 2018  nxos.7.0.3.I7.1.bin

          0    Nov 17 14:01:27 2017  platform-sdk.cmd

       4096    Aug 17 08:52:09 2017  scripts/

       1024    Jan 09 15:39:55 2018  sprom_2_0_1

       1024    Jan 09 15:39:55 2018  sprom_3_0_0

       4096    Aug 17 08:51:17 2017  virtual-instance/

Usage for bootflash://

1384689664 bytes used

  231411712 bytes free

1616101376 bytes total

 

  1. Compact the target image as below.

Switch# install all nxos bootflash:nxos.7.0.3.I7.1.bin compact

Installer will perform compatibility check first. Please wait.

Compacting bootflash:/nxos.7.0.3.I7.1.bin

............................

Compact bootflash:/nxos.7.0.3.I7.1.bin done

 

 

  1. This compact the target NXOS file to 420MB from 880MB.

Switch# dir

       4096    Jan 09 15:40:06 2018  .rpmstore/

       4096    Jan 09 15:40:32 2018  .swtam/

          0    Aug 17 08:34:02 2017  .tclsh-history

       1868    Jan 09 15:38:08 2018  bios_daemon.dbg

        334    Aug 17 08:54:09 2017  license_FOC2127R15A_72_1.lic

       4096    Nov 17 13:30:08 2017  logflash/

       4096    Jan 09 15:30:09 2018  lost+found/

  404853111    Jan 10 09:18:45 2018  nxos.7.0.3.I6.1.bin

  428654946    Jan 10 09:45:23 2018  nxos.7.0.3.I7.1.bin

          0    Nov 17 14:01:27 2017  platform-sdk.cmd

       4096    Aug 17 08:52:09 2017  scripts/

       1024    Jan 09 15:39:55 2018  sprom_2_0_1

       1024    Jan 09 15:39:55 2018  sprom_3_0_0

       4096    Aug 17 08:51:17 2017  virtual-instance/

Usage for bootflash://

  930430976 bytes used

  685670400 bytes free

1616101376 bytes total

 

  1. After compacting both images, you can continue with usual “install all” procedure to upgrade the switch.

 

NOTES

  • The install all nxos bootflash:<image_name> compact CLI option is applicable for the images with Release (7.0.3.I3.*) version or later. Do not compact the older Cisco Nexus 3000 Series images with this CLI option.
  • The compacted image on Cisco Nexus 30xx, Cisco Nexus 3172, or Cisco Nexus 3172-XL switches should be used only on the respective switches.
  • Approximately 650MB free space is required in the bootflash to perform ISSU or fast-reload. With the current bootflash, an ISSU or fast-reload cannot be performed if there are two images on the bootflash and free bootflash space is below 600MB.
  • Starting with Release 7.0(3)I5(2), you can compact the image while copying the image to the switch’s bootflash or USB drive using an additional option in the copy command. The compact option in the copy command overrides the bootflash space limitation as the image is compacted at the time of transferring the image to the switch’s bootflash or USB drive. The compact option with copy command is allowed only with SCP protocol. (I have tried option but doesn’t work for me – let me know if someone manage to get this work)
    • For example:
      • switch# copy scp:<source image name> bootflash:<image name> compact vrf <vrf name>

 

Reference:

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus3000/sw/upgrade/7_x/Cisco_n3k_Upgrade_Downgrade_7x.html#pgfId-771878

Comments
nrusiecki
Level 1
Level 1

Were you ever able to get the compact to work from scp?

switch# copy scp:<source image name> bootflash:<image name> compact vrf <vrf name>

leciir
Level 1
Level 1

I was able to get the image to compact using SCP when running nxos.7.0.3.I7.2.bin. But not when running nxos.7.0.3.i4.8a.bin. Make sure you have enough room in bootflash. 

 

To get nxos.7.0.3.I7.8.bin installed I first had to install nxos.7.0.3.I7.2.bin. 

 

Here's the upgrade path that work for me: nxos.7.0.3.i4.8a.bin --> nxos.7.0.3.I7.2.bin --> nxos.7.0.3.I7.8.bin 

 

1. install all nxos bootflash:nxos.7.0.3.i4.8a.bin compact

2. copy scp:nxos.7.0.3.I7.2.bin boothflash:

3. install all nxos bootflash:nxos.7.0.3.I7.2.bin compact

4. install all nxos bootflash:nxos.7.0.3.I7.2.bin

5. del bootflash:nxos.7.0.3.i4.8a.bin

6. copy scp:nxos.7.0.3.I7.2.bin boothflash: compact

7. install all nxos boothflash:nxos.7.0.3.I7.8.bin

 

 

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:

Review Cisco Networking for a $25 gift card