简介
本文档介绍在Cisco IOS® XE SD-WAN升级因存储容量不足而失败时诊断和解决问题的流程。
先决条件
广域网边缘路由器
要求
Cisco 建议您了解以下主题:
- 思科软件定义广域网(SD-WAN)
- Cisco IOS® XE命令行界面(CLI)
对于Cisco IOS XE SD-WAN升级信息使用CLI或vManage升级Cisco IOS XE SD-WAN路由器
使用的组件
本文档基于以下软件和硬件版本:
- 路由器c1111-8P
- 软件版本17.3.2
- 软件版本17.3.4
- 处于控制器模式的路由器
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
条件
1. 无法将路由器型号c1111-8p升级到17.3以及17.5之前的其它版本。
2. 请考虑以下错误:
Not enough space under bootflash for image download and package expansion on image installation. Required space: 1207202432 Available space: 659275776. Image installation failed.
Not enough space in SD-WAN installer filesystem. Please remove one of the installed images and try again. SD-WAN installer filesystem size - 396672 Kilobytes, Available space - 196986 Kilobytes, Required space - 243602 Kilobytes.
3. 升级失败,如下图所示:
映像1
图像2
4. 只安装了一个版本。使用命令 show sdwan software 进行验证。
示例
edge#show sdwan software VERSION ACTIVE DEFAULT PREVIOUS CONFIRMED TIMESTAMP ----------------------------------------------------------------------------------- 17.03.04a.0.5574 true true false user 2021-10-22T23:00:30-00:00 Total Space:387M Used Space:191M Available Space:192M
故障排除
1.使用以下命令删除不必要的文件:
delete /force /recursive bootflash:/<directory>/<file ext>
您可以删除下一个文件列表。它们是内部日志,用于进行故障排除。
注意:如果确定没有其他调查正在进行,请删除这些调查。
bootflash:/vmanage-admin/*.tar.gz
bootflash:/core/*.core.gz
bootflash:/core/*.tar.gz
bootflash:/syslog/*
bootflash:/tracelogs/*
bootflash:/crashinfo_*
示例
delete /force /recursive bootflash:/tracelog/*
delete /force /recursive bootflash:/ vmanage-admin/*.tar.gz
警告:请勿删除这些文件。它们是路由器功能的基本文件。
bootflash:/.sdwaninstaller
bootflash:/.sdwaninstallerfs
bootflash:/.cdb_backup folder
bootflash:/sdwan folder
bootflash:/*pkg
bootflash:/*.conf.
2. 重新启动有助于释放bootflash内存,如示例所示。
警告:重新启动期间控制层面和数据层面会发生摆动。
*** Before Reboot *** edge#show sdwan software VERSION ACTIVE DEFAULT PREVIOUS CONFIRMED TIMESTAMP ----------------------------------------------------------------------------------- 17.03.04a.0.5574 true true false user 2021-10-22T23:00:30-00:00 Total Space:387M Used Space:191M Available Space:192M >>> Here edge# *** Rebooting edge edge#reload Proceed with reload? [confirm]Connection to 192.168.1.6 closed by remote host. *** After Reboot *** edge#show sdwan software VERSION ACTIVE DEFAULT PREVIOUS CONFIRMED TIMESTAMP ----------------------------------------------------------------------------------- 17.03.04a.0.5574 true true false user 2021-10-22T23:00:30-00:00 Total Space:387M Used Space:190M Available Space:193M >>>> Here
解决方法
如果之前的操作不起作用,请应用以下步骤升级路由器c1111-8p。
问题 1
如果升级问题与此错误Not enough space under bootflash有关,请参阅下一说明。
步骤1: 启用IOx。
Config-transaction
iox
commit
end
第二步:运行下一个命令,将IOx日志从bootflash移到闪存。
app-hosting move system techsupport to flash:
第三步: 禁用IOx。
Config-transaction
no iox
commit
end
示例
Before IOx enabling
edge#dir
Directory of bootflash:/
<snipped>
2908606464 bytes total (646643712 bytes free)
edge#
After IOx disabling
edge#dir
Directory of bootflash:/
<snipped>
2908606464 bytes total (1671614464 bytes free)
edge#
第四步: 继续升级。
request platform software sdwan software install bootflash:<version.bin>
request platform software sdwan software activate <IOS version>
request platform software sdwan software upgrade-confirm
request platform software sdwan software set-default <IOS version>
提示:对于通过vManage升级SD-WAN cEdge路由器,请使用CLI或vManage
问题 2
如果升级问题与此错误“SD-WAN安装程序文件系统中空间不足”有关,请参阅以下说明。
步骤1: 登录到shell。
有关详细信息,请参阅。
第二步: 转到.sdwaninstaller/images目录。使用Linux命令查找和删除旧文件。
cd /bootflash/.sdwaninstaller/images
ls -l
rm -rf <old file>
第三步: 使用Linux命令退出外壳。
exit
第 4 步: 继续升级。
request platform software sdwan software install bootflash:<version.bin>
request platform software sdwan software activate <IOS version>
request platform software sdwan software upgrade-confirm
request platform software sdwan software set-default <IOS version>
提示:对于通过vManage升级SD-WAN cEdge路由器,请使用CLI或vManage
示例
**** Before to Clean Up **** [23-Sep-2022 18:08:05 UTC] Installing software image [23-Sep-2022 18:08:09 UTC] Current active partition: 17.03.04a.0.5574 [23-Sep-2022 18:08:10 UTC] Configuring upgrade confirm timer to 15 minutes [23-Sep-2022 18:08:11 UTC] Software image: c1100-universalk9.17.03.05.SPA.bin [23-Sep-2022 18:08:11 UTC] Software image download may take upto 180 minutes [23-Sep-2022 18:08:17 UTC] Not enough space in SDWAN installer filesystem. Please remove one of the installed images and try again. SDWAN installer filesystem size - 396672 Kilobytes, Available space - 196986 Kilobytes, Required space - 243602 Kilobytes. [23-Sep-2022 18:08:17 UTC] Failed to process device request - Error type : application Error tag : operation-failed Error info : <error-info> <bad-element>install</bad-element> </error-info> edge#show sdwan software VERSION ACTIVE DEFAULT PREVIOUS CONFIRMED TIMESTAMP ----------------------------------------------------------------------------------- 17.03.04a.0.5574 true true false user 2021-10-22T23:00:30-00:00 Total Space:387M Used Space:190M Available Space:193M >>> Here edge# **** Clean old files from sdwaninstaller **** [edge:/]$ cd /bootflash/.sdwaninstaller/images [edge:/bootflash/.sdwaninstaller/images]$ ls -l total 2 drwxr-xr-x. 3 root root 1024 Oct 3 2019 SR_BOOT=usb0:c1100-ucmk9.16.9.3.SPA.bin drwxr-xr-x. 3 root root 1024 Sep 23 13:33 c1100-universalk9.17.03.04a.SPA.bin [edge:/bootflash/.sdwaninstaller/images]$ rm -rf SR_BOOT=usb0:c1100-ucmk9.16.9.3.SPA.bin [edge:/bootflash/.sdwaninstaller/images]$ ls -l total 1 drwxr-xr-x. 3 root root 1024 Sep 23 13:33 c1100-universalk9.17.03.04a.SPA.bin [edge:/bootflash/.sdwaninstaller/images]$ exit exit Session log harddisk:tracelogs/system_shell_R0-0.18547_0.20220923134926.bin closed. edge# edge#show sdwan software VERSION ACTIVE DEFAULT PREVIOUS CONFIRMED TIMESTAMP ----------------------------------------------------------------------------------- 17.03.04a.0.5574 true true false user 2021-10-22T23:00:30-00:00 Total Space:387M Used Space:120M Available Space:262M >>>> Space increased **** Upgrade Successful: [23-Sep-2022 18:53:38 UTC] Installing software image [23-Sep-2022 18:53:43 UTC] Current active partition: 17.03.04a.0.5574 [23-Sep-2022 18:53:44 UTC] Configuring upgrade confirm timer to 15 minutes [23-Sep-2022 18:53:44 UTC] Software image: c1100-universalk9.17.03.05.SPA.bin [23-Sep-2022 18:53:44 UTC] Software image download may take upto 180 minutes [23-Sep-2022 18:53:54 UTC] Connection Instance: 2, Color: private1 [23-Sep-2022 18:53:54 UTC] Downloading http://192.168.16.17:8080/software/package/c1100-universalk9.17.03.05.SPA.bin?deviceId=10.10.10.10 [23-Sep-2022 19:06:04 UTC] Downloaded http://192.168.16.17:8080/software/package/c1100-universalk9.17.03.05.SPA.bin?deviceId=10.10.10.10 [23-Sep-2022 19:09:31 UTC] install_add: START Fri Sep 23 14:06:10 COT 2022 Sep 23 14:06:12.207 %INSTALL-5-INSTALL_START_INFO: R0/0: install_engine: Started install add bootflash:c1100-universalk9.17.03.05.SPA.bin [23-Sep-2022 19:09:31 UTC] Installed 17.03.05.0.6600
警告
通过vManage GUI升级期间可能存在的问题:
修复:验证bootflash并删除所有未使用的映像。您可以使用命令通过CLI文件删除所有软件包 # delete bootflash:*17.03.01*.
此命令将删除名为17.03.01的所有文件。
Edge#delete bootflash:*17.03.01* Delete filename [*17.03.01*]? Delete bootflash:/isr4300-firmware_dreamliner.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_dsp_analogbri.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_dsp_sp2700.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_dsp_tilegx.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_ngwic_t1e1.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_async.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_bri_st_fw.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_cwan.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_ge.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_shdsl.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_ssd.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_nim_xdsl.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_prince.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-rpboot.17.03.01a.SPA.pkg? [confirm] Delete bootflash:/isr4300-firmware_sm_10g.17.03.01a.SPA.pkg? [confirm]
您也可以从USB驱动器启动,从Bootflash删除所有映像,将bin文件复制到Bootflash,然后重新启动。
注意:如果路由器处于控制器模式,则来自与数据包相关的IOS-XE的所有命令均无效。
注意:通过CLI更改引导变量在控制器模式下也处于禁用状态。您可以将设备移至自主模式,进行升级,然后将其移回控制器模式。
您可以通过vManage GUI或CLI使用命令show sdwan software验证版本是否已存在。
修复:通过vManage GUI或使用request platform software sdwan software remove <Name>命令删除未使用的映像。
您可以通过vManage GUI或CLI使用命令show sdwan software验证版本是否已存在。
修复:通过vManage GUI或使用 request platform software sdwan software remove <Name>命令删除未使用的映像。
相关信息