06-软件版本升级
本章节下载: 06-软件版本升级 (344.62 KB)
目 录
本章将为您介绍Boot包、System包、IPE文件等启动软件包的升级过程,包含以下内容:
图6-1 通过boot-loader命令升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
· boot-loader命令可以直接指定IPE文件,也可以指定Boot包和System包,此处以指定IPE文件为例。
· 不同设备的命令行配置可能略有差异,请以设备实际情况为准。本节以S10500系列交换机为例。
· 对于框式设备,单主控与双主控的升级过程相同,均按本节操作即可。
# 将IPE文件指定为主用启动软件。
<Sysname> boot-loader file flash:/all.ipe all main
Verifying the file flash:/all.ipe on slot 1..............Done.
H3C S10510 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.
H3C S10510 images in IPE:
boot.bin
system.bin
This command will set the backup startup software images. Continue? [Y/N]:y
重启设备,完成启动软件的升级。
<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...
图6-2 通过Bootware菜单升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件包到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
返回到BootWare扩展段主菜单,然后键入<0>,重启设备。
对于框式设备,若设备上有主用主控板和备用主控板,需要通过Console口分别进入主用主控板和备用主控板的BootWare菜单进行升级操作,同时需要连接对应主控板的管理用以太网接口。
· 通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。
· 本章节中的IRF包含两台设备,且每台设备均安装两块主控板。
· 单主控与双主控的升级过程相同,均按本节操作即可。
· 不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。
图6-3 通过ISSU命令兼容升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
# 查看升级前激活的软件包。
<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
# 保存配置。
<Sysname> save
# 升级从设备的软件包。
<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.
# 查看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
· 通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。
· 本章节以2台设备组成IRF进行举例。
· 不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。
图6-4 通过ISSU命令兼容升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
# 查看升级前激活的软件包。
<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
# 升级从设备的软件包。
<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.
# 查看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,升级成功。
· 通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。
· 本章节中的IRF包含两台设备,且每台设备均安装两块主控板。
· 单主控与双主控的升级过程相同,均按本节操作即可。
· 不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。
图6-5 通过ISSU命令不兼容升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
# 查看升级前激活的软件包。
<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
# 保存配置。
<Sysname> save
# 升级从设备的软件包,升级完成后从设备形成新的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.........
# 查看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
· 通过ISSU命令升级时,需要通过display version comp-matrix命令来判断新版本软件包的升级策略是兼容升级还是不兼容升级。
· 本章节以2台设备组成IRF进行举例。
· 不同设备的命令行提示信息可能略有差异,请以设备实际情况为准。
图6-6 通过ISSU命令不兼容升级流程图
请按“软件升级前准备”章节内容完成升级前的准备。
从PC上下载升级所需的软件到设备。下载软件的详细介绍请参见“附录A 下载升级软件”章节。
# 查看升级前激活的软件包。
<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
# 升级从设备的软件包。
<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
# 查看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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!