• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

01-基础配置举例

目录

03-H3C_S12500_ISSU典型配置举例

本章节下载 03-H3C_S12500_ISSU典型配置举例  (236.52 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S12500/S12500/Configure/Typical_Configuration_Example/H3C_S12500-R7328P02-6W100/01/201411/845358_30005_0.htm

03-H3C_S12500_ISSU典型配置举例


1  简介

本文档介绍了ISSU兼容和不兼容升级方式的配置举例。

ISSU(In-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式,可以在升级过程中做到业务不中断或中断时间较短。

进行ISSU升级前,请使用display version comp-matirx命令查看升级待升级启动软件包时需要使用的升级方式,使用该命令后,会在Upgrade Way中显示升级方式,具体升级方式请见表1

表1 升级方式和显示参数对应表

升级方式

Upgrade Way字段显示参数

兼容升级

·     Service Upgrade

·     File Upgrade

·     ISSU Reboot

·     Reboot

不兼容升级

Incompatible upgrade

 

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解ISSU特性。

3  使用限制

1. ISSU升级对硬件的要求

·     请通过Console口对设备实施ISSU升级。如果通过Telnet或SSH登录设备实施ISSU升级,在升级过程中可能会因Telnet或SSH连接中断,导致ISSU升级无法继续。

·     交换网板支持逐次重启(Sequence Reboot)。重启一块交换网板时,硬件会自动选择其他交换网板接替工作,以保证业务功能正常。因此,在ISSU升级前请确保设备上至少拥有两块(以上)的交换网板。否则可能会因该交换网板重启又无备份的交换网板,导致业务中断。

·     512M内存的接口板不支持软重启升级操作。

·     硬件升级或故障期间,请不要进行ISSU升级。否则可能会导致升级失败或者系统异常。

2. ISSU升级需要满足的条件

·     请仔细阅读当前的软件版本和待升级软件版本的软件版本说明书,确认前后两个版本是否支持使用ISSU方式进行升级。

·     请通过display device命令了解设备的当前状态。请确保此时所有设备均为正常状态,对于故障设备请先行排除故障后,再进行ISSU升级。

·     请通过display mdc命令查看MDC的状态,确保所有MDC的状态均为active才可以进行ISSU升级,否则可能导致该设备升级异常。

·     请使用dir命令确认主控板/成员设备的存储介质有足够的空间来存放新的软件包/IPE文件。如果空间不足,请删除不需要的文件。

3. ISSU升级和其他特性之间的限制关系

表2 ISSU升级和其他特性之间的关系

特性

要求

GR或NSR

建议使能LDP、RSVP、OSPF、ISIS、BGP和FSPF等协议的GR或NSR功能,否则ISSU升级期间可能会出现业务中断的现象

BFD

建议去使能LDP、RSVP、OSPF、ISIS、RIP、BGP、VRRP、NQA等协议的BFD功能,否则ISSU升级期间可能会出现业务中断的现象

以太网链路聚合

所有动态聚合组的所有成员端口下LACP超时时间为长超时,即这些成员端口下都没有配置lacp period short命令

IRF

·     如果需要对整个IRF进行兼容版本重启升级,请配置IRF桥MAC地址的保留时间为6分钟或永久保留

·     如果需要对整个IRF进行不兼容升级,并且IRF桥MAC地址为将执行issu load设备中的某台设备的MAC地址时,请在执行issu load命令前配置桥IRF桥MAC地址的保留时间为永久保留

 

4. ISSU升级期间的操作限制

·     ISSU升级期间,请确保网络拓扑稳定,禁止手工重启单板和插拔单板。

·     ISSU升级期间,请确保系统中除了当前执行ISSU升级命令的用户外无其他用户登录。

·     ISSU升级期间,请不要执行ISSU之外的配置命令,以免影响配置效果。

·     禁止对启动软件包进行修改、删除以及重命名等操作。

4  兼容升级典型配置举例(独立运行模式)

4.1.1  组网需求

图1所示,Device作为TFTP Client,和TFTP Server之间路由可达。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),现要求将使用ISSU方式进行设备Feature软件包的升级,将Feature软件包从r0201升级到r0202。

图1 ISSU兼容升级组网图

 

4.1.2  使用版本

本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。

4.1.3  配置注意事项

·     升级过程中不要执行与ISSU升级无关的命令。

·     IPE文件、BIN包只需下载到主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将主用主控板上的该文件拷贝到备用主控板后再安装/升级。

·     升级已有软件包时,若存在备用主控板,必须先对备用主控板执行升级操作,升级完成并主备倒换后,再执行主用主控板的升级。否则,安装/升级过程可能出错。

4.1.4  配置步骤

# 从TFTP server上下载待升级软件包http-r0202.bin。

<Device> tftp 2.2.2.2 get http-r0202.bin

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  256k  100  256k    0     0   764k      0 --:--:-- --:--:-- --:--:--  810k

# 查看升级前的软件包激活列表。

<Device> display install active

Active packages on slot0:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 2:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 3:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并显示软件包的升级策略。

<Device> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  7.1.045-r0202

  Version Compatibility List:

  7.1.045-r0201

  7.1.045-r0202

  Version Dependency System List:

  7.1.045-r0201

  7.1.045-r0202

 

  Slot                        Upgrade Way

  0                           File Upgrade

  0.1                         File Upgrade

  1                           File Upgrade

  1.1                         File Upgrade

  2                           File Upgrade

  3                           File Upgrade

Influenced service according to following table on slot 0:

  flash:/http-r0202.bin

         HTTP

Influenced service according to following table on slot 1:

  flash:/http-r0202.bin

         HTTP

上述显示信息中,设备上当前运行的软件版本(r0201)在“Version compatibility list”中,说明本次升级为兼容版本升级;“Upgrade Way”显示为File Upgrade,表示采用的升级策略是增量升级;升级过程中将受影响的功能模块为HTTP。

# 进行升级之前,使用issu rollback-timer命令设置自动回滚定时器,本例设置为120分钟(系统默认回滚定时器时间为45分钟),120分钟内没有删除定时器,设备会回滚到升级前的版本。

<Device> system-view

[Device] issu rollback-timer 120

<Device> quit

# 设置回滚时间后,升级备用主控板的HTTP软件包。

<Device> issu load file feature flash:/http-r0202.bin slot 1

This operation will delete the rollback point information and ISSU log information

for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  1                           File Upgrade

  1.1                        File Upgrade

Upgrading software images to compatible versions. Continue? [Y/N]: y

# 备用主控板完成升级后,使用display issu state命令查看ISSU的状态和设备当前运行软件的软件版本。

<Device> display issu state

ISSU state: loaded

Compatibility: Compatible

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: None

Current upgrading slot:

  slot 1

Previous version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Upgrade version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

# 确认备用主控板当前运行软件的软件版本是待升级的软件版本后,使用issu run switchover命令进行主备倒换。

<Device> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Active standby process switchover

  0.1                         Active standby process switchover

Upgrading software images to compatible versions. Continue? [Y/N]: y

# 升级原主用主控板的软件包。

<Device> issu commit slot 0

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Service Upgrade

  0.1                         File Upgrade

Upgrading software images to compatible versions. Continue? [Y/N]: y

# 原主控板完成升级后,使用display issu state命令查看issu状态。

<Device> display issu state

ISSU state: Init

Compatibility: Compatible

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: None

Current version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Current software images:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

//当ISSU状态为Init后,表明本次ISSU升级工作完成。

4.1.5  验证配置

# 升级完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到r0202版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 2:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 3:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

4.1.6  配置文件

5  不兼容升级典型配置举例(独立运行模式)

5.1.1  组网需求

图2所示,Device作为TFTP Client,和TFTP Server之间路由可达。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),现要求使用ISSU方式进行设备Feature软件包的升级,将Feature软件包从r0201升级到r0202。

图2 ISSU兼容升级组网图

 

5.1.2  使用版本

本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。

5.1.3  配置注意事项

·     IPE文件、BIN包只需下载到主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将主用主控板上的该文件拷贝到备用主控板后再安装/升级。

·     升级已有软件包时,若存在备用主控板,必须先对备用主控板执行升级操作,再执行主用主控板的升级。否则,安装/升级过程可能出错。

5.1.4  配置步骤

# 从TFTP server下载待升级件包http-r0202.bin。

<Device> tftp 2.2.2.2 get http-r0202.bin

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  256k  100  256k    0     0   764k      0 --:--:-- --:--:-- --:--:--  810k

# 查看升级前的软件包激活列表。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 2:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Active packages on slot 3:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Device> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  7.1.045-r0202

  Version compatibility list:

  7.1.045-r0202

  Version dependency system list:

  7.1.045-r0201

  7.1.045-r0202

Incompatible upgrade.

上述显示信息中,设备上当前运行的软件版本(r0201)不在“Version compatibility list”中,说明本次升级为不兼容版本升级;升级过程中对应的主控板会以新版本重新启动。

# 升级备用主控板的HTTP软件包。

<Device> issu load file feature flash:/http-r0202.bin slot 1

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  1                           Reboot

  1.1                         Reboot

Upgrading software images to incompatible versions. Continue? [Y/N]: y

# 备用主控板升级完成后,使用display issu state命令查看ISSU的状态和设备当前运行软件的软件版本。

<Device> display issu state

ISSU state: loaded

Compatibility: Incompatible

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: None

Current upgrading slot:

  slot 1

Previous version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0201.bin

Upgrade version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

# 升级主用主控板的HTTP软件包。

<Device> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Reboot

Upgrading software images to incompatible versions. Continue? [Y/N]: y

# 完成切换后,使用display issu state查看下ISSU状态。

<Device> display issu state

ISSU state: Init

Compatibility: Incompatible

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: None

Current version list:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Current software images:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

//当ISSU状态为Init后,表明本次ISSU升级工作完成。

5.1.5  验证配置

# 升级完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到r0202版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 2:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

Active packages on slot 3:

  flash:/boot-r2111.bin

  flash:/system-r2111.bin

  flash:/http-r0202.bin

5.1.6  配置文件

6  兼容升级典型配置举例(IRF模式)

6.1.1  组网需求

图3所示,IRF作为TFTP Client,和TFTP Server之间路由可达,IRF由Master和Standby两台成员设备组成(Master的成员编号为1,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1;Standby的成员编号为2,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1), 现要求使用ISSU方式进行成员设备的升级,将设备启动软件包由R2111版本升级到R2112版本。

图3 ISSU兼容升级组网图

 

6.1.2  使用版本

本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。

6.1.3  配置注意事项

·     IPE文件、BIN包只需下载到全局主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到全局备用主控板后再安装/升级。

·     升级已有软件包时,当有多个成员设备,先升级某个从设备,然后再升级包括主设备在内的其它成员设备;当IRF中只有一个成员设备,必须先升级备用主控板,再升级主用主控板。否则,安装/升级过程可能出错。

6.1.4  配置步骤

# 从TFTP server下载test.IPE包到Master设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R2112.bin包和system-R2112.bin包。

<Master> tftp 2.2.2.2 get test.ipe

# 查看各成员设备当前运行的启动软件包。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 0.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 1.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 0:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 0.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 1.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Master> display version comp-matrix file ipe flash:/test.ipe

Verifying image file.......Done.

Boot image: BOOT-R2112.bin

  Version:

  7.1.045P99

 

System image: SYSTEM-R2112.bin

  Version:

  7.1.045-R2112

  Version compatibility list:

  7.1.045-R2112

  7.1.045-R2111

  Version dependency boot list:

  7.1.045P99

 

  1         0                 Service Upgrade

  1         0.1               ISSU Reboot

  1         1                 Service Upgrade

  1         1.1               ISSU Reboot

  2         0                 Service Upgrade

  2         0.1               ISSU Reboot

  2         1                 Service Upgrade

  2         1.1               ISSU Reboot

根据显示信息,本次ISSU升级为兼容重启升级方式中的软重启方式。

# 升级之前,使用issu rollback-timer命令设置自动回滚定时器,本例设置为120分钟(系统默认回滚定时器时间为45分钟),120分钟内没有删除定时器,设备会回滚到升级前的版本。

<Master> system-view

[Master] issu rollback-timer 120

<Master> quit

# 对Standby设备进行升级。

<Master> issu load file ipe flash:/test.ipe 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 image file.......Done.

flash:/BOOT-R2112.bin already exists on chassis 2

flash:/SYSTEM-R2112.bin already exists on chassis 2

Decompressing file BOOT-R2112.bin to flash:/BOOT-R2112.b

in...........................................Done.

Decompressing file SYSTEM-R2112.bin to flash:/SYSTEM-R211

2.bin...........................................................................

................................................................................

................................................................................

................................................................................

................................................................................

.......................Done.

Upgrade summary according to following table:

 

flash:/BOOT-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

flash:/SYSTEM-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

  Chassis   Slot              Upgrade Way

  2         0                 Service Upgrade

  2         0.1               ISSU Reboot

  2         1                 Service Upgrade

  2         1.1               ISSU Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

# Standby设备完成重启后,使用display issu state查看ISSU升级的状态和Standby设备当前运行的软件版本。

<Master> display issu state

ISSU state: Loaded

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 1

Current upgrading chassis: None

Previous version list:

  boot: 7.1.045P22, Release 2111P01

  system: 7.1.045, Release 2111P01

Previous software images:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Upgrade version list:

  boot: 7.1.045P99, Feature com

  system: 7.1.045, Feature com

Upgrade software images:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

# 确认Standby设备当前运行的是待升级的软件版本后,将Master设备切换成主设备。

<Master> issu run switchover

Upgrade summary according to following table:

 

flash:/BOOT-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

flash:/SYSTEM-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

  Chassis   Slot              Switchover Way

  1         0                 Active standby process switchover

  1         0.1               Active standby process switchover

Upgrading software images to compatible versions. Continue? [Y/N]:y

//主备切换后,原Standby设备成为新的主设备。

# 使用display issu state查看是否切换完成。

<Master> display issu state

ISSU state: Switchover

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 1

Current upgrading chassis: None

Previous version list:

  boot: 7.1.045P22, Release 2111P01

  system: 7.1.045, Release 2111P01

Previous software images:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Upgrade version list:

  boot: 7.1.045P99, Feature com

  system: 7.1.045, Feature com

Upgrade software images:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

//确认ISSU状态为Switchover后,可进行下一步操作。

# 对原主设备进行升级。

<Master> issu commit chassis 1

This operation will delete the rollback point information for the previous upgra

de and maybe get unsaved configuration lost. Continue? [Y/N]:y

Verifying image file.......Done.

flash:/BOOT-R2112.bin already exists on chassis 1

flash:/SYSTEM-R2112.bin already exists on chassis 1

Decompressing file BOOT-R2112.bin to flash:/BOOT-R2112.b

in...........................................Done.

Decompressing file SYSTEM-R2112.bin to flash:/SYSTEM-R2112

.bin..........................................................................

................................................................................

................................................................................

................................................................................

................................................................................

.......................Done.

Upgrade summary according to following table:

 

flash:/BOOT-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

flash:/SYSTEM-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

  Chassis   Slot              Upgrade Way

  1         0                 Service Upgrade

  1         0.1               ISSU Reboot

  1         1                 Service Upgrade

  1         1.1               ISSU Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

# Master设备重启后,使用display issu state查看ISSU升级的状态。

<Master> display issu state

ISSU state: Init

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.045P99, Feature com

  system: 7.1.045, Feature com

Current software images:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

// 当ISSU状态为Init后,表明ISSU升级工作完成。

6.1.5  验证配置

# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R2112版本。

<Master> displayplay install active

Active packages on chassis 1 slot 0:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 0.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 1.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 0:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 0.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 1.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

6.1.6  配置文件

7  不兼容升级典型配置举例(IRF模式)

7.1.1  组网需求

图4所示,IRF作为TFTP Client,和TFTP Server之间路由可达,IRF由Master和Standby两台成员设备组成(Master的成员编号为1,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1;Standby的成员编号为2,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1),要求通过ISSU方式进行全部成员设备启动软件包的升级,将设备启动软件包由R2111版本升级到R2112版本。

图4 ISSU不兼容升级组网图

 

7.1.2  使用版本

本举例是在S12500-CMW710-R7328P02版本上进行配置和验证的。

7.1.3  配置注意事项

·     IPE文件、BIN包只需下载到全局主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到全局备用主控板后再安装/升级。

·     升级已有软件包时,当有多个成员设备,先升级某个从设备,然后再升级包括主设备在内的其它成员设备;当IRF中只有一个成员设备,必须先升级备用主控板,再升级主用主控板。否则,安装/升级过程可能出错。

7.1.4  配置步骤

# 从TFTP Server下载test.IPE包到Mster设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R2112.bin包和system-R2112.bin包。

<Device> tftp 2.2.2.2 get test.ipe

# 查看各成员设备当前运行的启动软件包。

<Master> display boot-loader

Active packages on chassis 1 slot 0:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 0.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 1 slot 1.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 0:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 0.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Active packages on chassis 2 slot 1.1:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Master> display version comp-matrix file ipe flash:/test.ipe

Verifying image file........Done.

Boot image: BOOT-R2112.bin

  Version:

  7.1.045P99

 

System image: SYSTEM-R2112.bin

  Version:

  7.1.045-R2112

  Version compatibility list:

  7.1.045-R2112

  Version dependency boot list:

  7.1.045P99

Incompatible upgrade.

//根据显示信息Incompatible upgrade,本次ISSU升级为不兼容升级,升级过程中需要重启设备。

# 对Standby设备进行升级。

<Master> issu load file ipe flash:/test.ipe 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 image file.......Done.

flash:/BOOT-com.bin already exists on chassis 2

flash:/SYSTEM-com.bin already exists on chassis 2

Decompressing file BOOT-R2112.bin to flash:/BOOT-R2112.b

in...........................................Done.

Decompressing file SYSTEM-R2112.bin to flash:/SYSTEM-R211

2.bin...........................................................................

................................................................................

................................................................................

................................................................................

................................................................................

.......................Done.

Upgrade summary according to following table:

 

flash:/BOOT-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

flash:/SYSTEM-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

  Chassis   Slot              Upgrade Way

  2         0                 Reboot

  2         0.1               Reboot

  2         1                 Reboot

  2         1.1               Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

# Standby设备重启完成后,使用display issu state查看当前ISSU升级的状态和Standby设备当前运行的软件版本。

<Master> display issu state

ISSU state: Loaded

Compatibility: Incompatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 1

Current upgrading chassis: None

Previous version list:

  boot: 7.1.045P22, Release 2111P01

  system: 7.1.045, Release 2111P01

Previous software images:

  flash:/BOOT-R2111.bin

  flash:/SYSTEM-R2111.bin

Upgrade version list:

  boot: 7.1.045P99, Feature com

  system: 7.1.045, Feature com

Upgrade software images:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

# 确认Standby设备当前运行的是待升级的软件版本后,执行issu run switchover将Standby设备切换成主设备,同时Mster设备会加载新的启动软件包进行重启。

<Master> issu run switchover

Upgrade summary according to following table:

 

flash:/BOOT-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

flash:/SYSTEM-R2112.bin

  Running Version             New Version

  Release 2111P01             Feature com

 

  Chassis   Slot              Upgrade Way

  1         0                 Active standby process switchover

  1         0.1               Active standby process switchover

  1         1                 Active standby process switchover

  1         1.1               Active standby process switchover

Upgrading software images to incompatible versions. Continue? [Y/N]: y

# 使用display issu state查看是否切换完成。

<Master> display issu state

ISSU state: Init

Compatibility: Incompatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.045P99, Feature com

  system: 7.1.045, Feature com

Current software images:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

//当ISSU状态显示为Init,表明本次ISSU升级结束。

7.1.5  验证配置

# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R2112版本。

<Master> displayplay install active

Active packages on chassis 1 slot 0:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 0.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 1 slot 1.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 0:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 0.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

Active packages on chassis 2 slot 1.1:

  flash:/BOOT-R2112.bin

  flash:/SYSTEM-R2112.bin

7.1.6  配置文件

8  相关资料

·     H3C S12500系列路由交换机 基础配置指导-Release 7328

·     H3C S12500系列路由交换机 基础配置命令参考-Release 7328

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们