无镜像文件启动N5K
参考https://supportforums.cisco.com/t5/data-center-videos/how-to-restore-a-cisco-nexus-switch-from-loader-prompt/ba-p/3101970
1、删除镜像
初始化设备
switch(boot)# init system check-filesystem
2、无镜像启动,从TFTP服务器启动
loader> set ip 172.16.1.2 255.255.255.0
loader> set gw 172.16.1.1
loader> boot tftp:// 172.16.1.100/n5000-uk9-kickstart.7.1.4.N1.1.bin
3、从TFTP服务器拷贝镜像文件(kickstart和system image)到bootflash
switch(boot)(config)# int mgmt0
switch(boot)(config-if)# ip add 172.16.1.2 255.255.255.0
switch(boot)(config-if)# no shut
switch(boot)#copy tftp://172.16.1.100/n5000-uk9.7.1.4.N1.1.bin bootflash:n5000-uk9.7.1.4.N1.1.bin
switch(boot)#copy tftp://172.16.1.100/n5000-uk9-kickstart.7.1.4.N1.1.bin bootflash:n5000-uk9-kickstart.7.1.4.N1.1.bin
4、load system image
switch(boot)#load n5000-uk9-kickstart.7.1.4.N1.1.bin
5、finish the install with install all
N5K-2#
install all kickstart bootflash:n5000-uk9-kickstart.7.1.4.N1.1.bin system bootflash:n5000-uk9.7.1.4.N1.1.bin
最后一步install报错,报错原因是他安装的版本与本身运行的版本一样。
有时候安装完成后需要把U盘拔掉,不然会从U盘启动
可以尝试无镜像的时候从U盘启动,虽然它识别不了但是有可能可以直接启动。。。