cisco 3650 灾难恢复模式(switch:),flash为read-only只读.无法新建或者copy文件...
cisco 3650 灾难恢复模式(switch:),flash为read-only只读.无法新建或者copy文件到flash
可以通过外插u盘启动进入ios,但是在ios模式下,还是不能对flash进行写入操作.
应该可以排除硬件故障,因为使用另一台新的3650导入了配置文件和升级新的ios后一样出现这种情况.(其他的10几台同型号交换机升级相同的ios后正常)
所以问题应该在升级的ios或者配置文件上,不知道有没有高手知道如何在switch:模式下更改flash的read-only为可以写入的状态.
Emergency Recovery
If the previous recovery methods fail, the 3850 Series Switches have a trap door method that you can use in order to recover the system. You must have a terminal that is connected to the management port of the switch that runs a TFTP server. Download a valid image file from CCO and store it in the root of the TFTP server.
It is likely that the switch is stuck at the switch: prompt. However, if you are in a boot loop, you can use the Mode button on the front of the switch in order to break the cycle: hold the button for approximately ten seconds, and the switch breaks the cycle and stops at the switch: prompt.
Complete these steps in order to perform an emergency recovery:
Set the switch IP address:
switch:
set IP_ADDR 192.0.2.123/255.255.255.0
Set the default gateway:
switch:
set DEFAULT_ROUTER 192.0.2.1
Ping the terminal that contains the TFTP server in order to test the connectivity:
switch:
ping 192.0.2.1
ping 192.0.2.1 with 32 bytes of data ...
Host 192.0.2.1 is alive.
Verify that the emergency files exist in the switch file system:
switch:
dir sda9:
Directory of sda9:/
2drwx1024 .
2drwx1024 ..
11-rwx18958824 cat3k_caa-recovery.bin
36903936 bytes available (20866048 bytes used)
Run the emergency install feature:
switch:
emergency-install tftp://192.0.2.1/cat3k_caa-universalk9.
SPA.03.03.00.SE.150-1.EZ.bin
The bootflash will be erased during install operation, continue (y/n)?Y
Starting emergency recovery (tftp://192.0.2.1/cat3k_caa-universalk9.
SPA.03.02.02.SE.150-1.EX2.bin)...
Reading full image into memory......................done
Nova Bundle Image
--------------------------------------
Kernel Address : 0x6042f5d8
Kernel Size : 0x317ccc/3243212
Initramfs Address : 0x607472a4
Initramfs Size : 0xdc6546/14443846
Compression Format: .mzip
Bootable image at @ ram:0x6042f5d8
Bootable image segment 0 address range
is in range .
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@
File "sda9:cat3k_caa-recovery.bin" uncompressed and installed,
entry point: 0x811060f0
Loading Linux kernel with entry point 0x811060f0 ...
Bootloader: Done loading app on core_mask: 0xf
### Launching Linux Kernel (flags = 0x5)
Initiating Emergency Installation of bundle tftp://192.0.2.1/
cat3k_caa-universalk9.SPA.03.03.00.SE.150-1.EZ.bin
Downloading bundle tftp://192.0.2.1/ cat3k_caa-universalk9.
SPA.03.03.00.SE.150-1.EZ.bin...
Validating bundle tftp://192.0.2.1/ cat3k_caa-universalk9.
SPA.03.03.00.SE.150-1.EZ.bin...
Installing bundle tftp://192.0.2.1/ cat3k_caa-universalk9.
SPA.03.03.00.SE.150-1.EZ.bin...
Verifying bundle tftp://192.0.2.1/ cat3k_caa-universalk9.
SPA.03.03.00.SE.150-1.EZ.bin...
Package cat3k_caa-base.SPA.03.03.00.SE.pkg is Digitally Signed
Package cat3k_caa-drivers.SPA.03.03.00.SE.pkg is Digitally Signed
Package cat3k_caa-infra.SPA.03.03.00.SE.pkg is Digitally Signed
Package cat3k_caa-iosd-universalk9.SPA.150-1.EX2.pkg is Digitally Signed
Package cat3k_caa-platform.SPA.03.03.00.SE.pkg is Digitally Signed
Package cat3k_caa-wcm.SPA.10.0.111.0.pkg is Digitally Signed
Preparing flash...
Syncing device...
Emergency Install successful... Rebooting
Restarting system. 之前遇到过一样的情况,和现场工程师远程手动拷贝镜像到USB,从USB启动,设备正常启动,拷贝镜像到FLASH. 可以看下这个链接:http://www.cisco.com/c/en/us/support/docs/switches/catalyst-3850-series-switches/117552-technote-cat3850-00.html
Emergency Recovery部分 metracy 发表于 2017-4-5 17:03
之前遇到过一样的情况,和现场工程师远程手动拷贝镜像到USB,从USB启动,设备正常启动,拷贝镜像到FLASH.
确实从usb是可以启动镜像进入ios的,但是进入ios后还是不能copy镜像或者install到flash. 因为flash仍然是read-only
metracy 发表于 2017-4-5 17:05
可以看下这个链接:http://www.cisco.com/c/en/us/support/docs/switches/catalyst-3850-series-switches/1 ...
非常感谢,通过emergency-install命令可以从 tftp服务器上安装ios进入flash。
引起此故障原因是配置文件有问题,导致boot参数里面没有指向正确的
页:
[1]