Return code 0x40450037 (Not a valid nxos image)
1.问题描述
硬件:C93180YC(Nexus NXOS)
软件版本:Release 9.3.8
需要描述:需要将Nexus93180从Release 9.3.8升级到10.3.6(M),在执行操作的时候,发现如下问题,提示“不是一个有效的NXOS镜像”。
switch# install all nxos bootflash:nxos64-cs.10.3.6.M.bin
Installer will perform compatibility check first. Please wait.
Installer is forced disruptive
Verifying image bootflash:/nxos64-cs.10.3.6.M.bin for boot variable "nxos".
[# ] 0% -- FAIL.
Return code 0x40450037 (Not a valid nxos image).
Please check the image cksum using `show file <image> md5sum`.
Pre-upgrade check failed. Return code 0x40450037 (Not a valid nxos image).
2.解决方案
从官方的角度来说,升级设备,有推荐的路径。如下所示:
其实也可以直接升级,不过需要做的操作有点不同。下面我们来记录如何直接升级,且不报错。
1)在任何时候升级,我们在操作之前,还是应该检查一下image的完整性,看看MD5是否对的上。
switch# show file bootflash:nxos64-cs.10.3.6.M.bin md5sum
0a4ebd679aaae89e44646099d17e21c9
2)进一步我们可以使用压缩该镜像:install all nxos bootflash:xxx.bin compact
switch# install all nxos bootflash:nxos64-cs.10.3.6.M.bin compact
Installer will perform compatibility check first. Please wait.
Compacting bootflash:/nxos64-cs.10.3.6.M.bin
................................
Compact bootflash:/nxos64-cs.10.3.6.M.bin done
3)进一步我们再通过install all nxos bootflash:xxx.bin命令进行升级
switch# install all nxos bootflash:nxos64-cs.10.3.6.M.bin
Installer will perform compatibility check first. Please wait.
Installer is forced disruptive
Verifying image bootflash:/nxos64-cs.10.3.6.M.bin for boot variable "nxos".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos64-cs.10.3.6.M.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos64-cs.10.3.6.M.bin.
[####################] 100% -- SUCCESS
Performing module support checks. [####################] 100% -- SUCCESS
Notifying services about system upgrade. [####################] 100% -- SUCCESS
Compatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------
1 yes disruptive reset Incompatible image for ISSU
<snip>
Switch will be reloaded for disruptive upgrade.
Do you want to continue with the installation (y/n)? [n] y
Install is in progress, please wait.
Performing runtime checks. [####################] 100% -- SUCCESS
Setting boot variables.
[####################] 100% -- SUCCESS
Performing configuration copy.
[####################] 100% -- SUCCESS
Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Finishing the upgrade, switch will reboot in 10 seconds.
switch#
待交换机重启完成之后,基本也就OK了。
3.有用的文档和工具
Change Nexus 3000, 3100, and 3500 NX-OS Compact Image File Size - Cisco
好好学习,天天向上!