cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
6635
Views
15
Helpful
3
Replies
uzbayev.marat1
Beginner

Nexus 3000 firmware upgrade issue

Hi Guys,

Want to upgrade nexus 3172T. 

Problem is that there are low free space to copy new .bin

Here what dir show:

4096 Dec 14 14:22:12 2016 .rpmstore/
0 Dec 14 14:05:24 2016 .tclsh-history
1358 Dec 14 14:23:24 2016 20161214_092322_poap_12723_init.log
1358 Dec 14 14:37:13 2016 20161214_093712_poap_12774_init.log
2097170 Feb 03 17:03:56 2017 20170202_090628_poap_12778_1.log
664769 Feb 03 17:23:26 2017 20170202_090628_poap_12778_2.log
1048649 Feb 02 14:44:13 2017 20170202_090628_poap_12778_init.log
334 Dec 14 14:25:09 2016 license_FOC2047R0RH_9_1.lic
4096 Feb 03 20:41:40 2017 logflash/
4096 Apr 24 11:22:30 2018 lost+found/
696987648 Feb 03 20:38:00 2017 nxos.7.0.3.I4.2.bin
4096 Dec 14 14:23:22 2016 scripts/
1024 Apr 27 16:57:26 2017 sprom_2_0_1
1024 Apr 27 16:57:26 2017 sprom_3_0_0
4096 Dec 14 14:22:31 2016 virtual-instance/

Usage for bootflash://
797736960 bytes used
812666880 bytes free
1610403840 bytes total

 

and new nxos is 882479104 bytes. 

I cannot delete existing nxos file. types "Switch is booted with 'nxos.7.0.3.I4.2.bin'. Overwriting/deleting this image is not allowed". even after "no boot nxos"

 

Any ideas? 

 

1 ACCEPTED SOLUTION
3 REPLIES 3
Gesha2424
Beginner

You can cheat your way around it - delete the image via python (obviously substitute your file you are trying to remove)

switch# python
Python 2.7.5 (default, Oct  8 2013, 23:59:43)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.remove('/bootflash/nxos.7.0.3.I4.6.bin')
>>> exit()

In my case, I couldn't do the "install all nxos" because there was less than 650MB available after image copy, so I had to copy the target image to bootflash manually and then set "boot system nxos" variable. Then I was able to reboot the switch and it came up with the right code.

install all nxos nxos.7.0.3.I7.8.bin compact

After this CLI image become almost twice smaller.

Thi CLI doesn't do any installations, just squeeze the image