您好,请知:
以下是参考案例:
· IRF由两个成员设备组成:主设备的成员编号为1,从设备的成员编号为2。
· 将Boot、System和Feature系统软件包从T0001015版本升级到兼容版本T0001016。
图1-3 系统软件包升级组网图
(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 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> save
(2) 软件包升级。
# 升级从设备的软件包。
<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.
(3) 确定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,升级成功。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
会中断部分