05-H3C_ISSU典型配置舉例
本章節下載: 05-H3C_ISSU典型配置舉例 (237.72 KB)
資料版本:6W100-20200330
產品版本:Release 7585P05
Copyright © 2020 bobty下载软件 版權所有,保留一切權利。 非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。 除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。 本文檔中的信息可能變動,恕不另行通知。 |
目 錄
本文檔介紹了ISSU兼容和不兼容升級方式的配置舉例。
ISSU(In-Service Software Upgrade,不中斷業務升級)是一種可靠性高的升級設備啟動軟件的方式,可以在升級過程中做到業務不中斷或中斷時間較短。
進行ISSU升級前,請使用display version comp-matirx命令查看升級待升級啟動軟件包時需要使用的升級方式,使用該命令後,會在Upgrade Way中顯示升級方式,具體升級方式請見表1。
Upgrade Way字段顯示參數 |
|
兼容升級 |
· Service Upgrade · File Upgrade · Reboot |
不兼容升級 |
Incompatible upgrade |
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解ISSU特性。
· 請通過Console口對設備實施ISSU升級。如果通過Telnet或SSH登錄設備實施ISSU升級,在升級過程中可能會因Telnet或SSH連接中斷,導致ISSU升級無法繼續。
· 硬件升級或故障期間,請不要進行ISSU升級。否則可能會導致升級失敗或者係統異常。
· 請仔細閱讀當前的軟件版本和待升級軟件版本的軟件版本說明書,確認前後兩個版本是否支持使用ISSU方式進行升級。
· 請通過display device命令了解設備的當前狀態。請確保此時所有設備均為正常狀態,對於故障設備請先行排除故障後,再進行ISSU升級。
· 請通過display mdc命令查看MDC的狀態,確保所有MDC的狀態均為active才可以進行ISSU升級,否則可能導致該設備升級異常。
· 升級前確保各成員設備的剩餘存儲空間大於等於新啟動軟件包大小的2倍。請使用dir命令確認主控板/成員設備的存儲介質有足夠的空間來存放新的軟件包/IPE文件。如果空間不足,請刪除不需要的文件。
表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 |
· 通過link-delay命令將以太網接口物理連接狀態抑製時間設置為0秒,即不抑製,當接口狀態發生改變時立即上報CPU · 請使能聚合流量重定向功能,確保聚合鏈路上的流量不中斷 · 請配置IRF橋MAC地址的保留時間為永久保留 · 如果需要對整個IRF進行不兼容升級,請先關閉IRF MAD 檢測功能,完成ISSU升級後再重新配置 |
· ISSU升級期間,請確保網絡拓撲穩定,禁止手工重啟單板和插拔單板。
· ISSU升級期間,請確保係統中除了當前執行ISSU升級命令的用戶外無其他用戶登錄。
· ISSU升級期間,請不要執行ISSU之外的配置命令,以免影響配置效果。
· 禁止對啟動軟件包進行修改、刪除以及重命名等操作。
如圖1所示,IRF由兩台成員設備組成,現要求使用ISSU方式進行成員設備的升級,將設備啟動軟件包由R7150版本升級到7585P05版本。
圖1 ISSU兼容升級組網圖
# 從TFTP server下載new.ipe包到Master設備的根目錄下,該IPE包中含有兩個待升級啟動軟件包boot-7585P05.bin包和system-7585P05.bin包。
<Sysname> 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
# 查看各成員設備當前運行的啟動軟件包。
<Sysname> display boot-loader
Software images on chassis 1 slot 0:
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 chassis 1 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 chassis 2 slot 0:
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 chassis 2 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
# 使用display version comp-matrix file ipe命令查看待升級啟動軟件包的ISSU升級策略。
<Sysname> display version comp-matrix file ipe flash:/new.ipe
Verifying the file flash:/new.ipe on chassis 1 slot 0.....Done.
Identifying the upgrade methods...........Done.
Chassis Slot Upgrade Way
1 0 Reboot
1 1 Reboot
2 0 Reboot
2 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/0/1
[Sysname-Ten-GigabitEthernet1/0/1] link-delay up 0
[Sysname-Ten-GigabitEthernet1/0/1] link-delay down 0
[Sysname-Ten-GigabitEthernet1/0/1] quit
[Sysname] interface ten-gigabitethernet2/0/1
[Sysname-Ten-GigabitEthernet2/0/1] link-delay up 0
[Sysname-Ten-GigabitEthernet2/0/1] link-delay down 0
[Sysname-Ten-GigabitEthernet2/0/1] quit
[Sysname] quit
# 對Standby設備進行升級。
<Sysname> issu load file ipe flash:/new.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 the file flash:/boot-7585P05.bin on Chassis 1 slot 0...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 1 slot 0...Done.
Copying file flash:/boot-7585P05.bin to chassis2#slot0#flash:/boot-7585P05.bin......Done.
Copying file flash:/system-7585P05.bin to chassis2#slot0#flash:/system-7585P05.bin......Done.
Verifying the file flash:/boot-7585P05.bin on Chassis 2 slot 0...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 2 slot 0...Done.
Copying file flash:/boot-7585P05.bin to chassis2#slot1#flash:/boot-7585P05.bin......Done.
Copying file flash:/system-7585P05.bin to chassis2#slot1#flash:/system-7585P05.bin......Done.
Verifying the file flash:/boot-7585P05.bin on Chassis 2 slot 1...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 2 slot 1...Done.
Upgrade summary according to following table:
flash:/boot-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
flash:/system-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
Chassis Slot Upgrade Way
2 0 Reboot
2 1 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設備當前運行的軟件版本。
<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
Current version list:
boot: 7.1.070, Release 7585P05
system: 7.1.070, Release 7585P05
Current software images:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
# 確認Standby設備當前運行的是待升級的軟件版本後,將Master設備切換成主設備。
<Sysname> issu run switchover
Upgrade summary according to following table:
flash:/boot-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
flash:/system-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
Chassis Slot Switchover Way
1 0 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查看是否切換完成。
<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
Current version list:
boot: 7.1.070, Release 7585P05
system: 7.1.070, Release 7585P05
Current software images:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
//確認ISSU狀態為Switchover後,可進行下一步操作。
# 對原主設備進行升級。
<Sysname> 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
Copying file flash:/boot-7585P05.bin to chassis1#slot1#flash:/boot-7585P05.bin......Done.
Verifying the file flash:/boot-7585P05.bin on Chassis 1 slot 1...Done.
Copying file flash:/system-7585P05.bin to chassis1#slot1#flash:/system-7585P05.bin......Done.
Verifying the file flash:/system-7585P05.bin on Chassis 1 slot 1...Done.
Upgrade summary according to following table:
flash:/boot-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
flash:/system-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
Chassis Slot Upgrade Way
1 0 Reboot
1 1 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
# Master設備重啟後,使用display issu state查看ISSU升級的狀態。
<Sysname> 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.070, Release 7585P05
system: 7.1.070, Release 7585P05
Current software images:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
// 當ISSU狀態為Init後,表明ISSU升級工作完成。
# 升級完成後,通過display install active命令查看設備當前運行的啟動軟件包版本,可以看到設備當前運行的啟動軟件包為7585P05版本。
<Sysname> display install active
Active packages on chassis 1 slot 0:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 1 slot 1:
flash://boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 2 slot 0:
flash://boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 2 slot 1:
flash://boot-7585P05.bin
flash:/system-7585P05.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/0/1
port link-mode bridge
link-delay up 0
link-delay down 0
#
interface Ten-GigabitEthernet2/0/1
port link-mode bridge
link-delay up 0
link-delay down 0
#
如圖2所示,IRF由兩台成員設備組成,現要求通過ISSU方式進行全部成員設備啟動軟件包的升級,將設備啟動軟件包由R7150版本升級到7585P05版本。
圖2 ISSU不兼容升級組網圖
# 從TFTP Server下載new.ipe包到Mster設備的根目錄下,該IPE包中含有兩個待升級啟動軟件包boot-7585P05.bin包和system-7585P05.bin包。
<Sysname> 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
# 查看各成員設備當前運行的啟動軟件包。
<Sysname> display boot-loader
Software images on chassis 1 slot 0:
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 chassis 1 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 chassis 2 slot 0:
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 chassis 2 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
# 使用display version comp-matrix file ipe命令查看待升級啟動軟件包的ISSU升級策略。
<Sysname> display version comp-matrix file ipe flash:/new.ipe
Verifying image file flash:/new.ipe........Done.
Identifying the upgrade methods...........Done.
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/0/1
[Sysname-Ten-GigabitEthernet1/0/1] link-delay up 0
[Sysname-Ten-GigabitEthernet1/0/1] link-delay down 0
[Sysname-Ten-GigabitEthernet1/0/1] quit
[Sysname] interface ten-gigabitethernet2/0/1
[Sysname-Ten-GigabitEthernet2/0/1] link-delay up 0
[Sysname-Ten-GigabitEthernet2/0/1] link-delay down 0
[Sysname-Ten-GigabitEthernet2/0/1] quit
[Sysname] quit
# 對Standby設備進行升級。
<Sysname> issu load file ipe flash:/new.ipe chassis 2
Verifying the file flash:/boot-7585P05.bin on Chassis 1 slot 0...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 1 slot 0...Done.
Copying file flash:/boot-7585P05.bin to chassis2#slot0#flash:/boot-7585P05.bin......Done.
Copying file flash:/system-7585P05.bin to chassis2#slot0#flash:/system-7585P05.bin......Done.
Verifying the file flash:/boot-7585P05.bin on Chassis 2 slot 0...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 2 slot 0...Done.
Copying file flash:/boot-7585P05.bin to chassis2#slot1#flash:/boot-7585P05.bin......Done.
Copying file flash:/system-7585P05.bin to chassis2#slot1#flash:/system-7585P05.bin......Done.
Verifying the file flash:/boot-7585P05.bin on Chassis 2 slot 1...Done.
Verifying the file flash:/system-7585P05.bin on Chassis 2 slot 1...Done.
Upgrade summary according to following table:
flash:/boot-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
flash:/system-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
Chassis Slot Upgrade Way
2 0 Reboot
2 1 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
# Standby設備重啟完成後,使用display issu state查看當前ISSU升級的狀態和Standby設備當前運行的軟件版本。
<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
Current version list:
boot: 7.1.070, Release 7585P05
system: 7.1.070, Release 7585P05
Current software images:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
# 確認Standby設備當前運行的是待升級的軟件版本後,執行issu run switchover將Standby設備切換成主設備,同時Mster設備會加載新的啟動軟件包進行重啟。
<Sysname> issu run switchover
Upgrade summary according to following table:
flash:/boot-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
flash:/system-7585P05.bin
Running Version New Version
Release 7150 Release 7585P05
Chassis Slot Switchover Way
1 1 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
# 使用display issu state查看是否切換完成。
<Sysname> 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.070, Release 7585P05
system: 7.1.070, Release 7585P05
Current software images:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
//當ISSU狀態顯示為Init,表明本次ISSU升級結束。
# 升級完成後,通過display install active命令查看設備當前運行的啟動軟件包版本,可以看到設備當前運行的啟動軟件包為7585P05版本。
<Sysname> display install active
Active packages on chassis 1 slot 0:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 1 slot 1:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 2 slot 0:
flash:/boot-7585P05.bin
flash:/system-7585P05.bin
Active packages on chassis 2 slot 1:
flash:/boot-7585P05.bin
flash:/system-7585P05.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/0/1
port link-mode bridge
link-delay up 0
link-delay down 0
#
interface Ten-GigabitEthernet2/0/1
port link-mode bridge
link-delay up 0
link-delay down 0
#
· H3C S10500係列交換機 基礎配置指導-R758X
· H3C S10500係列交換機 基礎命令參考-R758X
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!