04-04-2018 01:39 AM - edited 03-01-2019 06:07 AM
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.
As per Cisco Release Note; starting with Release 7.x, an enhancement is added to reduce the image size with the following command.
Switch# install all nxos bootflash:<image_name> compact
Before you compact the currently booted image, you need to;
In my case, Following is the process I followed.
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
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
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
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
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
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
Reference:
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>
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
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: