簡介
本文檔介紹當因儲存容量不足而導致Cisco IOS® XE SD-WAN升級失敗時診斷和解決該問題的過程。
必要條件
WAN邊緣路由器
需求
思科建議您瞭解以下主題:
- 思科軟體定義廣域網路(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.無法將路由器型號c111-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://
您可以刪除下一個檔案清單。這些是出於故障排除目的而建立的內部日誌。
注意:如果確定沒有其他調查正在進行中,請刪除這些調查。
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. Reboot幫助釋放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
如果升級問題與以下錯誤相關:bootflash下的空間不足,請參考下一個說明。
步驟1. 啟用IOx。
Config-transaction
iox
commit
end
步驟2.運行下一個命令,將IOx日誌從bootflash移動到快閃記憶體。
app-hosting move system techsupport to flash:
步驟3.禁用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#
步驟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
提示:用於通過vManage升級SD-WAN cEdge路由器(使用CLI或vManage)進行升級
問題2
如果升級問題與以下錯誤「SD-WAN安裝程式檔案系統中空間不足」有關,請參閱以下說明。
步驟1.登入shell。
有關詳細資訊,請參閱。
步驟2.轉到.sdwaninstaller/images目錄。使用Linux命令查詢並刪除舊檔案。
cd /bootflash/.sdwaninstaller/images
ls -l
rm -rf
步驟3.使用Linux命令從外殼中退出。
exit
步驟4.繼續升級。
request platform software sdwan software install bootflash:
request platform software sdwan software activate
request platform software sdwan software upgrade-confirm
request platform software sdwan software set-default
提示:用於通過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 :
install
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更改引導變數在控制器模式下也被禁用。您可以將裝置移至自主模式、升級,然後將其移回控制器模式。
您可以使用命令show sdwan software
通過vManage GUI或CLI驗證版本是否已存在。
修正:通過vManage GUI或使用命令request platform software sdwan software remove
刪除未使用的映像。
您可以使用show sdwan software
指令,透過vManage GUI或CLI驗證版本是否已存在。
修正:通過vManage GUI或使用命令刪除未使用的映像 request platform software sdwan software remove
。
相關資訊