取消
显示结果 
搜索替代 
您的意思是: 
cancel
193
查看次数
1
有帮助
0
评论

故障描述

AP型号:AP1572

执行操作:进行AP的镜像转换,通过archive命令实现。

报错内容:

Unable to create temp dir "flash:/update"
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:7

AP升级操作

1.AP的版本镜像为8.3.102,需要升级到其他版本,首先从Cisco官网下载到对应的镜像,例如:c1570-k9w8-tar.153-3.JPS.tar

2.Console登录到AP的命令行,输出命令:archieve download-sw /overwrite tftp://10.1.2.254/c1570-k9w8-tar.153-3.JPS.tar 命令,从TFTP服务器获取目标镜像。

AP001#archive download-sw /overwrite tftp://10.1.2.254/c1570-k9w8-tar.153-3.JPS.tar

##注意##
前提肯定是在服务器上开启了TFTP服务,且服务器的根目录存在了目标镜像!

执行如上命令后出现如下报错:
Unable to create temp dir "flash:/update"
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:7

AP001#
ERROR: Image is not a valid IOS image archive.
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:3

排查操作

1.尝试在CLI输入dir或dir flash:等命令,看看是否有提示或是否能够查看。

AP001#dir
Directory of flash:/

    2  -rwx          64   Jul 8 2017 14:23:30 +00:00  sensord_CSPRNG0
    3  -rwx         251   Mar 1 1993 00:00:31 +00:00  mesh_port_cfg.txt
    4  -rwx         278   Jan 1 1970 00:05:40 +00:00  info
   24  drwx         960  Dec 19 2016 07:05:08 +00:00  c1570-k9w8-mx.153-3.JD
    5  -rwx         341   Jul 8 2017 14:23:30 +00:00  env_vars
    8  -rwx        6168   Jul 8 2017 14:27:53 +00:00  private-multiple-fs
  232  -rwx           0   Mar 1 1993 00:00:58 +00:00  config.txt
  233  drwx           0   Mar 1 1993 00:01:03 +00:00  configs
    9  drwx           0   Jul 8 2017 14:27:53 +00:00  update
    6  -rwx          64   Jul 8 2017 14:23:30 +00:00  sensord_CSPRNG1
    7  -rwx       77786   Jul 8 2017 14:23:35 +00:00  event.log

40900608 bytes total (27873280 bytes free)

AP001#dir flash:update
Directory of flash:/update/

No files in directory

40900608 bytes total (27857920 bytes free)

可以看到这里可以通过dir查看到flash,且目前还有27MB多的空间,所以空间应该是足够的。

2.这个时候还是可以尝试对flash进行fsck flash:操作。该操作是对设备的闪存进行文件系统检查和修复。

AP001#fsck flash: 
Fsck operation may take a while. Continue? [confirm]
flashfs[2]: 22 files, 6 directories
flashfs[2]: 0 orphaned files, 0 orphaned directories
flashfs[2]: Total bytes: 40900608
flashfs[2]: Bytes used: 13027328
flashfs[2]: Bytes available: 27873280
flashfs[2]: flashfs fsck took 10 seconds.
Fsck of flash: complete
AP001#

3.进一步执行镜像转换操作。发现还是报错

AP001#archive download-sw /overwrite tftp://10.1.2.254/c1570-k9w8-tar.153-3.JPS.tar

Unable to create temp dir "flash:/update"
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:7
AP001#
ERROR: Image is not a valid IOS image archive.
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:3

4.尝试清除AP的配置,通过命令clear capwap private-config,执行重启后,依然是如上报错。

5.既然在报错"flash:/update",我们尝试将该文件夹删除。

AP001#delete flash:update
Delete filename [update]? 
Delete flash:/update? [confirm]
%Error deleting flash:/update (Is a directory)
AP001#
##这里是文件夹,所以可以用rmdir命令##
AP001#rmdir flash:update
Remove directory filename [update]? 
Delete flash:/update? [confirm]
Removed dir flash:/update
AP001#

6.删除update的文件夹之后,再尝试操作执行镜像转换。这里就可以了!!!

AP001#archive download-sw /overwrite tftp://10.1.2.254/c1570-k9w8-tar.153-3.JPS.tar
examining image...
Loading c1570-k9w8-tar.153-3.JPS.tar from 10.1.2.254 (via BVI1): !
extracting info (285 bytes)
Image info:
    Version Suffix: k9w8-.153-3.JPS
    Image Name: c1570-k9w8-mx.153-3.JPS
    Version Directory: c1570-k9w8-mx.153-3.JPS
    Ios Image Size: 12012032
    Total Image Size: 13281792
    Image Feature: WIRELESS LAN|LWAPP
    Image Family: C1570
    Wireless Switch Management Version: 17.14.0.79
MwarVersion:08046400.First AP Supported Version:08006600.

Image version check passed  

Extracting files...
c1570-k9w8-mx.153-3.JPS/ (directory) 0 (bytes)
c1570-k9w8-mx.153-3.JPS/html/ (directory) 0 (bytes)
c1570-k9w8-mx.153-3.JPS/html/level/ (directory) 0 (bytes)
extracting c1570-k9w8-mx.153-3.JPS/c1570-k9w8-mx.153-3.JPS (12009183 bytes)!!!!!!!!!!

至此,镜像操作可以转换完成。

解决方法总结

当出现如下报错的时候:

Unable to create temp dir "flash:/update"
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:7

AP001#
ERROR: Image is not a valid IOS image archive.
Download image failed, notify controller!!! From:8.3.102.0 to 0.0.0.0, FailureCode:3

可以尝试操作:

1.fsck flash:

2.rmdir flash:update

如上操作执行后,再尝试执行镜像转换操作。

 

入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接