08-ISSU配置
本章节下载: 08-ISSU配置 (193.88 KB)
目 录
· 设备仅支持在IRF模式下使用ISSU功能。
· 目前设备运行在IRF模式下支持两个成员设备。
ISSU(In-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式。它主要通过以下几个方面来确保在升级过程中业务不中断或者中断时间较短。
· 引入软件包概念,便于软件的管理和维护。将启动软件按功能划分成Boot软件包、System软件包、Feature软件包和补丁包,将系统软件中比较稳定的基础进程和相对比较活跃的业务进程分离。通常情况下,不需要升级基础进程,只需升级部分业务进程。而且,业务进程之间互相独立,当某业务需要版本更新时,只需升级该业务对应的软件包即可,不用升级所有模块,从而不会对设备运行甚至其它业务造成影响。关于软件包的详细介绍请参见“基础配置指导”中的“软件升级”。
· 支持热补丁。使用补丁包在不重启设备的情况下快速修复系统缺陷。
· 根据不同的应用场景,提供不同的升级策略,尽量避免升级影响到当前业务的正常进行。升级方式的详细描述请参见“1.1 ISSU升级策略”。
· 需要硬件的配合,比如部署至少两块主控板。当全局主用主控板需要重启升级时,全局备用主控板能接替全局主用主控板的工作,保证升级过程业务尽量不中断。
本文中的升级指的是广义上升级,即升级前后,运行两个不同版本的软件。它包括狭义上的升级和降级。
软件在发布的时候,开发会根据当前版本和历史版本是否兼容以及兼容的程度,制定升级策略。ISSU升级策略有增量升级和重启升级。
进行ISSU方式前,请先将要升级的目标软件包下载到设备存储介质的根目录下,然后通过display version comp-matrix file命令显示设备将采用的ISSU升级策略。ISSU升级策略不同对当前业务的影响不同,采用的升级步骤也会有差异。
表1-1 ISSU升级策略描述表
本策略用于只有用户态进程需要更新时。使用该策略升级时,系统会仅对有差异的用户态进程实施升级,并通过进程的备份和倒换来保证升级过程中业务不中断。该策略对系统影响最小、升级速度最快,为ISSU升级的最佳方式 |
Upgrade Way字段显示为: · Service Upgrade:表示服务级增量升级,该策略仅对本业务模块有影响,对系统以及其他业务模块没有影响 · File Upgrade:表示文件级增量升级。该策略仅对系统内的、用户不可见的程序文件进行升级,对系统以及业务模块没有影响 |
||
重启升级过程中,除了正在重启的成员设备/主控板,其它成员设备/主控板均处于工作状态,从而保证了升级过程中业务不中断 |
Upgrade Way字段显示为: · Reboot:表示该单板升级时会直接重启来加载新软件 |
· 建议通过Console口对设备实施ISSU升级。如果通过Telnet或SSH登录设备实施ISSU升级,在升级过程中可能会因Telnet或SSH连接中断,导致ISSU升级无法继续。
· IRF中有两个或者两个以上主控板并且都正常工作时,才能保证升级过程中业务不中断或者中断较少时间。如果整个IRF只有一个主控板,并且升级方式为重启升级时,不能保证业务不中断。
· 硬件升级或故障期间,请不要进行ISSU升级。否则可能会导致升级失败或者系统异常。
(1) 请仔细阅读软件包版本发布说明书。了解是否可以使用ISSU功能升级设备。
(2) 请查看软件包版本发布说明书,如果某软件包需要License才能运行,且设备当前没有对应的有效的License时,请先安装对应的License,再进行ISSU升级。否则,会导致软件包安装失败。
用户在安装License时,系统会自动搜索存储介质上是否存在该License对应的软件包,如果存在一个,则直接自动安装该软件包;如果存在多个,则直接自动安装最先搜索到的软件包。
用户在卸载License时,系统会自动搜索该License对应的软件包是否在运行,如果正在运行,则会直接自动卸载该软件包。
请通过display device命令了解设备的当前状态。请确保此时所有设备均为正常状态,对于故障设备请先行排除故障后,再进行ISSU升级。
(2) 使用save命令保存当前配置。
(3) 通过FTP或TFTP将软件包下载到全局主用主控板的存储介质的根目录。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到备用主控板后再安装/升级。
GR或NSR |
建议使能LDP、RSVP、OSPF、ISIS、BGP和FSPF等协议的GR或NSR功能,否则ISSU升级期间可能会出现业务中断的现象 |
建议去使能LDP、RSVP、OSPF、ISIS、RIP、BGP、VRRP、NQA等协议的BFD功能,否则ISSU升级期间可能会出现业务中断的现象 |
|
所有动态聚合组的所有成员端口下LACP超时时间为长超时,即这些成员端口下都没有配置lacp period short命令 |
|
如果需要对整个IRF进行兼容版本重启升级,请配置IRF桥MAC地址的保留时间为6分钟或永久保留 |
· 如果升级的目标版本与设备当前运行版本有功能删减,请务必确保手工将目标版本不支持的配置全部删除。
· 软件包和设备支持的特性/命令行是对应的。请在卸载软件包之前,删除该软件包对应的命令行并保存配置,以便保证已卸载的软件包对应的命令行不会出现在下次启动配置中。否则,设备重启后,即便配置文件中有该软件包对应的命令行,但是因为该软件包已经卸载,这些命令行也不会生效。需要安装该软件包后,重新执行这些命令使其生效。
在ISSU升级过程中,请遵循以下指导:
· 请确保系统中除了当前执行ISSU升级命令的用户外无其他用户登录。
· 请不要执行ISSU之外的配置命令,以免影响配置效果。
· ISSU升级需要经过一系列的操作步骤,升级过程中有严格的步骤要求。请完成一个步骤后再执行下一个步骤。
· 执行issu load、issu run switchover或issu commit命令前,请使用:
¡ display device命令查看到所有单板处于normal状态。
¡ display system internal ha service-group命令查看所有服务的action显示为0。
ISSU升级完成后,如需配置设备,请重新登录。
使用issu命令安装/升级软件时,系统会根据版本需要自动同时安装/升级业务板、网板的软件,因此,业务板、网板不需要单独执行软件包安装/升级操作。
当有多个成员设备,升级的基本原则是以成员设备为单位升级,且先升级某个从设备,然后再升级包括主设备在内的其它成员设备。
chassis chassis-number请指定为某个从设备的成员编号 |
|||
issu load file ipe ipe-filename chassis chassis-number&<1-3> |
|||
进行ISSU倒换 |
|||
(可选)确认ISSU兼容升级,接受指定主控板的运行版本,并删除回滚定时器 |
|||
chassis chassis-number请指定为其它没升级的成员设备的编号。请等待一个成员设备升级完成后,再使用该命令升级下一个成员设备 |
|||
用户执行issu run switchover命令后,系统会自动创建回滚定时器,如果直到定时器超时,用户仍没有执行issu accept或者issu commit命令,则系统会自动回滚到升级前的版本 |
|||
完成上述配置后,在任意视图下执行display命令可以显示配置后软件包的运行情况,通过查看显示信息验证配置的效果。
表3-2 ISSU显示和维护
· IRF由主设备和从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1;从设备的成员编号为2,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1。
· feature1软件包从R0201版本升级到兼容版本R0202。
# 从TFTP server下载包含新版本feature1软件包的BIN文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.bin
% 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> display install active
Active packages on chassis 1 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 1 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
# 显示feature1软件包的升级效果。
<Sysname> display version comp-matrix file feature cfa0:/feature1-r0202.bin
Feature image: cfa0:/feature1-r0202.bin
Version:
V700R001B31D002
Version Compatibility List:
V700R001B31D001
V700R001B31D002
Version Dependency System List:
V700R001B31D001
V700R001B31D002
Chassis Slot Upgrade Way
1 0 Service Upgrade
1 1 Service Upgrade
2 0 Service Upgrade
2 1 Service Upgrade
Influenced service according to following table on chassis 1 slot 0:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 1 slot 1:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 0:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 1:
cfa0:/feature1-r0202.bin
feature1 CFA
以上显示信息表明,feature1-r0202.bin的升级方式是增量升级,升级过程中相关模块可能会重启。
# 升级从设备的feature1软件包。
<Sysname> issu load file feature cfa0:/feature1-r0202.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 cfa0:/feature1-r0202.bin to chassis2#slot0#cfa0:/feature1-r0202.bin......Done.
Copying file cfa0:/feature1-r0202.bin to chassis2#slot1#cfa0:/feature1-r0202.bin......Done.
Upgrade summary according to following table:
cfa0:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 0 Service Upgrade
2 1 Service Upgrade
Upgrading software images to compatible versions. Continue? [Y/N]: y
# 对feature1进程进行主备倒换。
Upgrade summary according to following table:
cfa0:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Switchover Way
1 0 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]: y
# 确认并升级主设备的软件包。
<Sysname> issu commit chassis 1
Copying file cfa0:/feature1-r0202.bin to chassis1#slot1#cfa0:/feature1-r0202.bin......Done.
Upgrade summary according to following table:
cfa0:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 0 Service Upgrade
1 1 Service Upgrade
Upgrading software images to compatible versions. Continue? [Y/N]: y
# 查看已激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
Active packages on chassis 1 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
Active packages on chassis 2 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
Active packages on chassis 2 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
· IRF由主设备和从设备组成。主设备的成员编号为1,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1;从设备的成员编号为2,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1。
· feature1软件包从R0201版本升级到兼容版本R0202后,再手工回退到R0201版本。
# 从TFTP server下载包含新版本feature1软件包的BIN文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.bin
% 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> display install active
Active packages on chassis 1 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 1 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
# 显示feature1软件包的升级效果。
<Sysname> display version comp-matrix file feature cfa0:/feature1-r0202.bin
Feature image: cfa0:/feature1-r0202.bin
Version:
V700R001B31D002
Version Compatibility List:
V700R001B31D001
V700R001B31D002
Version Dependency System List:
V700R001B31D001
V700R001B31D002
Chassis Slot Upgrade Way
1 0 Service Upgrade
1 1 Service Upgrade
2 0 Service Upgrade
2 1 Service Upgrade
Influenced service according to following table on chassis 1 slot 0:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 1 slot 1:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 0:
cfa0:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 1:
cfa0:/feature1-r0202.bin
feature1 CFA
以上显示信息表明,feature1-r0202.bin的升级方式是增量升级,升级过程中相关模块可能会重启。
# 升级从设备的feature1软件包。
<Sysname> issu load file feature cfa0:/feature1-r0202.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 cfa0:/feature1-r0202.bin to chassis2#slot0#cfa0:/feature1-r0202.bin......Done.
Copying file cfa0:/feature1-r0202.bin to chassis2#slot1#cfa0:/feature1-r0202.bin......Done.
Upgrade summary according to following table:
cfa0:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 0 Service Upgrade
2 1 Service Upgrade
Upgrading software images to compatible versions. Continue? [Y/N]: y
# 对feature1进程进行主备倒换。
Copying file cfa0:/feature1-r0202.bin to chassis1#slot1#cfa0:/feature1-r0202.bin......Done.
Upgrade summary according to following table:
cfa0:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Switchover Way
1 0 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]: y
# 查看激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 1 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
Active packages on chassis 2 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0202.bin
# 将feature1软件包回滚到R0201版本。
This command will quit the ISSU process and roll back to the previous version. Continue? [Y/N]: Y
# 查看激活的软件包。
<Sysname> display install active
Active packages on chassis 1 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 1 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 0:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
Active packages on chassis 2 slot 1:
cfa0:/boot-r0201.bin
cfa0:/system-r0201.bin
cfa0:/feature1-r0201.bin
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!