设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 3270|回复: 5
收起左侧

cisco 3650 灾难恢复模式(switch:),flash为read-only只读.无法新建或者copy文件...

[复制链接]
发表于 2017-4-5 16:20:23 | 显示全部楼层 |阅读模式


        cisco 3650 灾难恢复模式(switch:),flash为read-only只读.无法新建或者copy文件到flash
        可以通过外插u盘启动进入ios,但是在ios模式下,还是不能对flash进行写入操作.
       
        应该可以排除硬件故障,因为使用另一台新的3650导入了配置文件和升级新的ios后一样出现这种情况.(其他的10几台同型号交换机升级相同的ios后正常)

        所以问题应该在升级的ios或者配置文件上,不知道有没有高手知道如何在switch:模式下更改flash的read-only为可以写入的状态.


11.png
发表于 2017-4-5 17:01:58 | 显示全部楼层
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:/

    2  drwx  1024       .
    2  drwx  1024       ..
   11  -rwx  18958824   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 [0x81100000, 0x81b80000]
is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@
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.
沙发 2017-4-5 17:01:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-4-5 17:03:49 | 显示全部楼层
之前遇到过一样的情况,和现场工程师远程手动拷贝镜像到USB,从USB启动,设备正常启动,拷贝镜像到FLASH.
板凳 2017-4-5 17:03:49 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-4-5 17:05:18 | 显示全部楼层
可以看下这个链接:http://www.cisco.com/c/en/us/sup ... ote-cat3850-00.html
Emergency Recovery部分
地板 2017-4-5 17:05:18 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-4-6 08:31:07 | 显示全部楼层
metracy 发表于 2017-4-5 17:03
之前遇到过一样的情况,和现场工程师远程手动拷贝镜像到USB,从USB启动,设备正常启动,拷贝镜像到FLASH.

确实从usb是可以启动镜像进入ios的,但是进入ios后还是不能copy镜像或者install到flash.    因为flash仍然是read-only
5# 2017-4-6 08:31:07 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-4-6 18:24:25 | 显示全部楼层
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参数里面没有指向正确的
6# 2017-4-6 18:24:25 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-16 19:54 , Processed in 0.060303 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表