问题描述:
登录FTP服务器后,当执行get S5300EI-V200R005C00SPC500.CC命令后,系统提示存储空间不足
[ftp] get S5300EI-V200R005C00SPC500.cc
Error: Failed to run this command because of insufficient storage spac
处理过程:
通过dir 查看存储空间,发现系统空间不
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 13,547,828 Jul 04 2016 17:12:15 S5300EI-V200R005C00SPC300.cc
1 -rw- 36 Dec 15 2017 03:47:22 $_patchstate_reboot
2 -rw- 1,718 Dec 19 2017 08:04:07 private-data.txt
3 drw- - Jan 20 2017 01:54:30 user
4 -rw- 588,768 Apr 19 2017 14:30:39 s5300ei-v200r005sph013.pat
5 -rw- 4 Dec 26 2017 09:55:43 snmpnotilog.txt
6 -rw- 501,053 Jul 04 2016 17:15:06 s5300ei-v200r005sph011.pat
7 -rw- 3,684 Dec 15 2017 03:47:30 $_patch_history
8 drw- - Jan 20 2017 01:55:23 dhcp
9 drw- - Jan 20 2017 01:57:37 syslogfile
10 drw- - Jan 20 2017 01:57:49 resetinfo
11 -rw- 1,268 Dec 15 2017 03:43:59 hostkey
12 -rw- 916 Dec 15 2017 03:44:09 serverkey
13 -rw- 402,189 Apr 19 2017 14:41:09 diag.txt
14 -rw- 2,208 Dec 19 2017 16:04:48 vrpcfg.zip
15 -rw- 613,879 Dec 15 2017 03:45:42 s5300ei-v200r005sph015.pat
23,008 KB total (6,136 KB free)
尝试删除现有S5300EI-V200R005C00SPC300.cc版本文件,系统提示该文件为当前系统启动文件,无法删除。
Info:This is Next startup system software.If you delete it,there is no software to reboot successfully!Confirm to delete the file? [Y/N]:y
Delete flash:/S3700-28TP-EI-V100R006C03.CC?[Y/N]:y
Info: Deleting file flash:/ S5300EI-V200R005C00SPC300.CC
Error: Invalid operation, this is system startup file.
Error: Deleting file flash:/ S5300EI-V200R005C00SPC300.CC failed.
解决方案:
通过文档查询得知,在系统视图下无法删除当前启动文件,需进入诊断视图删除当前启动文件,才能在系统视图删除。
[Quidway]diagnose
[Quidway-diagnose]undo startup system-software
[Quidway-diagnose]return
Warning: The contents of file flash:/S5300EI-V200R005C00SPC300.cccannot be recycled. Continue? [Y/N]:y
Info: Deleting file flash:/S5300EI-V200R005C00SPC300.cc...........succeeded.
成功删除S5300EI-V200R005C00SPC300.cc版本文件后,存储空间充足,再次访问FTP服务器下载 S5300EI-V200R005C00SPC500.CC版本文件即可完成升级。
建议与总结:
交换机正在运行的系统在系统视图下无法删除当前启动文件,需进入诊断视图删除当前启动文件,才能在系统视图下删除
示例:
<S5720>display startup
MainBoard:
Configured startup system software: flash:/s5720si-v200r008c00spc500.cc
Startup system software: flash:/s5720si-v200r008c00spc500.cc
Next startup system software: flash:/s5720si-v200r008c00spc500.cc
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: default
Next startup paf file: default
Startup license file: default
Next startup license file: default
Startup patch package: flash:/s5720si-v200r008sph005.pat
Next startup patch package: flash:/s5720si-v200r008sph005.pat
<S5720>sys
[S5720]diagnose
[S5720-diagnose]undo startup system-software
[S5720-diagnose]qu
[S5720]display startup
MainBoard:
Configured startup system software: NULL
Startup system software: NULL
Next startup system software: NULL
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: default
Next startup paf file: default
Startup license file: default
Next startup license file: default
Startup patch package: flash:/s5720si-v200r008sph005.pat
Next startup patch package: flash:/s5720si-v200r008sph005.pat
<S5720>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 drw- - Sep 21 2017 15:29:49 dhcp
1 drw- - Mar 18 2017 12:48:33 user
2 -rw- 36 Sep 21 2017 15:37:58 $_patchstate_reboot
3 -rw- 290,944 Jul 14 2016 11:46:58 s5720si-v200r008sph005.pat
4 -rw- 584 Sep 21 2017 15:40:23 vlan.dat
5 -rw- 3,684 Sep 21 2017 15:37:58 $_patch_history
6 drw- - Jan 02 2021 11:59:27 logfile
7 -rw- 2,472 Dec 21 2020 04:48:21 vrpcfg.zip
8 -rw- 836 Jun 02 2020 00:38:02 rr.bak
9 -rw- 836 Jun 02 2020 00:38:02 rr.dat
10 -rw- 4,895 Jun 02 2020 00:37:52 private-data.txt
11 drw- - Jun 04 2020 03:27:03 localuser
12 -rw- 4 Sep 21 2017 15:47:00 snmpnotilog.txt
13 -rw- 2,156,027 Jun 02 2020 00:38:59 help.web
14 -rw- 64,524,572 Jul 14 2016 11:44:12 s5720si-v200r008c00spc500.cc
247,032 KB total (33,632 KB free)
<S5720>delete s5720si-v200r008c00spc500.cc
Delete flash:/s5720si-v200r008c00spc500.cc?[Y/N]:y
Info: Deleting file flash:/s5720si-v200r008c00spc500.cc...succeeded.
<S5720>reset recycle-bin
Squeeze flash:/s5720si-v200r008c00spc500.cc?[Y/N]:y
%Cleared file flash:/s5720si-v200r008c00spc500.cc.
<S5720>ftp 192.168.201.252
Trying 192.168.201.252 ...
Press CTRL+K to abort
Connected to 192.168.201.252.
220 3Com 3CDaemon FTP Server Version 2.0
User(192.168.201.252:(none)):admin
331 User name ok, need password
Enter password:
230 User logged in
[ftp]get s5720si-v200r019c10spc500.cc
200 PORT command successful.
150 File status OK ; about to open data connection
13%
FTP: 94275900 byte(s) received in 577.549 second(s) 163.23Kbyte(s)/sec.
[ftp]qu
<S5720>startup system-software s5720si-v200r019c10spc500.cc
Info: Succeeded in setting the software for booting system.
<S5720>display startup
MainBoard:
Configured startup system software: NULL
Startup system software: NULL
Next startup system software: flash:/s5720si-v200r019c10spc500.cc
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: default
Next startup paf file: default
Startup license file: default
Next startup license file: default
Startup patch package: flash:/s5720si-v200r008sph005.pat
Next startup patch package: flash:/s5720si-v200r008sph005.pat
<S5720>reboot
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
Comparing the firmware versions
The latest firmware version is in use.
Info: System is rebooting, please wait...
The semaphore timeout period has expired.