本文档介绍了ISSU兼容和不兼容升级方式的配置举例。
ISSU(In-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式,可以在升级过程中做到业务不中断或中断时间较短。
进行ISSU升级前,请使用display version comp-matirx命令查看升级待升级启动软件包时需要使用的升级方式,使用该命令后,会在Upgrade Way中显示升级方式,具体升级方式请见
Upgrade Way字段显示参数
兼容升级
· Service Upgrade
· File Upgrade
· Reboot
不兼容升级
Incompatible upgrade
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解ISSU特性。
1. ISSU升级对硬件的要求
· 请通过Console口对设备实施ISSU升级。如果通过Telnet或SSH登录设备实施ISSU升级,在升级过程中可能会因Telnet或SSH连接中断,导致ISSU升级无法继续。
· 硬件升级或故障期间,请不要进行ISSU升级。否则可能会导致升级失败或者系统异常。
2. ISSU升级需要满足的条件
· 请仔细阅读当前的软件版本和待升级软件版本的软件版本说明书,确认前后两个版本是否支持使用ISSU方式进行升级。
· 请通过display device命令了解设备的当前状态。请确保此时所有设备均为正常状态,对于故障设备请先行排除故障后,再进行ISSU升级。
· 升级前确保各成员设备的剩余存储空间大于等于新启动软件包大小的2倍。请使用dir命令确认成员设备的存储介质有足够的空间来存放新的软件包/IPE文件。如果空间不足,请删除不需要的文件。
3. ISSU升级和其他特性之间的限制关系
表3-1 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
· 通过link-delay命令将以太网接口物理连接状态抑制时间设置为0秒,即不抑制,当接口状态发生改变时立即上报CPU
· 请使能聚合流量重定向功能,确保聚合链路上的流量不中断
· 请配置IRF桥MAC地址的保留时间为永久保留
· 如果需要对整个IRF进行不兼容升级,请先关闭IRF MAD 检测功能,完成ISSU升级后再重新配置
4. ISSU升级期间的操作限制
· ISSU升级期间,请确保系统中除了当前执行ISSU升级命令的用户外无其他用户登录。
· ISSU升级期间,请不要执行ISSU之外的配置命令,以免影响配置效果。
· 禁止对启动软件包进行修改、删除以及重命名等操作。
4兼容升级典型配置举例
4.1.1 组网需求
如
本举例是在S7500EXS-CMW710-R7536P05版本上进行配置和验证的。
# 从TFTP server下载new.ipe包到Master设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R7536P05.bin包和system-R7536P05.bin包。
tftp 2.2.2.2 get new.ipe
% Total %
Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 256 100 256 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
# 查看各成员设备当前运行的启动软件包。
display boot-loader
Software images on slot 1:
Current software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Main startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Backup startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Software images on slot 2:
Current software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Main startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Backup startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。
display version comp-matrix file ipe flash:/new.ipe
Verifying image file.......Done.
Verifying the file flash:/S75EXS-CMW710-BOOT-E7532.bin on slot 1.....Done.
Identifying the upgrade methods...........Done.
Boot image: boot-R7536P05.bin
Version:
7.1.70-R7536P05
System image: system-R7536P05.bin
Version:
7.1.70-R7536P05
Version compatibility list:
7.1.45-R7536P05
7.1.70-R7536P05
Version dependency boot list:
7.1.70-R7536P05
Slot Upgrade Way
1 Reboot
根据显示信息,本次ISSU升级为兼容重启升级方式中的重启方式。
# 关闭自动回滚功能。
[Sysname] issu rollback-timer 0
# 开启聚合流量重定向功能。
[Sysname] link-aggregation lacp traffic-redirect-notification enable
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface ten-gigabitethernet1/1/1
[Sysname-Ten-GigabitEthernet1/1/1] link-delay 0 mode updown
[Sysname-Ten-GigabitEthernet1/1/1] quit
[Sysname] interface ten-gigabitethernet1/1/1
[Sysname-Ten-GigabitEthernet1/1/1] link-delay 0 mode updown
[Sysname-Ten-GigabitEthernet1/1/1] quit
[Sysname] quit
# 对Standby设备进行升级。
issu load file ipe flash:/new.ipe slot 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 the file flash:/boot-R7536P05.bin on slot 1...Done.
Verifying the file flash:/system-R7536P05.bin on slot 1...Done.
Copying file flash:/boot-R7536P05.bin to slot2#flash:/boot-R7536P05.bin......Done.
Copying file flash:/system-R7536P05.bin to slot2#flash:/system-R7536P05.bin......Done.
Verifying the file flash:/boot-R7536P05.bin on slot 2...Done.
Verifying the file flash:/system-R7536P05.bin on slot 2...Done.
Upgrade summary according to following table:
flash:/boot-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
flash:/system-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
Slot Upgrade Way
2 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait...Done.
# Standby设备完成重启后,使用display issu state查看ISSU升级的状态和Standby设备当前运行的软件版本。
ISSU state: Loaded
Compatibility: Compatible
Work state: Normal
Upgrade method: Card by card
Upgraded slot:
slot 2
Current upgrading slot: None
Current version list:
boot: 7.1.070, Release 7536P05
system: 7.1.070, Release 7536P05
Current software images:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
# 确认Standby设备当前运行的是待升级的软件版本后,将Master设备切换成从设备。
issu run switchover
Upgrade summary according to following table:
flash:/boot-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
flash:/system-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
Slot Switchover Way
1
Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 使用display issu state查看是否切换完成。
display issu state
ISSU state: Switchover
Compatibility: Compatible
Work state: Normal
Upgrade method: Card by card
Upgraded slot:
slot 1
Current upgrading slot: None
Current version list:
boot: 7.1.070, Release 7536P05
system: 7.1.070, Release 7536P05
Current software images:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
//确认ISSU状态为Switchover后,可进行下一步操作。
# 对原主设备进行升级。
issu commit slot 1
This operation will delete the rollback point information for the previous upgra
de and maybe get unsaved configuration lost. Continue? [Y/N]:y
Copying file flash:/boot-R7536P05.bin to slot1#flash:/boot-R7536P05.bin......Done.
Verifying the file flash:/boot-R7536P05.bin on slot 1...Done.
Copying file flash:/system-R7536P05.bin to slot1#flash:/system-R7536P05.bin......Done.
Verifying the file flash:/system-R7536P05.bin on slot 1...Done.
Upgrade summary according to following table:
flash:/boot-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
flash:/S7500EXS-CMW710-SYSTEM-R7536P05.bin
Running Version New Version
Release 7150 Release 7536P05
Slot Upgrade Way
1 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
# Master设备重启后,使用display issu state查看ISSU升级的状态。
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:
boot: 7.1.070, Release 7536P05
system: 7.1.070, Release 7536P05
Current software images:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
// 当ISSU状态为Init后,表明ISSU升级工作完成。
# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R7536P05版本。
Active packages on slot 1:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
Active packages on slot 2:
flash://boot-R7536P05.bin
flash:/system-R7536P05.bin
#
irf mac-address persistent always
irf auto-update enable
irf auto-merge enable
undo irf link-delay
irf member 1 priority 1
irf mode normal
#
issu rollback-timer 0
#
link-aggregation lacp traffic-redirect-notification enable
#
interface Ten-GigabitEthernet1/1/1
port link-mode bridge
link-delay 0 mode updown
#
interface Ten-GigabitEthernet1/1/1
port link-mode bridge
link-delay 0 mode updown
#
5.1.1 组网需求
如图5-1所示,IRF由两台成员设备组成,现要求通过ISSU方式进行全部成员设备启动软件包的升级,将设备启动软件包由R7150版本升级到R7536P05版本。
本举例是在S7500EXS-CMW710-R7536P05版本上进行配置和验证的。
# 从TFTP Server下载new.ipe包到Mster设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R7536P05.bin包和system-R7536P05.bin包。
tftp 2.2.2.2 get new.ipe
% Total %
Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43.8M 100 42.8M 0 0 159k 0 0:04:34 0:04:34 --:--:-- 165k
# 查看各成员设备当前运行的启动软件包。
display boot-loader
Software images on slot 1:
Current software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Main startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Backup startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Software images on slot 2:
Current software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Main startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
Backup startup software images:
flash:/boot-R7150.bin
flash:/system-R7150.bin
# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。
display version comp-matrix file ipe flash:/new.ipe
Verifying image file........Done.
Boot image: boot-R7536P05.bin
Version:
7.1.70-R7536P05
System image: system-R7536P05.bin
Version:
7.1.70-R7536P05
Version compatibility list:
7.1.70-R7536P05
Version dependency boot list:
7.1.70-R7536P05
Incompatible upgrade.
//根据显示信息Incompatible upgrade,本次ISSU升级为不兼容升级,升级过程中需要重启设备。
# 开启聚合流量重定向功能。
[Sysname] link-aggregation lacp traffic-redirect-notification enable
# 设置IRF桥MAC地址为永久保留。
[Sysname] irf mac-address persistent always
# 以太网接口物理连接状态抑制时间设置为0秒。
[Sysname] interface ten-gigabitethernet1/1/1
[Sysname-Ten-GigabitEthernet1/1/1] link-delay 0 mode updown
[Sysname-Ten-GigabitEthernet1/1/1] quit
[Sysname] interface ten-gigabitethernet1/1/1
[Sysname-Ten-GigabitEthernet1/1/1] link-delay 0 mode updown
[Sysname-Ten-GigabitEthernet1/1/1] quit
[Sysname] quit
# 对Standby设备进行升级。
issu load file ipe flash:/new.ipe slot 2
Verifying the file flash:/boot-R7536P05.bin on slot 1...Done.
Verifying the file flash:/system-R7536P05.bin on slot 1...Done.
Copying file flash:/boot-R7536P05.bin to slot2#flash:/boot-R7536P05.bin......Done.
Copying file flash:/system-R7536P05.bin to slot2#flash:/system-R7536P05.bin......Done.
Verifying the file flash:/boot-R7536P05.bin on slot 2...Done.
Verifying the file flash:/system-R7536P05.bin on slot 2...Done.
Upgrade summary according to following table:
flash:/boot-R7536P05.bin
Running Version New Version
Release 7150
Release 7536P05
flash:/system-R7536P05.bin
Running Version New Version
Release 7150
Release 7536P05
Slot Upgrade Way
2 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
# Standby设备重启完成后,使用display issu state查看当前ISSU升级的状态和Standby设备当前运行的软件版本。
display issu state
ISSU state: Loaded
Compatibility: Incompatible
Work state: Normal
Upgrade method: Card by card
Upgraded slot:
slot 2
Current upgrading slot: None
Current version list:
boot: 7.1.070, Release 7536P05
system: 7.1.070, Release 7536P05
Current software images:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
# 确认Standby设备当前运行的是待升级的软件版本后,执行issu run switchover将Standby设备切换成主设备,同时Mster设备会加载新的启动软件包进行重启。
issu run switchover
Upgrade summary according to following table:
flash:/boot-R7536P05.bin
Running Version New Version
Release 7150
Release 7536P05
flash:/system-R7536P05.bin
Running Version New Version
Release 7150
Release 7536P05
Slot Switchover Way
2 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
# 使用display issu state查看是否切换完成。
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:
boot: 7.1.070, Release 7536P05
system: 7.1.070, Release 7536P05
Current software images:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
//当ISSU状态显示为Init,表明本次ISSU升级结束。
# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R7536P05版本。
display install active
Active packages on slot 1:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
Active packages on slot 2:
flash:/boot-R7536P05.bin
flash:/system-R7536P05.bin
#
irf mac-address persistent always
irf auto-update enable
irf auto-merge enable
undo irf link-delay
irf member 1 priority 1
irf mode normal
#
issu rollback-timer 0
#
link-aggregation lacp traffic-redirect-notification enable
#
interface Ten-GigabitEthernet1/1/1
port link-mode bridge
link-delay 0 mode updown
#
interface Ten-GigabitEthernet1/1/1
port link-mode bridge
link-delay 0 mode updown
#
· H3C S7500E-XS系列交换机 基础配置指导-R7536P05
· H3C S7500E-XS系列交换机 基础命令参考-R7536P05