版本升级,原有系统文件无法删除,空间不足,新版软件无法上传问题

发布时间:  2015-05-13 浏览次数:  743 下载次数:  0
问题描述


如下显示:在S5700EI上,原有系统文件占据15M,剩余空间只有15M,而我们S5700EI-V200R005C00SPC300.zip 软件有17M(见下面红字显示),空间不够无法上传至设备。

<HWHJ>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-     14,083,796  Oct 01 2008 00:02:01   s5700ei-v200r003c00spc300.cc
    1  -rw-        685,821  Mar 24 2015 06:10:40   web.7z
    2  -rw-             36  Mar 24 2015 06:11:46   $_patchstate_reboot
    3  drw-              -  Mar 24 2015 06:11:57   user
    4  -rw-          1,016  Apr 24 2015 15:54:28   private-data.txt
    5  -rw-         73,873  Oct 01 2008 00:07:33   s5700ei-v200r003sph006.pat
    6  drw-              -  Mar 24 2015 06:12:46   dhcp
    7  drw-              -  Apr 20 2015 10:44:00   syslogfile
    8  drw-              -  Apr 20 2015 10:44:19   resetinfo
    9  -rw-         11,883  May 05 2015 16:41:54   5700-li.txt
   10  -rw-          1,029  Apr 24 2015 15:54:20   vrpcfg.zip
30,008 KB total (15,220 KB free)




[ftp]dir
200 Port command successful.
150 Opening data connection for directory list.
drw-rw-rw-   1 ftp      ftp            0 May 05 16:50 .
drw-rw-rw-   1 ftp      ftp            0 May 05 16:50 ..
-rw-rw-rw-   1 ftp      ftp        11883 May 05 16:45 5700-LI.txt
-rw-rw-rw-   1 ftp      ftp        16520 Apr 29 16:30 HWHX.txt
-rw-rw-rw-   1 ftp      ftp            0 Apr 29 16:29 HWHX.txt.bak
-rw-rw-rw-   1 ftp      ftp       479780 May 05 16:01 S2750&S5700&S6700 V200R005C00SPC300  升级指导书.zip
-rw-rw-rw-   1 ftp      ftp         7253 Apr 21 17:03 S5700-EI汇聚.txt
-rw-rw-rw-   1 ftp      ftp        17995 Apr 21 15:42 S5700-EI汇聚.txt.bak
-rw-rw-rw-   1 ftp      ftp         2879 Apr 21 15:36 S5700-LI接入.txt
-rw-rw-rw-   1 ftp      ftp     14083796 May 05 16:50 s5700ei-v200r003c00spc300.cc
-rw-rw-rw-   1 ftp      ftp     17025312 May 05 15:59 S5700EI-V200R005C00SPC300.zip
-rw-rw-rw-   1 ftp      ftp       193536 Apr 22 00:00 Siloam POC daily report--2015.4.22.xls
-rw-rw-rw-   1 ftp      ftp      7363677 Apr 23 16:32 Siloam POC Testing-V3.2.docx
-rw-rw-rw-   1 ftp      ftp      8126260 Apr 29 19:08 Siloam POC Testing-V5.5.docx
drw-rw-rw-   1 ftp      ftp            0 May 05 15:37 siloam-subnet
-rw-rw-rw-   1 ftp      ftp       265764 Apr 20 03:12 网段IP.jpg
226 File sent ok
FTP: 1207 byte(s) received in 0.164 second(s) 7.35Kbyte(s)/sec.

 

 

告警信息
Error: Failed to run this command because of insufficient storage space.


处理过程

解决办法1

1、试图删除系统补丁文件,增加系统flash空间。

<HWHJ>delete s5700ei-v200r003sph006.pat  
Error: flash:/s5700ei-v200r003sph006.pat cannot be deleted, because it may be a system file.

失败,因为文件正在使用。去激活当前系统上的补丁 再尝试

<HWHJ>patch deactive all ..
Info: The master board does not have C patch to be deactivated.
Info: Finished deactivating the patch.

<HWHJ>patch delete all
This will delete the patch. Are you sure? [Y/N]y..
Info: Succeeded in deleting the patch on the master board...................
Info: Finished deleting the patch.

<HWHJ>dir
Directory of flash:/


Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-     14,083,796  Oct 01 2008 00:02:01   s5700ei-v200r003c00spc300.cc
    1  -rw-        685,821  Mar 24 2015 06:10:40   web.7z
    2  -rw-             36  May 05 2015 17:04:45   $_patchstate_reboot
    3  drw-              -  Mar 24 2015 06:11:57   user
    4  -rw-          1,016  Apr 24 2015 15:54:28   private-data.txt
    5  -rw-         73,873  Oct 01 2008 00:07:33   s5700ei-v200r003sph006.pat
    6  drw-              -  Mar 24 2015 06:12:46   dhcp
    7  drw-              -  Apr 20 2015 10:44:00   syslogfile
    8  drw-              -  Apr 20 2015 10:44:19   resetinfo
    9  -rw-          3,684  May 05 2015 17:04:50   $_patch_history
   10  -rw-          1,029  Apr 24 2015 15:54:20   vrpcfg.zip

30,008 KB total (15,232 KB free)

<HWHJ>delete /unreserved s5700ei-v200r003sph006.pat
Warning: The contents of file flash:/s5700ei-v200r003sph006.pat cannot be recycled. Continue? [Y/N]:y
Info: Deleting file flash:/s5700ei-v200r003sph006.pat...succeeded.
<HWHJ>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-     14,083,796  Oct 01 2008 00:02:01   s5700ei-v200r003c00spc300.cc
    1  -rw-        685,821  Mar 24 2015 06:10:40   web.7z
    2  -rw-             36  May 05 2015 17:04:45   $_patchstate_reboot
    3  drw-              -  Mar 24 2015 06:11:57   user
    4  -rw-          1,016  Apr 24 2015 15:54:28   private-data.txt
    5  drw-              -  Mar 24 2015 06:12:46   dhcp
    6  drw-              -  Apr 20 2015 10:44:00   syslogfile
    7  drw-              -  Apr 20 2015 10:44:19   resetinfo
    8  -rw-          3,684  May 05 2015 17:04:50   $_patch_history
    9  -rw-          1,029  Apr 24 2015 15:54:20   vrpcfg.zip
30,008 KB total (15,308 KB free)

<HWHJ>delete /unreserved web.7z
Error: flash:/web.7z cannot be deleted, because it may be a system file.
<HWHJ>dis start
<HWHJ>dis startup

MainBoard:
  Configured startup system software:        flash:/s5700ei-v200r003c00spc300.cc
  Startup system software:                   flash:/s5700ei-v200r003c00spc300.cc
  Next startup system software:              flash:/s5700ei-v200r003c00spc300.cc
  Startup saved-configuration file:          NULL
  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:                     NULL
  Next startup patch package:                NULL



2、在尝试多次后,文件均无法删除,只能采用非常规办法,将系统flash格式化。(说明本操作过程中,需要保证设备不断电,否则设备将丢失启动程序,恢复将更加复杂。

格式化后,将系统配置文件保存;请注意是格式化后保存,不是格式化前,这样配置文件不会丢失。)

在格式化后,发现系统的空间释放,将新的升级文件通过FTP上传,并设置为系统启动文件即可。

<HWHJ>format flash:
All data(include configuration and system startup file) on flash: will be lost , proceed with format ? [Y/N]:y............................................................................................................................
%Format flash: completed.
<HWHJ>dir
Info: File can't be found in the directory.
30,008 KB total (30,000 KB free)

<HWHJ>ftp 10.1.133.29
Trying 10.1.133.29 ...
Press CTRL+K to abort
Connected to 10.1.133.29.
220 FTP Server ready.
User(10.1.133.29:(none)):1
331 Password required for 1.
Enter password:
230 User 1 logged in.

[ftp]dir
200 Port command successful.
150 Opening data connection for directory list.
drw-rw-rw-   1 ftp      ftp            0 May 05 16:50 .
drw-rw-rw-   1 ftp      ftp            0 May 05 16:50 ..
-rw-rw-rw-   1 ftp      ftp        11883 May 05 16:45 5700-LI.txt
-rw-rw-rw-   1 ftp      ftp        16520 Apr 29 16:30 HWHX.txt
-rw-rw-rw-   1 ftp      ftp            0 Apr 29 16:29 HWHX.txt.bak
-rw-rw-rw-   1 ftp      ftp       479780 May 05 16:01 S2750&S5700&S6700 V200R005C00SPC300  升级指导书.zip
-rw-rw-rw-   1 ftp      ftp         7253 Apr 21 17:03 S5700-EI汇聚.txt
-rw-rw-rw-   1 ftp      ftp        17995 Apr 21 15:42 S5700-EI汇聚.txt.bak
-rw-rw-rw-   1 ftp      ftp         2879 Apr 21 15:36 S5700-LI接入.txt
-rw-rw-rw-   1 ftp      ftp     14083796 May 05 16:50 s5700ei-v200r003c00spc300.cc
-rw-rw-rw-   1 ftp      ftp     17025312 May 05 15:59 S5700EI-V200R005C00SPC300.cc
-rw-rw-rw-   1 ftp      ftp       193536 Apr 22 00:00 Siloam POC daily report--2015.4.22.xls
-rw-rw-rw-   1 ftp      ftp      7363677 Apr 23 16:32 Siloam POC Testing-V3.2.docx
-rw-rw-rw-   1 ftp      ftp      8126260 Apr 29 19:08 Siloam POC Testing-V5.5.docx
drw-rw-rw-   1 ftp      ftp            0 May 05 15:37 siloam-subnet
-rw-rw-rw-   1 ftp      ftp       265764 Apr 20 03:12 网段IP.jpg
226 File sent ok
FTP: 1207 byte(s) received in 0.167 second(s) 7.22Kbyte(s)/sec.

[ftp]get S5700EI-V200R005C00SPC300.cc
200 Port command successful.
150 Opening data connection for S5700EI-V200R005C00SPC300.cc.

[ftp]q

221 Goodbye.

<HWHJ>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-     17,025,312  May 05 2015 17:14:07   s5700ei-v200r005c00spc300.cc

30,008 KB total (13,372 KB free)

<HWHJ>startup system-software s5700ei-v200r005c00spc300.cc
Upgrading BOOTROM,please wait for a moment...

Info: BOOTROM upgrade is ok.


Info: Succeeded in setting the software for booting system.

<HWHJ>dis startup
MainBoard:
  Configured startup system software:        NULL
  Startup system software:                   NULL
  Next startup system software:              flash:/s5700ei-v200r005c00spc300.cc
  Startup saved-configuration file:          NULL
  Next startup saved-configuration file:     NULL
  Startup paf file:                          default
  Next startup paf file:                     default
  Startup license file:                      default
  Next startup license file:                 default
  Startup patch package:                     NULL
  Next startup patch package:                NULL
<HWHJ>save all

<HWHJ>reboot

3、待设备重启后,查看设备状态,一切正常,升级成功。

<HWHJ>disp startup                                                                                                                 
MainBoard:                                                                                                                         
  Configured startup system software:        flash:/s5700ei-v200r005c00spc300.cc                                                   
  Startup system software:                   flash:/s5700ei-v200r005c00spc300.cc                                                   
  Next startup system software:              flash:/s5700ei-v200r005c00spc300.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:                     NULL                                                                                  
  Next startup patch package:                NULL                                                                                  
<HWHJ> 

解决办法2:

[S5700-diagnose]undo startup system-software

通过此命令亦可增加系统flash空间。

根因
根本原因是由R2V5软件 过大,无法上传设备所至。

建议与总结

第一种解决办法需要保证设备不断电,否则后期的恢复操作会更加复杂。

第二种解决办法亦存在断电风险,升级时要保证不断电,但diagnose视图,非普通工师操作的界面,恐引起客户质疑。

若客户在现场建议使用第一种解决办法,若客户不在现场建议使用第二种解决办法。

END