为什么给交换机S9700安装补丁的时候总是提示错误

发布时间:  2014-11-27 浏览次数:  395 下载次数:  0
问题描述
给交换机S9700(版本:V200R005C00SPC300,补丁:s9700-v200r005hp0005.pat)安装补丁的时候,在用户视图下执行patch load S9700-V200R005SPH001.pat all run,会出现Error: Failed to load the patch because the patch file cannot be obtained from the service pack。
解决方案
在给S9700安装补丁之前,S9700设备的版本是S9700 V200R005C00SPC300,补丁:s9700-v200r005hp0005.pat,在将要安装的补丁s9700-v200r005sph001.pat导入到交换机主控板卡之后,执行以下命令:
<Quidway>patch load S9700-V200R005SPH001.pat all run
会出现以下错误提示:
Error: Failed to load the patch because the patch file cannot be obtained from the service pack.
因此导致补丁安装失败,要想成功安装补丁,首先需要执行以下操作:
<Quidway>patch deactive all
Info: The master board does not have C patch to be deactivated.
Info: The slave board does not have C patch to be deactivated.
Info: The slot 1 does not have C patch to be deactivated.
Info: The slot 6 does not have C patch to be deactivated.
Info: The ENP board does not have kernel patch to be deactivated.
Info: There is no ENP patch to be deactivated...
Info: Finished deactivating the patch.
<Quidway>patch delete all
This will delete the patch. Are you sure? [Y/N]y
Info: The ENP board does not have kernel patch to be deleted.
Info: There is no ENP patch to be deleted....
Info: Succeeded in deleting the patch on the master board..
Info: Succeeded in deleting the patch on the slave board.
Info: Succeeded in deleting the patch on slot 1.
Info: Succeeded in deleting the patch on slot 6........
Info: Finished deleting the patch.
<Quidway>patch load s9700-v200r005sph001.pat all run
Info: The patch is being loaded. Please wait for a moment.....................
Info: Succeeded in running the patch on the master board.
Info: Succeeded in running the patch on the slave board.
Info: Succeeded in running the patch on slot 1.
Info: Succeeded in running the patch on slot 6.
Info: The ENP board does not have kernel patch to be loaded.
Info: There is no ENP patch to be loaded......
Info: Finished loading the patch.
<Quidway>dis patch-information
Patch Package Name   :cfcard:/s9700-v200r005sph001.pat
Patch Package Version:V200R005SPH001
The state of the patch state file is: Running
The current state is: Running
这样补丁就可以成功的安装补丁了。如果在上面所描述的删除补丁的时候使用命令:
delete /unreserved s9700-v200r005hp0005.pat,
则会出现
Error: cfcard:/s9700-v200r005hp0005.pat cannot be deleted, because it may be a system file.
因此如果要想删除设备上的补丁,需要使用patch delete all命令,当成功安装新版本的补丁:s9700-v200r005sph001.pat,就可以通过delete /unreserved s9700-v200r005hp0005.pat,将之前旧补丁删除了。

END