08-ISSU配置
本章节下载: 08-ISSU配置 (713.47 KB)
ISSU(In-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式。它主要通过以下几个方面来确保在升级过程中业务不中断或者中断时间较短。
· 引入软件包概念,便于软件的管理和维护。将启动软件按功能划分成Boot软件包、System软件包、Feature软件包和补丁包,将系统软件中比较稳定的基础进程和相对比较活跃的业务进程分离。通常情况下,不需要升级基础进程,只需升级部分业务进程。而且,业务进程之间互相独立,当某业务需要版本更新时,只需升级该业务对应的软件包即可,不用升级所有模块,从而不会对设备运行甚至其它业务造成影响。关于软件包的详细介绍请参见“基础配置指导”中的“软件升级”。
· 支持热补丁。使用补丁包在不重启设备的情况下快速修复系统缺陷。
· 根据不同的应用场景,提供不同的升级策略,尽量避免升级影响到当前业务的正常进行。升级方式的详细描述请参见“1.1 ISSU升级策略”。
· 需要硬件的配合,比如部署两块主控板。当主用主控板需要重启升级时,备用主控板能接替主用主控板的工作,保证升级过程业务尽量不中断。(独立运行模式)
· 需要硬件的配合,比如部署至少两块主控板。当全局主用主控板需要重启升级时,全局备用主控板能接替全局主用主控板的工作,保证升级过程业务尽量不中断。(IRF模式)
本文中的升级指的是广义上升级,即升级前后,运行两个不同版本的软件。它包括狭义上的升级和降级。
软件在发布的时候,开发会根据当前版本和历史版本是否兼容以及兼容的程度,制定升级策略。ISSU升级策略有3种:增量升级、重启升级以及不兼容升级。
进行ISSU方式前,请先将要升级的目标软件包下载到设备存储介质的根目录下,然后通过display version comp-matrix file命令显示设备将采用的ISSU升级策略。ISSU升级策略不同对当前业务的影响不同,采用的升级步骤也会有差异。
当ISSU升级策略为重启升级时,如IRF物理端口位于主控板上,请确保所有成员的主用主控板和备用主控板上都存在IRF物理链路。
表1-1 ISSU升级策略描述表
本策略用于只有用户态进程需要更新时。使用该策略升级时,系统会仅对有差异的用户态进程实施升级,并通过进程的备份和倒换来保证升级过程中业务不中断。该策略对系统影响最小、升级速度最快,为ISSU升级的最佳方式 |
Upgrade Way字段显示为: · Service Upgrade:表示服务级增量升级,该策略仅对本业务模块有影响,对系统以及其他业务模块没有影响 · File Upgrade:表示文件级增量升级。该策略仅对系统内的、用户不可见的程序文件进行升级,对系统以及业务模块没有影响 |
||
Upgrade Way字段显示为:Reboot,表示该单板升级时会直接重启来加载新软件 |
|||
重启升级(IRF模式) |
重启升级过程中,除了正在重启的成员设备/主控板,其它成员设备/主控板均处于工作状态,从而保证了升级过程中业务不中断 |
Upgrade Way字段显示为:Reboot,表示该单板升级时会直接重启来加载新软件 |
|
表示设备当前运行的软件版本和要升级的目标软件版本不兼容时的升级 不兼容版本因为版本差异较大,所以,在同一个系统中,两个版本不能同时运行。因此,不兼容升级过程中: (1) 请先将某个备设备升级到新版本,备设备升级完成后,系统会将它处于隔离状态,不能转发报文,主设备和其它没有升级的备设备处于工作状态 (2) 然后执行主备倒换操作,此时,备设备变成主设备,自动接替原主设备工作,原主设备和其它没有升级的备设备逐个重启完成升级 |
ISSU有两种升级方式,一种是install命令升级方式,另一种是issu命令升级方式。
表1-2 issu命令升级方式和install命令升级方式比较表
issu命令升级方式 |
install命令升级方式 |
|
适合升级的软件包及组网要求 |
IRF的组网环境:Boot软件包、System软件包 |
独立运行模式、IRF组网环境:Feature软件包和补丁包 |
· 为确保升级成功,请核对产品的版本说明书,充分了解设备当前版本和目标版本之间的特性变更,务必将目标版本中不支持的命令行删除并保存配置后,再执行升级操作。
· 如果要卸载特性软件包,在卸载特性软件包之前,请务必将该软件包特性对应的命令行全部删除,并保存配置。
在ISSU升级过程中,请遵循以下指导:
· 在当前的升级动作未结束前,不允许再执行其他升级动作。升级动作包括执行install、issu、boot-loader命令。
· 请不要执行以下操作:
¡ 手工重启单板和插拔单板。
¡ 执行ISSU之外的操作,包括配置修改及信息查询等。
¡ 对启动软件包进行修改、删除以及重命名等操作。
· ISSU升级过程中issu和install命令互斥,只能选择其中的一种方式进行升级。但issu命令升级显示和维护命令在install命令升级过程中也可以使用。
· ISSU升级需要经过一系列的操作步骤,升级过程中有严格的步骤要求。请完成一个步骤后再执行下一个步骤。
· 所有MDC运行相同的启动软件包,只需在缺省MDC上执行一个升级动作,即可完成所有MDC的升级。
· 执行issu load、issu run switchover、issu commit、install activate或install deactivate命令进行ISSU升级前,需保证设备处于稳定状态,否则无法执行操作。可以使用display system stable state命令查看系统状态,当System State字段为Stable时,设备处于稳定状态。关于display system stable state命令的详细介绍请参见“基础配置命令参考”中的“设备管理”。
· 当issu命令指定的软件包不能全部覆盖设备当前启动软件包时,除issu命令指定的软件包之外的其他软件包会被沿用,例如设备当前启动软件包中含有Feature包并且该Feature包有效,issu命令指定新的软件包中不包含新的Feature包,那么当前版本的Feature包会被沿用。若沿用的软件包与issu命令指定的软件包不兼容,会导致设备升级失败。
· 设备上可安装的软件包(包括Boot包、System包、Feature包和补丁包)共为32个,其中Boot包和System包只能安装一个,Feature包和补丁包总共可安装30个。
· 补丁包分为叠加补丁和非叠加补丁。叠加补丁最多可以同时安装30个;由于每个Boot、System和Feature包只能安装一个非叠加补丁,所以非叠加补丁最多只能在设备上安装16个。有关叠加补丁和非叠加补丁的详细介绍请参见,“基础配置指导”的“软件升级”。
升级完成后请重新登录设备,否则将无法执行新版本与旧版本之间变更的命令。
请确保此时所有设备均为正常状态,对于故障设备请先行排除故障后,再进行ISSU升级。
(1) 请通过display device命令了解设备的当前状态,确保所有在位的硬件状态为Master、Standby或者Normal。
(2) 通过display mdc命令查看MDC的状态,确保所有MDC的状态均为active才可以进行ISSU升级,否则可能导致该设备升级异常。
(3) 使用switchto mdc命令登录用户MDC,确保用户MDC的自动配置过程已经结束。如果网络中没有部署自动配置环境,请根据设备提示信息,使用<Ctrl+C>或<Ctrl+D>快捷键结束自动配置过程。关于自动配置的详细介绍请参见“基础配置指导”中的“自动配置”。
(4) 通过display irf命令检查IRF所有成员设备当前状态是否正常。
(5) 通过display cpu-usage命令检查设备CPU利用率是否低于门限值,建议所有设备的CPU利用率不要超过CPU利用率恢复门限值。
(6) 通过display memory和display memory-threshold命令检查设备内存剩余是否低于告警阈值,建议所有设备的内存剩余不要超过内存剩余恢复到正常状态的阈值。
(7) 通过display fan命令检查风扇状态是否均为Normal,所有设备的风扇状态必须为Normal。
(8) 通过display power命令检查电源状态是否均为Normal,所有设备的电源状态必须为Normal。
(9) 通过display environment命令检查设备上各硬件的当前温度是否均低于Warning值,所有硬件的当前温度必须低于Warning值。
(10) 通过display counters rate inbound interface命令检查各端口是否都正常转发流量,保证升级前各端口流量转发正常。
(11) 通过display interface | include CRC命令检查各端口是否都正常转发流量,保证升级前各端口流量转发正常。
对于ISSU重启升级和不兼容升级,部分功能需要保证当前配置和重启后的配置的一致性,否则ISSU在执行从设备重启之后将由于主从设备的配置不一致导致IRF分裂,继而无法继续进行ISSU升级。需要检查的功能的配置和显示命令如下:
· 系统工作模式。
system-working-mode
display system-working-mode
· 最大等价路由条数。
max-ecmp-num
display max-ecmp-num
关于系统工作模式的运行模式的配置,请参见“基础配置指导”中的“设备管理配置”。关于最大等价路由条数的配置,请参见“三层技术-IP路由配置指导”中的“IP路由基础配置”。
为确保ISSU升级期间的业务连续性,请确保如下协议或特性的配置符合如下要求。
表1-3 确认相关协议状态
特性 |
要求 |
GR或NSR |
开启LDP、RSVP、OSPF、ISIS、BGP和FSPF等协议的GR或NSR功能,否则ISSU升级期间可能会出现业务中断的现象 请通过display命令确认协议的GR或NSR功能开启后系统是否处于稳定状态,以OSPF协议为例: · 开启GR功能后,请通过display ospf graceful-restart命令确认 · 开启NSR功能后,请通过display ospf non-stop-routing status命令确认 |
BFD |
关闭LDP、RSVP、OSPF、ISIS、RIP、BGP、VRRP、NQA等协议的BFD功能,否则ISSU升级期间可能会出现业务中断的现象 |
以太网链路聚合 |
· 所有动态聚合组的所有成员端口下LACP超时时间为长超时,即这些成员端口下都没有配置lacp period short命令 · 所有聚合口必须为选中状态 |
IRF |
· 通过link-delay命令将以太网接口物理连接状态抑制时间设置为0秒,即不抑制,当接口状态发生改变时立即上报CPU · 请使能聚合流量重定向功能,确保聚合链路上的流量不中断 · 请配置IRF桥MAC地址的保留时间为永久保留 · 如果需要对整个IRF进行不兼容升级,请先关闭IRF MAD 检测功能,完成ISSU升级后再重新配置 |
为保证ISSU升级成功,请确保升级前所有的升级准备要求均已完成。
建议通过Console口对设备实施ISSU升级。如果通过Telnet或SSH登录设备实施ISSU升级,在升级过程中可能会因Telnet或SSH连接中断,导致ISSU升级无法继续。
请确保系统中除了当前执行ISSU升级命令的用户外无其他用户登录。
请仔细阅读软件包版本发布说明书,了解如下信息:
(1) 当前版本与新软件版本之间是否支持ISSU升级。
(2) 新的软件是否需要License才能运行。如果设备当前没有对应的有效的License时,请先安装对应的License,再进行ISSU升级。否则,会导致软件包安装失败。
(1) 请使用dir命令查看主控板Flash和USB外接设备,同时使用display mdc resource命令查看MDC磁盘空间,来确保设备上有足够的磁盘空间保存启动软件包。
(2) 使用save命令保存当前配置。
(3) 通过FTP或TFTP将软件包下载到主用主控板任一文件系统的根目录。(独立运行模式)
(4) 通过FTP或TFTP将软件包下载到全局主用主控板任一文件系统的根目录。(IRF模式)
(1) 执行带文件名参数的display version comp-matrix file命令显示设备将采用的ISSU升级策略。
(2) 确认ISSU升级方式:
· 对于兼容版本升级,查看显示信息中的“Upgrade Way”字段。
· 对于非兼容版本升级,查看显示信息末尾部分,会显示“Incompatible upgrade”。
(1) 根据确定的升级策略,选择升级方式(参见“1.2 ISSU升级方式”)。
(2) 确认设备的硬件冗余情况。
ISSU只有在下列情况下才能保证业务连续性:
¡ IRF中有多个正常工作的成员设备,采用环形组网。如果只有一个成员,并且升级方式为重启升级或不兼容升级时,不能保证业务不中断。(IRF模式)
¡ IRF中有两个或者两个以上主控板并且都正常工作时,才能保证升级过程中业务不中断或者中断较少时间。如果整个IRF只有一个主控板,并且升级方式为重启升级或不兼容升级时,不能保证业务不中断。(IRF模式)
(3) 选择升级流程:根据硬件冗余情况及ISSU升级策略在“2 通过issu命令升级”和“3 通过install命令升级”选择相应的升级流程。
(1) 如果升级的目标版本与设备当前运行版本有特性变更,请务必将目标版本不支持的命令行删除。
(2) 如果要卸载特性软件包,在卸载该软件包之前,请务必删除该软件包特性对应的命令行。
(3) 使用save命令保存当前配置。
使用issu命令安装/升级软件时,系统会根据版本需要自动同时安装/升级业务板的软件,因此,业务板不需要单独执行软件包安装/升级操作。
当有多个成员设备,升级的基本原则是以成员设备为单位升级,且先升级某个从设备,然后再升级包括主设备在内的其它成员设备。
升级前,请使用带文件名参数的display version comp-matrix file命令显示设备将采用的ISSU升级策略。
· 如果当前软件包版本在显示信息的“Version compatibility list”中,则说明本次升级为兼容版本升级。请使用表2-1所示的步骤进行升级。
· 如果当前软件包版本不在显示信息的“Version compatibility list”中,则说明本次升级为不兼容版本升级。请使用表2-2所示的步骤进行升级。
· 所有成员设备完成升级后,本次升级结束,ISSU回到初始状态。执行issu commit命令后,不能再通过ISSU回滚命令或者回滚定时器进行回滚操作。多个从设备的情况下应该在一个从设备启动完成并重新加入IRF后再对下一个从设备执行该命令,否则可能引起升级错误。
· 系统在升级设备的启动软件包并将设备的主用下次启动软件包设置为指定的软件包前会对软件包进行数字签名校验,如果软件包通过校验则升级设备的启动软件包并将设备的主用下次启动软件包设置为指定的软件包;如果软件包未通过校验则不会升级设备的启动软件包并将设备的主用下次启动软件包设置为指定的软件包,并返回错误提示信息。
system-view |
- |
|
关闭自动回滚功能 |
issu rollback-timer 0 |
回滚功能较复杂,不推荐使用,升级之前需关闭自动回滚功能 |
返回用户视图 |
quit |
- |
确定系统处于稳定状态 |
display system stable state |
使用本命令显示的system state字段为Stable,则表示设备处于稳定状态。ISSU升级前使用本命令查看设备的状态,需要等待设备进入稳定状态,才可以进行ISSU升级 |
issu load file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * chassis chassis-number [ reboot ] |
chassis chassis-number请指定为某个从设备的成员编号 |
|
issu load file ipe ipe-filename [ patch filename&<1-30> ] chassis chassis-number&<1-3> [ reboot ] |
||
确定系统处于稳定状态 |
display system stable state |
执行issu load命令后须等待设备稳定之后才能进行下一步操作。若在此阶段升级出错,也可以等待设备稳定之后使用issu rollback命令手动将版本回滚到升级前的状态 |
进行ISSU倒换 |
||
(可选)确认ISSU兼容升级,接受指定主控板的运行版本 |
||
chassis chassis-number请指定为其它没升级的成员设备的编号。请等待一个成员设备升级完成后,再使用该命令升级下一个成员设备 |
||
确定ISSU升级完成 |
display issu state |
完成以上配置后,当本命令显示的ISSU state字段为Init,则表示ISSU升级完成 |
确定系统处于稳定状态 |
display system stable state |
使用本命令显示的system state字段为Stable,则表示设备处于稳定状态。ISSU升级前使用本命令查看设备的状态,需要等待设备进入稳定状态,才可以进行ISSU升级 |
issu load file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * chassis chassis-number&<1-3> [ reboot ] |
chassis chassis-number&<1-3>请输入1个或多个从设备的成员编号。如果IRF为环形连接,建议一次升级一半数量的物理上邻接的成员设备(也称为对半升级),以便尽量减少升级对整个IRF业务的影响 |
|
issu load file ipe ipe-filename [ patch filename&<1-30> ] chassis chassis-number&<1-3> [ reboot ] |
||
确定系统处于稳定状态 |
display system stable state |
执行issu load命令后须等待设备稳定之后才能进行下一步操作。若在此阶段升级出错,也可以等待设备稳定之后使用issu rollback命令手动将版本回滚到升级前的状态 |
进行ISSU倒换,并且将剩余待升级的成员设备进行升级 |
||
确定ISSU升级完成 |
display issu state |
完成以上配置后,当本命令显示的ISSU state字段为Init,则表示ISSU升级完成 |
当ISSU升级异常且不能再次进行升级操作时,可以强制结束ISSU升级流程。
执行install activate、issu load命令的ISSU升级流程中可以执行此操作。
表2-3 强制结束ISSU升级流程
操作 |
命令 |
说明 |
进入系统视图 |
system-view |
- |
强制结束ISSU升级流程 |
issu quit |
- |
完成上述配置后,在任意视图下执行display命令可以显示配置后软件包的运行情况,通过查看显示信息验证配置的效果。
本节所列display和reset命令,和升级方式无关,不管是采用issu命令升级还是采用install命令升级,均可使用。
表2-4 ISSU显示和维护
显示设备将采用的ISSU升级策略 |
display version comp-matrix file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * display version comp-matrix file ipe ipe-filename [ patch filename&<1-30> ] |
显示当前ISSU升级的状态,以及ISSU升级的相关信息(该命令只显示issu命令升级过程中设备所处的状态,不能显示install命令升级过程中设备所处的状态) |
|
display install active [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install inactive [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install committed [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install backup [ chassis chassis-number slot slot-number ] [ verbose ] |
|
显示与ISSU升级相关的日志 |
|
显示回滚点信息(issu命令升级过程中不会记录回滚点,因此,在issu命令升级过程中执行该命令,没有信息可显示) |
display install rollback [ point-id ] |
显示IPE文件信息 |
|
display install which { component name | file filename } [ chassis chassis-number slot slot-number ] |
|
显示回滚定时器的相关信息 |
display issu rollback-timer |
清除ISSU日志 |
|
清除回滚点 |
reset install rollback oldest point-id |
本举例只给出配置步骤和涉及的命令,关于命令的提示信息,请以实际情况为准。
· IRF由主设备和从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7;从设备的成员编号为2,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7。
· 将Boot、System和Feature系统软件包从T0001015版本升级到兼容版本T0001016。
(1) 升级准备。
# 从TFTP server下载新版本Boot、System和Feature软件包。
<Sysname> tftp 2.2.2.2 get boot-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6078464 100 6078464 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get system-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97750016 100 97750016 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get feature-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1008640 100 1008640 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
# 显示设备将采用的ISSU升级策略。
<Sysname> display version comp-matrix file boot flash:/boot-t0001016.bin system flash:/system-t0001016.bin feature flash:/feature-t0001016.bin
Verifying the file flash:/boot-t0001016.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/system-t0001016.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/feature-t0001016.bin on chassis 1 slot 6..................................Done.
Identifying the upgrade methods....Done.
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
2 6 Reboot
2 7 Reboot
以上显示信息表明,新版本软件包的升级方式是重启升级。
# 关闭自动回滚功能。
<Sysname> system-view
[Sysname] issu rollback-timer 0
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 软件包升级。
# 升级从设备的软件包。
<Sysname> issu load file boot flash:/boot-t0001016.bin system flash:/system-t0001016.bin feature flash:/feature-t0001016.bin chassis 2
This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:y
Copying file flash:/boot-t0001016.bin to chassis2#slot6#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis2#slot6#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis2#slot6#flash:/feature-t0001016.bin......Done.
Verifying the file flash:/boot-t0001016.bin on chassis 2 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 2 slot 6............Done.
Verifying the file flash:/feature-t0001016.bin on chassis 2 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis2#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis2#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis2#slot7#flash:/feature-t0001016.bin......Done.
Verifying the file flash:/boot-t0001016.bin on chassis 2 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 2 slot 7............Done.
Verifying the file flash:/feature-t0001016.bin on chassis 2 slot 7...Done.
Identifying the upgrade methods….Done.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
2 6 Reboot
2 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 确定系统处于稳定状态。
<Sysname> display issu state
ISSU state: Loaded
Compatibility: Compatible
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis:
chassis 2
Current upgrading chassis: None
Previous version list:
boot: 7.1.070, Test 0001015
system: 7.1.070, Test 0001015
feature: 7.1.070, Test 0001015
Previous software images:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Upgrade version list:
boot: 7.1.070, Test 0001016
system: 7.1.070, Test 0001016
feature: 7.1.070, Test 0001016
Upgrade software images:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
从显示信息中可以看出,目前系统处于ISSU过程中的Loaded状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有chassis2完成了从T0001015到T0001016版本的升级,chassis1还未升级。
# 进行ISSU主备倒换。
<Sysname> issu run switchover
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Switchover Way
1 6 Master subordinate switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait.........
# 确定系统处于稳定状态。
<Sysname> display issu state
ISSU state: Switchover
Compatibility: Compatible
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis:
chassis 2
Current upgrading chassis: None
Previous version list:
boot: 7.1.070, Test 0001015
system: 7.1.070, Test 0001015
feature: 7.1.070, Test 0001015
Previous software images:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Upgrade version list:
boot: 7.1.070, Test 0001016
system: 7.1.070, Test 0001016
feature: 7.1.070, Test 0001016
Upgrade software images:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
从显示信息中可以看出,目前系统处于ISSU过程中的Switchover状态,该状态也是一个稳定状态,表示已经完成了ISSU主备倒换的操作,等待进行下一步Commit操作;当前只有chassis2完成了从T0001015到T0001016版本的升级,chassis1还未升级。
# 确认并升级主设备的软件包。
<Sysname> issu commit chassis 1
Copying file flash:/boot-t0001016.bin to chassis1#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis1#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis1#slot7#flash:/feature-t0001016.bin......Done.
Verifying the file flash:/boot-t0001016.bin on chassis 1 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 1 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
(3) 确定ISSU升级完成。
# 查看ISSU状态。
<Sysname> display issu state
ISSU state: Init
Compatibility: Unknown
Upgrade method: Chassis by chassis
Upgraded chassis: None
Current upgrading chassis: None
Current version list:
boot: 7.1.070, Test 0001016
system: 7.1.070, Test 0001016
feature: 7.1.070, Test 0001016
Current software images:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
# 查看已激活的软件包
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
· IRF由主设备和从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7;从设备的成员编号为2,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7。
· 将Boot、System和Feature系统软件包从T0001015版本升级到不兼容版本T0001017。
(1) 升级准备。
# 从TFTP server下载新版本Boot、System和Feature软件包。
<Sysname> tftp 2.2.2.2 get boot-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6078464 100 6078464 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get system-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97750016 100 97750016 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get feature-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1008640 100 1008640 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
# 显示设备将采用的ISSU升级策略。
<Sysname> display version comp-matrix file boot flash:/boot-t0001017.bin system flash:/system-t0001017.bin feature flash:/feature-t0001017.bin
Verifying the file flash:/boot-t0001017.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/system-t0001017.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/feature-t0001017.bin on chassis 1 slot 6..................................Done.
Identifying the upgrade methods....Done.
Incompatible upgrade.
以上显示信息表明,新版本软件包的升级方式是不兼容升级。
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 软件包升级。
# 升级从设备的软件包,升级完成后从设备形成新的IRF。
<Sysname> issu load file boot flash:/boot-t0001017.bin system flash:/system-t0001017.bin feature flash:/feature-t0001017.bin chassis 2
This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:y
Copying file flash:/boot-t0001017.bin to chassis2#slot6#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis2#slot6#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis2#slot6#flash:/feature-t0001017.bin......Done.
Verifying the file flash:/boot-t0001017.bin on chassis 2 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 2 slot 6............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 2 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis2#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis2#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis2#slot7#flash:/feature-t0001017.bin......Done.
Verifying the file flash:/boot-t0001017.bin on chassis 2 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 2 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 2 slot 7...Done.
Identifying the upgrade methods….Done.
Upgrade summary according to following table:
flash:/boot-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/system-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/feature-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
Chassis Slot Upgrade Way
2 6 Reboot
2 7 Reboot
Upgrading software images to incompatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 确定系统处于稳定状态。
<Sysname> display issu state
ISSU state: Loaded
Compatibility: Incompatible
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis:
chassis 2
Current upgrading chassis: None
Previous version list:
boot: 7.1.070, Test 0001015
system: 7.1.070, Test 0001015
feature: 7.1.070, Test 0001015
Previous software images:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Upgrade version list:
boot: 7.1.070, Test 0001017
system: 7.1.070, Test 0001017
feature: 7.1.070, Test 0001017
Upgrade software images:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
从显示信息中可以看出,目前系统处于ISSU升级过程中的Loaded状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有chassis2完成了从T0001015到T0001017版本的升级,chassis1还未升级。
# 升级原主设备的软件包,升级完成后原主设备重启后加入新的IRF。
<Sysname> issu run switchover
Copying file flash:/boot-t0001017.bin to chassis1#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis1#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis1#slot7#flash:/feature-t0001017.bin......Done.
Verifying the file flash:/boot-t0001017.bin on chassis 1 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 1 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/system-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/feature-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
Upgrading software images to incompatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait.........
(3) 确定ISSU升级完成。
# 查看ISSU状态。
<Sysname> display issu state
ISSU state: Init
Compatibility: Unknown
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis: None
Current upgrading chassis: None
Current version list:
boot: 7.1.070, Test 0001017
system: 7.1.070, Test 0001017
feature: 7.1.070, Test 0001017
Current software images:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
# 查看升级后激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
本举例只给出配置步骤和涉及的命令,关于命令的提示信息,请以实际情况为准。
· IRF由主设备和3台从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7,业务板所在的槽位号为3;从设备的成员编号分别为2、3、4,主用主控板所在的槽位号均为6,备用主控板所在的槽位号均为7,业务板所在的槽位号均为3。
· 通过远程操作,将IRF设备Boot、System和Feature系统软件包从T0001015版本升级到兼容版本T0001016。最新版本的应用程序保存在TFTP server上。
· IRF的IP地址为1.1.1.1/24,TFTP server的IP地址为2.2.2.2/24。IRF与TFTP server之间路由可达。
图1-1 ISSU升级组网图
(1) 升级准备
# 从TFTP server下载新版本Boot、System和Feature软件包。
<Sysname> tftp 2.2.2.2 get boot-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6078464 100 6078464 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get system-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97750016 100 97750016 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get feature-t0001016.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1008640 100 1008640 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
# 显示设备将采用的ISSU升级策略。
<Sysname> display version comp-matrix file boot flash:/boot-t0001016.bin system flash:/system-t0001016.bin feature flash:/feature-t0001016.bin
Verifying the file flash:/boot-t0001016.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/system-t0001016.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/feature-t0001016.bin on chassis 1 slot 6..................................Done.
Identifying the upgrade methods....Done.
Chassis Slot Upgrade Way
1 3 Reboot
1 6 Reboot
1 7 Reboot
2 3 Reboot
2 6 Reboot
2 7 Reboot
3 3 Reboot
3 6 Reboot
3 7 Reboot
4 3 Reboot
4 6 Reboot
4 7 Reboot
以上显示信息表明,新版本软件包的升级方式是重启升级。
# 关闭自动回滚功能。
<Sysname> system-view
[Sysname] issu rollback-timer 0
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] interface gigabitethernet3/3/0/1
[Sysname-GigabitEthernet3/3/0/1] link-delay down 0
[Sysname-GigabitEthernet3/3/0/1] link-delay up 0
[Sysname-GigabitEthernet3/3/0/1] quit
[Sysname] interface gigabitethernet4/3/0/1
[Sysname-GigabitEthernet4/3/0/1] link-delay down 0
[Sysname-GigabitEthernet4/3/0/1] link-delay up 0
[Sysname-GigabitEthernet4/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 软件包升级。
# 升级从设备的软件包。
<Sysname> issu load file boot flash:/boot-t0001016.bin system flash:/system-t0001016.bin feature flash:/feature-t0001016.bin chassis 2
This operation will delete the rollback point information for the previous upgra
de and maybe get unsaved configuration lost. Continue? [Y/N]:y
Verifying the file flash:/boot-t0001016.bin on chassis 1 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 1 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 1 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis2#slot6#flash:/boot-t0001016.bin
...Done.
Copying file flash:/system-t0001016.bin to chassis2#slot6#flash:/system-t0001016.bin
...Done.
Copying file flash:/feature-t0001016.bin to chassis2#slot6#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 2 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 2 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 2 slot 6...Done
Copying file flash:/boot-t0001016.bin to chassis2#slot7#flash:/boot-t0001016.bin
...Done.
Copying file flash:/system-t0001016.bin to chassis2#slot7#flash:/system-t0001016.bin
...Done.
Copying file flash:/feature-t0001016.bin to chassis2#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 2 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 2 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
2 3 Reboot
2 6 Reboot
2 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait.....Done.
# 确定系统处于稳定状态。
<Sysname> display issu state
ISSU state: Loaded
Compatibility: Compatible
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis:
chassis 2
Current upgrading chassis: None
Previous version list:
boot: 7.1.070, Test 0001015
system: 7.1.070, Test 0001015
feature: 7.1.070, Test 0001015
Previous software images:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Upgrade version list:
boot: 7.1.070, Test 0001016
system: 7.1.070, Test 0001016
feature: 7.1.070, Test 0001016
Upgrade software images:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
从显示信息中可以看出,目前系统处于ISSU过程中的Loaded状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有chassis2完成了从T0001015到T0001016版本的升级,其他成员设备还未升级。
# 进行ISSU主备倒换。
<Sysname> issu run switchover
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Switchover Way
1 6 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 升级原Master和其他Standby设备。
<Sysname> issu commit chassis 1
Copying file flash:/boot-t0001016.bin to Chassis1#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis1#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis1#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 1 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 1 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
1 3 Reboot
1 6 Reboot
1 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait........Done.
<Sysname> issu commit chassis 3
Copying file flash:/boot-t0001016.bin to chassis3#slot6#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis3#slot6#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis3#slot6#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 3 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 3 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 3 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis3#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis3#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis3#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 3 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 3 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 3 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
3 3 Reboot
3 6 Reboot
3 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait....Done.
<Sysname> issu commit chassis 4
Copying file flash:/boot-t0001016.bin to chassis4#slot6#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis4#slot6#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis4#slot6#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 4 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 4 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 4 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis4#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis4#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis4#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 4 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 4 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 4 slot 7...Done
.
Upgrade summary according to following table:
flash:/boot-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/system-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Chassis Slot Upgrade Way
4 3 Reboot
4 6 Reboot
4 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait....Done.
(3) 确定ISSU升级完成。
# 查看ISSU状态。
<Sysname> display issu state
ISSU state: Init
Compatibility: Unknown
Upgrade method: Chassis by chassis
Upgraded chassis: None
Current upgrading chassis: None
Current version list:
boot: 7.1.070, Test 0001016
system: 7.1.070, Test 0001016
feature: 7.1.070, Test 0001016
Current software images:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
# 查看已激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 1 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 2 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 3 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
· IRF由主设备和3台从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7,业务板所在的槽位号为3;从设备的成员编号分别为2、3、4,主用主控板所在的槽位号均为6,备用主控板所在的槽位号均为7,业务板所在的槽位号均为3。
· 通过远程操作,将IRF设备的Boot、System和Feature系统软件包从T0001015版本升级到不兼容版本T0001017。最新版本的应用程序保存在TFTP server上。
· IRF的IP地址为1.1.1.1/24,TFTP server的IP地址为2.2.2.2/24。IRF与TFTP server之间路由可达。
图1-2 ISSU升级组网图
(1) 升级准备
# 从TFTP server下载新版本Boot、System和Feature软件包。
<Sysname> tftp 2.2.2.2 get boot-t0001017.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6078464 100 6078464 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get system-t0001017.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97750016 100 97750016 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
<Sysname> tftp 2.2.2.2 get feature-t0001017.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1008640 100 1008640 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
# 显示设备将采用的ISSU升级策略。
<Sysname> display version comp-matrix file boot flash:/boot-t0001017.bin system flash:/system-t0001017.bin feature flash:/feature-t0001017.bin
Verifying the file flash:/boot-t0001017.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/system-t0001017.bin on chassis 1 slot 6..................................Done.
Verifying the file flash:/feature-t0001017.bin on chassis 1 slot 6..................................Done.
Identifying the upgrade methods....Done.
Upgrade Way: Incompatible upgrade.
以上显示信息表明,新版本软件包的升级方式是不兼容升级。
# 关闭自动回滚功能。
<Sysname> system-view
[Sysname] issu rollback-timer 0
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] interface gigabitethernet3/3/0/1
[Sysname-GigabitEthernet3/3/0/1] link-delay down 0
[Sysname-GigabitEthernet3/3/0/1] link-delay up 0
[Sysname-GigabitEthernet3/3/0/1] quit
[Sysname] interface gigabitethernet4/3/0/1
[Sysname-GigabitEthernet4/3/0/1] link-delay down 0
[Sysname-GigabitEthernet4/3/0/1] link-delay up 0
[Sysname-GigabitEthernet4/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 软件包升级。
# 升级从设备的软件包,升级完成后从设备形成新的IRF。
<Sysname> issu load file boot flash:/boot-t0001017.bin system flash:/system-t0001017.bin feature flash:/feature-t0001017.bin chassis 2
This operation will delete the rollback point information for the previous upgra
de and maybe get unsaved configuration lost. Continue? [Y/N]:y
Verifying the file flash:/boot-t0001017.bin on chassis 1 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 1 slot 6...Done.
Verifying the file flash:/feature-t0001017.bin on chassis 1 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis2#slot6#flash:/boot-t0001017.bin
...Done.
Copying file flash:/system-t0001017.bin to chassis2#slot6#flash:/system-t0001017.bin
...Done.
Copying file flash:/feature-t0001017.bin to chassis2#slot6#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 2 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 2 slot 6...Done.
Verifying the file flash:/feature-t0001017.bin on chassis 2 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis2#slot7#flash:/boot-t0001017.bin
...Done.
Copying file flash:/system-t0001017.bin to chassis2#slot7#flash:/system-t0001017.bin
...Done.
Copying file flash:/feature-t0001017.bin to chassis2#slot7#flash:/ feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 2 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 2 slot 7...Done.
Verifying the file flash:/feature-t0001017.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/system-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/feature-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
Chassis Slot Upgrade Way
2 3 Reboot
2 6 Reboot
2 7 Reboot
Upgrading software images to incompatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 确定系统处于稳定状态。
<Sysname> display issu state
ISSU state: Loaded
Compatibility: Incompatible
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis:
chassis 2
Current upgrading chassis: None
Previous version list:
boot: 7.1.070, Test 0001015
system: 7.1.070, Test 0001015
feature: 7.1.070, Test 0001015
Previous software images:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Upgrade version list:
boot: 7.1.070, Test 0001017
system: 7.1.070, Test 0001017
feature: 7.1.070, Test 0001017
Upgrade software images:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
从显示信息中可以看出,目前系统处于ISSU过程中的Loaded状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有chassis2完成了从T0001015到T0001017版本的升级,其他成员设备还未升级。
# 升级的Standby设备重启完成以后,进行主备倒换并完成整个IRF的升级。
<Sysname> issu run switchover
Copying file flash:/boot-t0001017.bin to chassis1#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis1#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis1#slot7#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 1 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 1 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 1 slot 7...Done.
Copying file flash:/boot-t0001017.bin to chassis3#slot6#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis3#slot6#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis3#slot6#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 3 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 3 slot 6............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 3 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis3#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis3#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis3#slot7#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 3 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 3 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 3 slot 7...Done.
Copying file flash:/boot-t0001017.bin to chassis4#slot6#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis4#slot6#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis4#slot6#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 4 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 4 slot 6............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 4 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis4#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis4#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis4#slot7#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 4 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 4 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 4 slot 7...Done.
Upgrade summary according to following table:
flash:/boot-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/system-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
flash:/feature-t0001017.bin
Running Version New Version
Test 0001015 Test 0001017
Chassis Slot Upgrade Way
1 3 Reboot
1 6 Reboot
1 7 Reboot
3 3 Reboot
3 6 Reboot
3 7 Reboot
4 3 Reboot
4 6 Reboot
4 7 Reboot
Upgrading software images to incompatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
(3) 确定ISSU升级完成。
# 查看ISSU状态。
<Sysname> display issu state
ISSU state: Init
Compatibility: Unknown
Work state: Normal
Upgrade method: Chassis by chassis
Upgraded chassis: None
Current upgrading chassis: None
Current version list:
boot: 7.1.070, Test 0001017
system: 7.1.070, Test 0001017
feature: 7.1.070, Test 0001017
Current software images:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
# 查看已激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 1 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 1 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 2 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 2 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 2 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 3 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
本产品支持融合AC(Access Controller,无线控制器)功能,安装对应的WLAN Feature包后,可以对AP(Access Point,无线接入点)进行管理。安装完成后,请重新登录,以便WLAN Feature包的命令行能够生效。有关融合AC特性的详细介绍,请参见《融合AC用户手册》。
如果用户要升级的软件包是以IPE文件的形式发布的,请在执行其它install命令前,先按以下步骤将IPE包解压缩:
(1) 通过FTP或TFTP将IPE文件下载到主用主控板(独立运行模式)/全局主用主控板(IRF模式)存储介质的根目录。
(2) 通过display install ipe-info命令查看该IPE文件中包含的软件包。
(3) 解压缩IPE文件:将IPE文件解压缩,生成软件包。
解压缩IPE文件 |
执行install命令可以安装/升级软件包。如果当前系统没有运行相同类型的软件包,则该过程称为安装软件包;如果当前系统有相同类型的软件包在运行,则该过程称为升级软件包。
通常情况下,设备上必定存在一个Boot包和一个System包,所以Boot包和System包通常为升级;而补丁包只能修复启动软件包的缺陷,不涉及功能的添加和删除,所以补丁包只有安装而没有升级的说法。
使用install命令安装/升级软件包分为激活和确认更改两个步骤。
(1) 当需要安装/升级两个或两个以上软件包时,请选择以下任意一种方法来激活软件包:
· 方法一:使用一条命令激活完一个slot的所有软件包后再激活另一个slot的所有软件包,最后确认激活。
· 方法二:先激活完所有slot的某种类型的包之后,再激活所有slot的另外一种类型的包,最后确认激活。若使用该方法进行安装/升级,则需要查看软件版本说明书,确保升级软件包和设备当前软件包之间版本的兼容性,否则可能导致安装/升级失败。
(2) 安装新Feature包/补丁包时,必须先激活主用主控板;升级已有Feature包时,若存在备用主控板,必须先激活备用主控板,再激活主用主控板。否则,安装/升级过程可能出错。(独立运行模式)
(3) 以成员设备为单位安装新Feature包/补丁包时,必须先激活主设备,再激活从设备;成员设备内安装新Feature包/补丁包时,必须先激活主用主控板;以成员设备为单位进行升级已有软件包时,先激活从设备,再激活主设备;成员设备内升级已有Feature包时,必须先激活备用主控板,再激活主用主控板。(IRF模式)
(4) 对于增量升级方式,Feature包激活仅对设备本次启动生效,用户只有通过本命令确认软件包的更改后,才能使此次激活的Feature包在系统重启后继续生效;对于重启升级方式,该步骤可选,因为用户在执行install activate命令时,系统已经修改了下次启动软件列表,激活操作会在系统重启后继续生效。
(5) 安装/升级主用主控板的软件时,系统会根据版本需要自动同时安装/升级业务板的软件,因此,业务板不需要单独执行安装/升级操作。
(6) 升级WLAN Feature包时,需要先卸载当前版本的WLAN Feature包,并彻底删除mdb文件(如startup.mdb),然后重新安装新的WLAN Feature包,待安装完毕后,通过save命令保存配置以自动创建mdb文件。
当设备需要升级时,升级步骤请参见表3-2。
激活软件包前,系统会对软件包进行数字签名校验,如果软件包通过校验则激活软件包;如果软件包未通过校验则不激活软件包,并返回错误提示信息。
表3-2 安装/升级Feature包
(可选)显示Feature包的升级策略(独立运行模式) |
install activate feature filename&<1-30> slot slot-number test |
|
(可选)显示Feature包的升级策略(IRF模式) |
install activate feature filename&<1-30> chassis chassis-number slot slot-number test |
|
激活Feature包(独立运行模式) |
||
激活Feature包(IRF模式) |
install activate feature filename&<1-30> chassis chassis-number slot slot-number |
|
本命令一次只能激活一个补丁包,但是可以通过多次执行此命令为设备激活多个补丁包 指定all参数表示同时激活所有硬件上的补丁包,此时无需执行install commit命令,所有补丁包在设备重启后继续生效 |
||
激活补丁包(IRF模式) |
install activate patch filename { all | chassis chassis-number slot slot-number } |
|
激活补丁包以后,补丁包仅对设备本次启动生效,设备重启后这些补丁包不再有效。用户只有确认补丁包更改后,才能使此次激活的补丁包在系统重启后继续生效 |
如果产品针对同一System包发布了多个补丁包,直接安装最新版本的补丁包即可,且不需要先卸载旧的补丁包。
因为Boot包和System包是设备运行的基础软件,所以Boot包和System包不支持卸载,只能卸载Feature包和补丁包。当Feature包/补丁包被卸载后,该软件包将处于未激活状态,系统也将不再具备该软件包提供的功能。但是软件包仍然存在于存储介质上,可以通过install remove命令将卸载后的软件包从存储介质上彻底删除。
Feature包/补丁包卸载也只在设备本次运行过程中生效。如果用户希望系统重启后,Feature包/补丁包卸载依然生效,请用户使用install commit命令确认软件包的更改。
卸载Feature包(独立运行模式) |
||
卸载Feature包(IRF模式) |
install deactivate feature filename&<1-30> chassis chassis-number slot slot-number |
|
install deactivate patch filename { all | slot slot-number } |
本命令一次只能卸载一个补丁包,若要卸载多个补丁包,则需要多次执行此命令 指定all参数表示同时卸载所有硬件上的补丁包,此时无需执行install commit命令,所有补丁包在设备重启后不再生效 |
|
卸载补丁包(IRF模式) |
install deactivate patch filename { all | chassis chassis-number slot slot-number } |
|
通过回滚功能,用户可将系统回滚到某个历史状态。
系统对增量升级的激活或卸载操作会创建回滚点,记录每次的软件变化。系统最多支持50个回滚点,当回滚点超过最大值时,旧的回滚点会被删除,新的回滚点会被保存。
系统会保存回滚点直到用户进行了如下操作:
· ISSU Reboot或者Reboot升级。
· 执行install commit命令。
进行了ISSU Reboot或者Reboot升级之后,用户只能将当前运行软件回滚到ISSU Reboot或者Reboot之前的状态。
进行了Commit操作之后,用户将无法进行回滚。
对于增量升级,用户必须执行install commit命令确认软件包的更改后,回滚操作才能在重启后生效。
表3-6 软件包回滚
操作 |
命令 |
说明 |
(可选)查看设备的回滚点 |
display install rollback |
请在用户视图下执行以下操作。可以通过这个命令查看回滚点信息,以便进行相应的回滚操作。 |
软件包回滚 |
install rollback to { point-id | original } |
补丁包不支持回滚操作。 |
增量升级方式下,当系统正在执行软件包的激活或卸载操作时,用户可以通过install abort命令或者按Ctrl+C取消正在执行中的操作,从而使系统回退到操作前的状态。
该功能可用于检查激活的Boot包/System包/Feature包的完整性、各主控板上激活的软件包列表和确认的软件包列表之间的差异(以方便用户知道是否有未确认的软件包)、以及不同的主控板之间激活的软件包列表的差异(以方便用户知道不同主控板上的软件包版本是否一致)。当发现有不一致的软件包时,用户可使用install activate命令或install deactivate命令更新激活的软件包列表,使用install commit命令更新确认的软件包列表。
表3-8 校验Boot包/System包/Feature包
Boot包/System包/Feature包校验 |
需要注意的是,执行删除操作后,软件包会从设备上彻底删除,用户将不能执行与该软件包相关的install abort命令。请确认不需要使用该软件包之后,再执行删除操作。
删除软件包(IRF模式) |
install remove [ chassis chassis-number slot slot-number ] { filename | inactive } |
IRF模式下的ISSU显示和维护,请参见“2.3 通过issu命令升级显示和维护”。
表3-10 ISSU显示和维护(独立运行模式)
操作 |
命令 |
显示设备将采用的ISSU升级策略 |
display version comp-matrix file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * display version comp-matrix file ipe ipe-filename [ patch filename&<1-30> ] |
显示当前系统中已激活的软件包的相关信息 |
display install active [ slot slot-number ] [ verbose ] |
显示存储介质根目录下、没有被激活的所有软件包的相关信息 |
display install inactive [ slot slot-number ] [ verbose ] |
显示设备下次启动时使用的主用软件包的相关信息 |
display install committed [ slot slot-number ] [ verbose ] |
显示设备下次启动时使用的备用软件包的相关信息 |
display install backup [ slot slot-number ] [ verbose ] |
显示系统中正在执行的激活、卸载操作 |
display install job |
显示与ISSU升级相关的日志 |
display install log [ log-id ] [ verbose ] |
显示软件包信息 |
display install package { filename | all } [ verbose ] |
显示IPE文件信息 |
display install ipe-info ipe-filename |
显示一个组件或文件所属的软件包 |
display install which { component name | file filename } [ slot slot-number ] |
显示回滚点信息(issu命令升级过程中不会记录回滚点,因此,在issu命令升级过程中执行该命令,没有信息可显示) |
display install rollback [ point-id ] |
清除ISSU日志 |
reset install log-history oldest log-number |
清除回滚点 |
reset install rollback oldest point-id |
· Device上配备了两块主控板:主用主控板所在的槽位号为6,备用主控板所在的槽位号为7。
· 将feature1特性从R0201版本升级到兼容版本R0202。
图3-1 feature1软件包升级组网图
# 从TFTP server下载包含新版本feature1软件包的IPE文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.ipe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 256 100 256 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 解压缩IPE文件。
<Sysname> install add flash:/feature1-r0202.ipe flash:/
Verifying the file flash:/feature1-r0202.ipe on slot 6...Done.
Decompressing file feature1-r0202.bin to flash:/feature1-r0202.bin.......................Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
# 显示feature1软件包的升级效果。
<Sysname> install activate feature flash:/feature1-r0202.bin slot 7 test
Copying file flash:/feature1-r0202.bin to slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
7 Reboot
Influenced service according to following table on slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin slot 6 test
Verifying the file flash:/feature1-r0202.bin on slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
6 Reboot
7 Reboot
Influenced service according to following table on slot 6:
flash:/feature1-r0202.bin
feature1 CFA
以上显示信息表明,feature1-r0202.bin的升级方式是增量升级,升级过程中相关模块可能会重启。
# 激活新版本的feature1软件包,从而对feature1特性进行升级。
<Sysname> install activate feature flash:/feature1-r0202.bin slot 7
flash:/feature1-r0202.bin already exists on slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin slot 6
Verifying the file flash:/feature1-r0202.bin on slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
6 Reboot
7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
# 查看升级后激活的软件包。
<Sysname> display install active
Active packages on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
# 确认软件包更改。
<Sysname> install commit
This operation will take several minutes, please wait...........................Done.
The current software images have been saved as the startup software images.
Current software images on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
· IRF由主设备和从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7;从设备的成员编号为2,主用主控板所在的槽位号为6,备用主控板所在的槽位号为7。
· 将feature1软件包从R0201版本升级到兼容版本R0202。
# 从TFTP Server下载包含新版本feature1软件包的IPE文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.ipe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 256 100 256 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
# 解压缩软件包。
<Sysname> install add flash:/feature1-r0202.ipe flash:
Verifying the file flash:/feature1-r0202.ipe on chassis 1 slot 6...Done.
Decompressing file feature1-r0202.bin to flash:/feature1-r0202.bin.......................Done.
# 查看升级前激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 2 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
# 显示feature1软件包的升级效果。
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 7 test
Copying file flash:/feature1-r0202.bin to chassis2#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
2 7 Reboot
Influenced service according to following table on chassis 2 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 6 test
Copying file flash:/feature1-r0202.bin to chassis2#slot6#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
Influenced service according to following table on chassis 2 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 7 test
Copying file flash:/feature1-r0202.bin to chassis1#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
Influenced service according to following table on chassis 1 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 1 slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 6 test
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
Influenced service according to following table on chassis 1 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
以上显示信息表明,feature1-r0202.bin的升级方式是增量升级,升级过程中相关模块可能会重启。
# 激活新版本的feature1软件包,从而对feature1特性进行升级。
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 7
flash:/feature1-r0202.bin already exists on chassis 2 slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis2#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
2 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 6
flash:/feature1-r0202.bin already exists on chassis 2 slot 6.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis2#slot6#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 7
flash:/feature1-r0202.bin already exists on chassis 1 slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis1#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 6
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
# 查看已激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 2 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
# 确认软件包更改。
This operation will take several minutes, please wait...........................Done.
The current software images have been saved as the startup software images.
Current software images on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 2 slot 7:
flash:/feature1-r0202.bin
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!