• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

03-H3C 小贝交换机软件升级指导书

06-软件版本升级

本章节下载 06-软件版本升级  (251.69 KB)

06-软件版本升级


1 软件版本升级

本章将为您介绍Boot包、System包、IPE文件等启动软件包的升级过程,包含以下内容:

·     通过boot-loader命令升级

·     通过Bootware菜单升级

·     通过ISSU命令进行兼容升级

·     通过ISSU命令进行不兼容升级

1.1  通过boot-loader命令升级

1.1.1  升级流程

图1-1 通过boot-loader命令升级流程图

 

1.1.2  升级过程

1. 升级前准备

请按“软件升级前准备”章节内容完成升级前的准备。

2. 下载软件包

从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。

3. 升级启动软件

说明

·     boot-loader命令可以直接指定IPE文件,也可以指定Boot包和System包,此处以指定IPE文件为例。

·     不同设备的命令行配置可能略有差异,请以设备实际情况为准。本节以US700系列交换机为例。

 

# 将IPE文件指定为主用启动软件。

<Sysname> boot-loader file flash:/all.ipe all main

Verifying the file flash:/all.ipe on slot 1..............Done.

US700 images in IPE:

  boot.bin

  system.bin

This command will set the main startup software images. Continue? [Y/N]:y

# 将IPE文件指定为备用启动软件。

<Sysname> boot-loader file flash:/all2.ipe all backup

Verifying the file flash:/all2.ipe on slot 1..............Done.

US700 images in IPE:

  boot.bin

  system.bin

This command will set the backup startup software images. Continue? [Y/N]:y

4. 重启设备

重启设备,完成启动软件的升级。

<Sysname> reboot

Start to check configuration with next startup configuration file, please wait.

........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

1.2  通过Bootware菜单升级

1.2.1  升级流程

图1-2 通过Bootware菜单升级流程图

 

1.2.2  升级过程

1. 升级前准备

请按“软件升级前准备”章节内容完成升级前的准备。

2. 通过Bootware菜单下载并升级软件

从PC上下载升级所需的软件包到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。

3. 重启设备

返回到BootWare扩展段主菜单,然后键入<0>,重启设备。

1.3  通过ISSU命令进行兼容升级

说明

·     通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。

·     本章节以2台设备组成IRF进行举例。

·     不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。

 

1.3.1  升级流程

图1-3 通过ISSU命令兼容升级流程图

 

1.3.2  升级过程

1. 升级前准备

请按“软件升级前准备”章节内容完成升级前的准备。

2. 下载软件包

从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。

3. 判断ISSU升级策略

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

<Sysname> display install active

Active packages on slot 1:

  flash:/boot-t0001015.bin

  flash:/system-t0001015.bin

  flash:/feature-t0001015.bin

Active packages on slot 2:

  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 slot 1.......................Done.

Verifying the file flash:/system-t0001016.bin on slot 1................. .................Done.

Verifying the file flash:/feature-t0001016.bin on slot 1.................Done.

Identifying the upgrade methods....Done.

 

  Slot                        Upgrade Way

  1                           Reboot

  2                           Reboot

以上显示信息表明,新版本软件包的升级方式是兼容升级,并需要设备重启。

# 关闭自动回滚功能。

<Sysname> system-view

[Sysname] issu rollback-timer 0

# 设置IRF桥MAC地址为永久保留。

[Sysname] irf mac-address persistent always

# 保存配置。

<Sysname> save

4. 升级启动软件

# 升级从设备的软件包。

<Sysname> issu load file boot flash:/boot-t0001016.bin system flash:/system-t0001016.bin feature flash:/feature-t0001016.bin slot 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 slot2#flash:/boot-t0001016.bin......Done.

Copying file flash:/system-t0001016.bin to slot2#flash:/system-t0001016.bin........................Done.

Copying file flash:/feature-t0001016.bin to slot2#flash:/feature-t0001016.bin......Done.

Verifying the file flash:/boot-t0001016.bin on slot 2...Done.

Verifying the file flash:/system-t0001016.bin on slot 2............Done.

Verifying the file flash:/feature-t0001016.bin on slot 2...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

 

  Slot                        Upgrade Way

  2                           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: Card by card

Upgraded slot:

  slot 2

Current upgrading slot: 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状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有slot2完成了从T0001015到T0001016版本的升级,slot1还未升级。

# 进行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

 

  Slot                        Switchover Way

  1                           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: Card by card

Upgraded slot:

  slot 2

Current upgrading slot: 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操作;当前只有slot2完成了从T0001015到T0001016版本的升级,slot1还未升级。

# 升级主设备。

<Sysname> issu commit slot 1

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

 

  Slot                        Upgrade Way

  1                           Reboot

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

This operation might take several minutes, please wait...Done.

5. 确认ISSU升级完成。

# 查看ISSU状态。

<Sysname> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: 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 slot 1:

  flash:/boot-t0001016.bin

  flash:/system-t0001016.bin

  flash:/feature-t0001016.bin

Active packages on slot 2:

  flash:/boot-t0001016.bin

  flash:/system-t0001016.bin

  flash:/feature-t0001016.bin

从显示信息中可以看出,目前系统处于ISSU分步式升级过程中的Init状态,表示ISSU升级完成,且所有激活的软件包版本均为T0001016,升级成功。

1.4  通过ISSU命令进行不兼容升级

说明

·     通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。

·     本章节以2台设备组成IRF进行举例。

·     不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。

 

1.4.1  升级流程

图1-4 通过ISSU命令不兼容升级流程图

 

1.4.2  升级过程

1. 升级前准备

请按“软件升级前准备”章节内容完成升级前的准备。

2. 下载软件包

从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。

3. 判断ISSU升级策略

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

<Sysname> display install active

Active packages on slot 1:

  flash:/boot-t0001015.bin

  flash:/system-t0001015.bin

  flash:/feature-t0001015.bin

Active packages on slot 2:

  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 slot 1.......................Done.

Verifying the file flash:/system-t0001017.bin on slot 1................. .................Done.

Verifying the file flash:/feature-t0001017.bin on slot 1.................Done.

Identifying the upgrade methods....Done.

 

Incompatible upgrade.

以上显示信息表明,新版本软件包的升级方式是不兼容升级。

# 开启聚合流量重定向功能。

[Sysname] link-aggregation lacp traffic-redirect-notification enable

# 设置IRF桥MAC地址为永久保留。

[Sysname] irf mac-address persistent always

# 保存配置。

<Sysname> save

4. 升级启动软件

# 升级从设备的软件包。

<Sysname> issu load file boot flash:/boot-t0001017.bin system flash:/system-t0001017.bin feature flash:/feature-t0001017.bin slot 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 slot2#flash:/boot-t0001017.bin......Done.

Copying file flash:/system-t0001017.bin to slot2#flash:/system-t0001017.bin........................Done.

Copying file flash:/feature-t0001017.bin to slot2#flash:/feature-t0001017.bin......Done.

Verifying the file flash:/boot-t0001017.bin on slot 2...Done.

Verifying the file flash:/system-t0001017.bin on slot 2............Done.

Verifying the file flash:/feature-t0001017.bin on slot 2...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

 

  Slot                        Upgrade Way

  2                           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: Card by card

Upgraded slot:

  slot 2

Current upgrading slot: 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状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有slot2完成了从T0001015到T0001017版本的升级,slot1还未升级。

# 进行ISSU主备倒换。

<Sysname> issu run switchover

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

 

  Slot                        Switchover Way

  1                           Master subordinate switchover

5. 确认ISSU升级完成。

# 查看ISSU状态。

<Sysname> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Card by card

Upgraded slot: None

Current upgrading slot: 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 slot 1:

  flash:/boot-t0001017.bin

  flash:/system-t0001017.bin

  flash:/feature-t0001017.bin

Active packages on slot 2:

  flash:/boot-t0001017.bin

  flash:/system-t0001017.bin

  flash:/feature-t0001017.bin

从显示信息中可以看出,目前系统处于ISSU分步式升级过程中的Init状态,表示ISSU升级完成,且所有激活的软件包版本均为T0001017,升级成功。

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

新华三官网
联系我们