08-ISSU配置
本章節下載: 08-ISSU配置 (709.35 KB)
ISSU(In-Service Software Upgrade,不中斷業務升級)是一種可靠性高的升級設備啟動軟件的方式。它主要通過以下幾個方麵來確保在升級過程中業務不中斷或者中斷時間較短。
· 引入軟件包概念,便於軟件的管理和維護。將啟動軟件按功能劃分成Boot軟件包、System軟件包、Feature軟件包和補丁包,將係統軟件中比較穩定的基礎進程和相對比較活躍的業務進程分離。通常情況下,不需要升級基礎進程,隻需升級部分業務進程。而且,業務進程之間互相獨立,當某業務需要版本更新時,隻需升級該業務對應的軟件包即可,不用升級所有模塊,從而不會對設備運行甚至其它業務造成影響。關於軟件包的詳細介紹請參見“基礎配置指導”中的“軟件升級”。
· 支持熱補丁。使用補丁包在不重啟設備的情況下快速修複係統缺陷。
· 根據不同的應用場景,提供不同的升級策略,盡量避免升級影響到當前業務的正常進行。升級方式的詳細描述請參見“1.1 ISSU升級策略”。
· 需要硬件的配合,比如部署兩塊主控板。當主用主控板需要重啟升級時,備用主控板能接替主用主控板的工作,保證升級過程業務盡量不中斷。(獨立運行模式)
· 需要硬件的配合,比如部署至少兩塊主控板。當全局主用主控板需要重啟升級時,全局備用主控板能接替全局主用主控板的工作,保證升級過程業務盡量不中斷。(IRF模式)
本文中的升級指的是廣義上升級,即升級前後,運行兩個不同版本的軟件。它包括狹義上的升級和降級。
軟件在發布的時候,開發會根據當前版本和曆史版本是否兼容以及兼容的程度,製定升級策略。ISSU升級策略有3種:增量升級、重啟升級以及不兼容升級。
進行ISSU方式前,請先將要升級的目標軟件包下載到設備存儲介質的根目錄下,然後通過display version comp-matrix file命令顯示設備將采用的ISSU升級策略。ISSU升級策略不同對當前業務的影響不同,采用的升級步驟也會有差異。
當ISSU升級策略為重啟升級時,如IRF物理端口位於主控板上,請確保所有成員的主用主控板和備用主控板上都存在IRF物理鏈路。
表1-1 ISSU升級策略描述表
本策略用於隻有用戶態進程需要更新時。使用該策略升級時,係統會僅對有差異的用戶態進程實施升級,並通過進程的備份和倒換來保證升級過程中業務不中斷。該策略對係統影響最小、升級速度最快,為ISSU升級的最佳方式 |
Upgrade Way字段顯示為: · Service Upgrade:表示服務級增量升級,該策略僅對本業務模塊有影響,對係統以及其他業務模塊沒有影響 · File Upgrade:表示文件級增量升級。該策略僅對係統內的、用戶不可見的程序文件進行升級,對係統以及業務模塊沒有影響 |
||
Upgrade Way字段顯示為:Reboot,表示該單板升級時會直接重啟來加載新軟件 |
|||
重啟升級(IRF模式) |
重啟升級過程中,除了正在重啟的成員設備/主控板,其它成員設備/主控板均處於工作狀態,從而保證了升級過程中業務不中斷 |
Upgrade Way字段顯示為:Reboot,表示該單板升級時會直接重啟來加載新軟件 |
|
表示設備當前運行的軟件版本和要升級的目標軟件版本不兼容時的升級 不兼容版本因為版本差異較大,所以,在同一個係統中,兩個版本不能同時運行。因此,不兼容升級過程中: (1) 請先將某個備設備升級到新版本,備設備升級完成後,係統會將它處於隔離狀態,不能轉發報文,主設備和其它沒有升級的備設備處於工作狀態 (2) 然後執行主備倒換操作,此時,備設備變成主設備,自動接替原主設備工作,原主設備和其它沒有升級的備設備逐個重啟完成升級 |
ISSU有兩種升級方式,一種是install命令升級方式,另一種是issu命令升級方式。
表1-2 issu命令升級方式和install命令升級方式比較表
issu命令升級方式 |
install命令升級方式 |
|
適合升級的軟件包及組網要求 |
IRF的組網環境:Boot軟件包、System軟件包 |
獨立運行模式、IRF組網環境:Feature軟件包和補丁包 |
· 為確保升級成功,請核對產品的版本說明書,充分了解設備當前版本和目標版本之間的特性變更,務必將目標版本中不支持的命令行刪除並保存配置後,再執行升級操作。
· 如果要卸載特性軟件包,在卸載特性軟件包之前,請務必將該軟件包特性對應的命令行全部刪除,並保存配置。
在ISSU升級過程中,請遵循以下指導:
· 在當前的升級動作未結束前,不允許再執行其他升級動作。升級動作包括執行install、issu、boot-loader命令。
· 請不要執行以下操作:
¡ 手工重啟單板和插拔單板。
¡ 執行ISSU之外的操作,包括配置修改及信息查詢等。
¡ 對啟動軟件包進行修改、刪除以及重命名等操作。
· ISSU升級過程中issu和install命令互斥,隻能選擇其中的一種方式進行升級。但issu命令升級顯示和維護命令在install命令升級過程中也可以使用。
· ISSU升級需要經過一係列的操作步驟,升級過程中有嚴格的步驟要求。請完成一個步驟後再執行下一個步驟。
· 執行issu load、issu run switchover、issu commit、install activate或install deactivate命令進行ISSU升級前,需保證設備處於穩定狀態,否則無法執行操作。可以使用display system stable state命令查看係統狀態,當System State字段為Stable時,設備處於穩定狀態。關於display system stable state命令的詳細介紹請參見“基礎配置命令參考”中的“設備管理”。
· 當issu命令指定的軟件包不能全部覆蓋設備當前啟動軟件包時,除issu命令指定的軟件包之外的其他軟件包會被沿用,例如設備當前啟動軟件包中含有Feature包並且該Feature包有效,issu命令指定新的軟件包中不包含新的Feature包,那麼當前版本的Feature包會被沿用。若沿用的軟件包與issu命令指定的軟件包不兼容,會導致設備升級失敗。
· 設備上可安裝的軟件包(包括Boot包、System包、Feature包和補丁包)共為32個,其中Boot包和System包隻能安裝一個,Feature包和補丁包總共可安裝30個。
· 補丁包分為疊加補丁和非疊加補丁。疊加補丁最多可以同時安裝30個;由於每個Boot、System和Feature包隻能安裝一個非疊加補丁,所以非疊加補丁最多隻能在設備上安裝16個。有關疊加補丁和非疊加補丁的詳細介紹請參見,“基礎配置指導”的“軟件升級”。
升級完成後請重新登錄設備,否則將無法執行新版本與舊版本之間變更的命令。
請確保此時所有設備均為正常狀態,對於故障設備請先行排除故障後,再進行ISSU升級。
(1) 請通過display device命令了解設備的當前狀態,確保所有在位的硬件狀態為Master、Standby或者Normal。
(2) 通過display irf命令檢查IRF所有成員設備當前狀態是否正常。
(3) 通過display cpu-usage命令檢查設備CPU利用率是否低於門限值,建議所有設備的CPU利用率不要超過CPU利用率恢複門限值。
(4) 通過display memory和display memory-threshold命令檢查設備內存剩餘是否低於告警閾值,建議所有設備的內存剩餘不要超過內存剩餘恢複到正常狀態的閾值。
(5) 通過display fan命令檢查風扇狀態是否均為Normal,所有設備的風扇狀態必須為Normal。
(6) 通過display power命令檢查電源狀態是否均為Normal,所有設備的電源狀態必須為Normal。
(7) 通過display environment命令檢查設備上各硬件的當前溫度是否均低於Warning值,所有硬件的當前溫度必須低於Warning值。
(8) 通過display counters rate inbound interface命令檢查各端口是否都正常轉發流量,保證升級前各端口流量轉發正常。
(9) 通過display interface | include CRC命令檢查各端口是否都正常轉發流量,保證升級前各端口流量轉發正常。
對於ISSU重啟升級和不兼容升級,部分功能需要保證當前配置和重啟後的配置的一致性,否則ISSU在執行從設備重啟之後將由於主從設備的配置不一致導致IRF分裂,繼而無法繼續進行ISSU升級。需要檢查的功能的配置和顯示命令如下:
· 係統工作模式。
system-working-mode
display system-working-mode
· 最大等價路由條數。
max-ecmp-num
display max-ecmp-num
關於係統工作模式的運行模式的配置,請參見“基礎配置指導”中的“設備管理配置”。關於最大等價路由條數的配置,請參見“三層技術-IP路由配置指導”中的“IP路由基礎配置”。
為確保ISSU升級期間的業務連續性,請確保如下協議或特性的配置符合如下要求。
表1-3 確認相關協議狀態
特性 |
要求 |
GR或NSR |
開啟LDP、RSVP、OSPF、ISIS、BGP和FSPF等協議的GR或NSR功能,否則ISSU升級期間可能會出現業務中斷的現象 請通過display命令確認協議的GR或NSR功能開啟後係統是否處於穩定狀態,以OSPF協議為例: · 開啟GR功能後,請通過display ospf graceful-restart命令確認 · 開啟NSR功能後,請通過display ospf non-stop-routing status命令確認 |
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升級成功,請確保升級前所有的升級準備要求均已完成。
建議通過Console口對設備實施ISSU升級。如果通過Telnet或SSH登錄設備實施ISSU升級,在升級過程中可能會因Telnet或SSH連接中斷,導致ISSU升級無法繼續。
請確保係統中除了當前執行ISSU升級命令的用戶外無其他用戶登錄。
請仔細閱讀軟件包版本發布說明書,了解如下信息:
(1) 當前版本與新軟件版本之間是否支持ISSU升級。
(2) 新的軟件是否需要License才能運行。如果設備當前沒有對應的有效的License時,請先安裝對應的License,再進行ISSU升級。否則,會導致軟件包安裝失敗。
(1) 請使用dir命令查看主控板Flash和USB外接設備,來確保設備上有足夠的磁盤空間保存啟動軟件包。
(2) 使用save命令保存當前配置。
(3) 通過FTP或TFTP將軟件包下載到主用主控板任一文件係統的根目錄。(獨立運行模式)
(4) 通過FTP或TFTP將軟件包下載到全局主用主控板任一文件係統的根目錄。(IRF模式)
(1) 執行帶文件名參數的display version comp-matrix file命令顯示設備將采用的ISSU升級策略。
(2) 確認ISSU升級方式:
· 對於兼容版本升級,查看顯示信息中的“Upgrade Way”字段。
· 對於非兼容版本升級,查看顯示信息末尾部分,會顯示“Incompatible upgrade”。
(1) 根據確定的升級策略,選擇升級方式(參見“1.2 ISSU升級方式”)。
(2) 確認設備的硬件冗餘情況。
ISSU隻有在下列情況下才能保證業務連續性:
¡ IRF中有多個正常工作的成員設備,采用環形組網。如果隻有一個成員,並且升級方式為重啟升級或不兼容升級時,不能保證業務不中斷。(IRF模式)
¡ IRF中有兩個或者兩個以上主控板並且都正常工作時,才能保證升級過程中業務不中斷或者中斷較少時間。如果整個IRF隻有一個主控板,並且升級方式為重啟升級或不兼容升級時,不能保證業務不中斷。(IRF模式)
(3) 選擇升級流程:根據硬件冗餘情況及ISSU升級策略在“2 通過issu命令升級”和“3 通過install命令升級”選擇相應的升級流程。
(1) 如果升級的目標版本與設備當前運行版本有特性變更,請務必將目標版本不支持的命令行刪除。
(2) 如果要卸載特性軟件包,在卸載該軟件包之前,請務必刪除該軟件包特性對應的命令行。
(3) 使用save命令保存當前配置。
使用issu命令安裝/升級軟件時,係統會根據版本需要自動同時安裝/升級業務板的軟件,因此,業務板不需要單獨執行軟件包安裝/升級操作。
當有多個成員設備,升級的基本原則是以成員設備為單位升級,且先升級某個從設備,然後再升級包括主設備在內的其它成員設備。
升級前,請使用帶文件名參數的display version comp-matrix file命令顯示設備將采用的ISSU升級策略。
· 如果當前軟件包版本在顯示信息的“Version compatibility list”中,則說明本次升級為兼容版本升級。請使用表2-1所示的步驟進行升級。
· 如果當前軟件包版本不在顯示信息的“Version compatibility list”中,則說明本次升級為不兼容版本升級。請使用表2-2所示的步驟進行升級。
· 所有成員設備完成升級後,本次升級結束,ISSU回到初始狀態。執行issu commit命令後,不能再通過ISSU回滾命令或者回滾定時器進行回滾操作。多個從設備的情況下應該在一個從設備啟動完成並重新加入IRF後再對下一個從設備執行該命令,否則可能引起升級錯誤。
· 係統在升級設備的啟動軟件包並將設備的主用下次啟動軟件包設置為指定的軟件包前會對軟件包進行數字簽名校驗,如果軟件包通過校驗則升級設備的啟動軟件包並將設備的主用下次啟動軟件包設置為指定的軟件包;如果軟件包未通過校驗則不會升級設備的啟動軟件包並將設備的主用下次啟動軟件包設置為指定的軟件包,並返回錯誤提示信息。
system-view |
- |
|
關閉自動回滾功能 |
issu rollback-timer 0 |
回滾功能較複雜,不推薦使用,升級之前需關閉自動回滾功能 |
返回用戶視圖 |
quit |
- |
確定係統處於穩定狀態 |
display system stable state |
使用本命令顯示的system state字段為Stable,則表示設備處於穩定狀態。ISSU升級前使用本命令查看設備的狀態,需要等待設備進入穩定狀態,才可以進行ISSU升級 |
issu load file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * chassis chassis-number [ reboot ] |
chassis chassis-number請指定為某個從設備的成員編號 |
|
issu load file ipe ipe-filename [ patch filename&<1-30> ] chassis chassis-number&<1-3> [ reboot ] |
||
確定係統處於穩定狀態 |
display system stable state |
執行issu load命令後須等待設備穩定之後才能進行下一步操作。若在此階段升級出錯,也可以等待設備穩定之後使用issu rollback命令手動將版本回滾到升級前的狀態 |
進行ISSU倒換 |
||
(可選)確認ISSU兼容升級,接受指定主控板的運行版本 |
||
chassis chassis-number請指定為其它沒升級的成員設備的編號。請等待一個成員設備升級完成後,再使用該命令升級下一個成員設備 |
||
確定ISSU升級完成 |
display issu state |
完成以上配置後,當本命令顯示的ISSU state字段為Init,則表示ISSU升級完成 |
確定係統處於穩定狀態 |
display system stable state |
使用本命令顯示的system state字段為Stable,則表示設備處於穩定狀態。ISSU升級前使用本命令查看設備的狀態,需要等待設備進入穩定狀態,才可以進行ISSU升級 |
issu load file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * chassis chassis-number&<1-3> [ reboot ] |
chassis chassis-number&<1-3>請輸入1個或多個從設備的成員編號 |
|
issu load file ipe ipe-filename [ patch filename&<1-30> ] chassis chassis-number&<1-3> [ reboot ] |
||
確定係統處於穩定狀態 |
display system stable state |
執行issu load命令後須等待設備穩定之後才能進行下一步操作。若在此階段升級出錯,也可以等待設備穩定之後使用issu rollback命令手動將版本回滾到升級前的狀態 |
進行ISSU倒換,並且將剩餘待升級的成員設備進行升級 |
||
確定ISSU升級完成 |
display issu state |
完成以上配置後,當本命令顯示的ISSU state字段為Init,則表示ISSU升級完成 |
當ISSU升級異常且不能再次進行升級操作時,可以強製結束ISSU升級流程。
執行install activate、issu load命令的ISSU升級流程中可以執行此操作。
表2-3 強製結束ISSU升級流程
操作 |
命令 |
說明 |
進入係統視圖 |
system-view |
- |
強製結束ISSU升級流程 |
issu quit |
- |
完成上述配置後,在任意視圖下執行display命令可以顯示配置後軟件包的運行情況,通過查看顯示信息驗證配置的效果。
本節所列display和reset命令,和升級方式無關,不管是采用issu命令升級還是采用install命令升級,均可使用。
表2-4 ISSU顯示和維護
顯示設備將采用的ISSU升級策略 |
display version comp-matrix file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * display version comp-matrix file ipe ipe-filename [ patch filename&<1-30> ] |
顯示當前ISSU升級的狀態,以及ISSU升級的相關信息(該命令隻顯示issu命令升級過程中設備所處的狀態,不能顯示install命令升級過程中設備所處的狀態) |
|
display install active [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install inactive [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install committed [ chassis chassis-number slot slot-number ] [ verbose ] |
|
display install backup [ chassis chassis-number slot slot-number ] [ verbose ] |
|
顯示與ISSU升級相關的日誌 |
|
顯示回滾點信息(issu命令升級過程中不會記錄回滾點,因此,在issu命令升級過程中執行該命令,沒有信息可顯示) |
display install rollback [ point-id ] |
顯示IPE文件信息 |
|
display install which { component name | file filename } [ chassis chassis-number slot slot-number ] |
|
顯示回滾定時器的相關信息 |
display issu rollback-timer |
清除ISSU日誌 |
|
清除回滾點 |
reset install rollback oldest point-id |
本舉例隻給出配置步驟和涉及的命令,關於命令的提示信息,請以實際情況為準。
· IRF由主設備和從設備組成。主設備的成員編號為1,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7;從設備的成員編號為2,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7。
· 將Boot、System和Feature係統軟件包從T0001015版本升級到兼容版本T0001016。
(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 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
# 以太網接口物理連接狀態抑製時間設置為0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 軟件包升級。
# 升級從設備的軟件包。
<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.
(3) 確定ISSU升級完成。
# 查看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
· IRF由主設備和從設備組成。主設備的成員編號為1,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7;從設備的成員編號為2,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7。
· 將Boot、System和Feature係統軟件包從T0001015版本升級到不兼容版本T0001017。
(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 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
# 以太網接口物理連接狀態抑製時間設置為0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 軟件包升級。
# 升級從設備的軟件包,升級完成後從設備形成新的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.........
(3) 確定ISSU升級完成。
# 查看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
本舉例隻給出配置步驟和涉及的命令,關於命令的提示信息,請以實際情況為準。
· IRF由主設備和3台從設備組成。主設備的成員編號為1,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7,業務板所在的槽位號為3;從設備的成員編號分別為2、3、4,主用主控板所在的槽位號均為6,備用主控板所在的槽位號均為7,業務板所在的槽位號均為3。
· 通過遠程操作,將IRF設備Boot、System和Feature係統軟件包從T0001015版本升級到兼容版本T0001016。最新版本的應用程序保存在TFTP server上。
· IRF的IP地址為1.1.1.1/24,TFTP server的IP地址為2.2.2.2/24。IRF與TFTP server之間路由可達。
圖1-1 ISSU升級組網圖
(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 chassis 1 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
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 3:
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
Active packages on chassis 3 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 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 3 Reboot
1 6 Reboot
1 7 Reboot
2 3 Reboot
2 6 Reboot
2 7 Reboot
3 3 Reboot
3 6 Reboot
3 7 Reboot
4 3 Reboot
4 6 Reboot
4 7 Reboot
以上顯示信息表明,新版本軟件包的升級方式是重啟升級。
# 關閉自動回滾功能。
<Sysname> system-view
[Sysname] issu rollback-timer 0
# 設置IRF橋MAC地址為永久保留。
[Sysname] irf mac-address persistent always
# 以太網接口物理連接狀態抑製時間設置為0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] interface gigabitethernet3/3/0/1
[Sysname-GigabitEthernet3/3/0/1] link-delay down 0
[Sysname-GigabitEthernet3/3/0/1] link-delay up 0
[Sysname-GigabitEthernet3/3/0/1] quit
[Sysname] interface gigabitethernet4/3/0/1
[Sysname-GigabitEthernet4/3/0/1] link-delay down 0
[Sysname-GigabitEthernet4/3/0/1] link-delay up 0
[Sysname-GigabitEthernet4/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 軟件包升級。
# 升級從設備的軟件包。
<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 upgra
de and maybe get unsaved configuration lost. Continue? [Y/N]:y
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.
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.
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 3 Reboot
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版本的升級,其他成員設備還未升級。
# 進行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 Active standby process switchover
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 升級原Master和其他Standby設備。
<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 3 Reboot
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.
<Sysname> issu commit chassis 3
Copying file flash:/boot-t0001016.bin to chassis3#slot6#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis3#slot6#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis3#slot6#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 3 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 3 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 3 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis3#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis3#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis3#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 3 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 3 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 3 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
3 3 Reboot
3 6 Reboot
3 7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait....Done.
<Sysname> issu commit chassis 4
Copying file flash:/boot-t0001016.bin to chassis4#slot6#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis4#slot6#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis4#slot6#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 4 slot 6...Done.
Verifying the file flash:/system-t0001016.bin on chassis 4 slot 6...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 4 slot 6...Done.
Copying file flash:/boot-t0001016.bin to chassis4#slot7#flash:/boot-t0001016.bin......Done.
Copying file flash:/system-t0001016.bin to chassis4#slot7#flash:/system-t0001016.bin........................Done.
Copying file flash:/feature-t0001016.bin to chassis4#slot7#flash:/feature-t0001016.bin
...Done.
Verifying the file flash:/boot-t0001016.bin on chassis 4 slot 7...Done.
Verifying the file flash:/system-t0001016.bin on chassis 4 slot 7...Done.
Verifying the file flash:/feature-t0001016.bin on chassis 4 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
4 3 Reboot
4 6 Reboot
4 7 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
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 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
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 3:
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
Active packages on chassis 3 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001016.bin
flash:/system-t0001016.bin
flash:/feature-t0001016.bin
· IRF由主設備和3台從設備組成。主設備的成員編號為1,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7,業務板所在的槽位號為3;從設備的成員編號分別為2、3、4,主用主控板所在的槽位號均為6,備用主控板所在的槽位號均為7,業務板所在的槽位號均為3。
· 通過遠程操作,將IRF設備的Boot、System和Feature係統軟件包從T0001015版本升級到不兼容版本T0001017。最新版本的應用程序保存在TFTP server上。
· IRF的IP地址為1.1.1.1/24,TFTP server的IP地址為2.2.2.2/24。IRF與TFTP server之間路由可達。
圖1-2 ISSU升級組網圖
(1) 升級準備
# 從TFTP server下載新版本Boot、System和Feature軟件包。
<Sysname> tftp 2.2.2.2 get boot-t0001017.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-t0001017.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-t0001017.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 chassis 1 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
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 3:
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
Active packages on chassis 3 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
Active packages on chassis 4 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.
Upgrade Way: Incompatible upgrade.
以上顯示信息表明,新版本軟件包的升級方式是不兼容升級。
# 關閉自動回滾功能。
<Sysname> system-view
[Sysname] issu rollback-timer 0
# 設置IRF橋MAC地址為永久保留。
[Sysname] irf mac-address persistent always
# 以太網接口物理連接狀態抑製時間設置為0秒。
[Sysname] interface gigabitethernet1/3/0/1
[Sysname-GigabitEthernet1/3/0/1] link-delay down 0
[Sysname-GigabitEthernet1/3/0/1] link-delay up 0
[Sysname-GigabitEthernet1/3/0/1] quit
[Sysname] interface gigabitethernet2/3/0/1
[Sysname-GigabitEthernet2/3/0/1] link-delay down 0
[Sysname-GigabitEthernet2/3/0/1] link-delay up 0
[Sysname-GigabitEthernet2/3/0/1] quit
[Sysname] interface gigabitethernet3/3/0/1
[Sysname-GigabitEthernet3/3/0/1] link-delay down 0
[Sysname-GigabitEthernet3/3/0/1] link-delay up 0
[Sysname-GigabitEthernet3/3/0/1] quit
[Sysname] interface gigabitethernet4/3/0/1
[Sysname-GigabitEthernet4/3/0/1] link-delay down 0
[Sysname-GigabitEthernet4/3/0/1] link-delay up 0
[Sysname-GigabitEthernet4/3/0/1] quit
[Sysname] quit
# 保存配置。
<Sysname> save
(2) 軟件包升級。
# 升級從設備的軟件包,升級完成後從設備形成新的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 upgra
de and maybe get unsaved configuration lost. Continue? [Y/N]:y
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.
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.
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 3 Reboot
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版本的升級,其他成員設備還未升級。
# 升級的Standby設備重啟完成以後,進行主備倒換並完成整個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.
Copying file flash:/boot-t0001017.bin to chassis3#slot6#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis3#slot6#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis3#slot6#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 3 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 3 slot 6............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 3 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis3#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis3#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis3#slot7#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 3 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 3 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 3 slot 7...Done.
Copying file flash:/boot-t0001017.bin to chassis4#slot6#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis4#slot6#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis4#slot6#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 4 slot 6...Done.
Verifying the file flash:/system-t0001017.bin on chassis 4 slot 6............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 4 slot 6...Done.
Copying file flash:/boot-t0001017.bin to chassis4#slot7#flash:/boot-t0001017.bin......Done.
Copying file flash:/system-t0001017.bin to chassis4#slot7#flash:/system-t0001017.bin........................Done.
Copying file flash:/feature-t0001017.bin to chassis4#slot7#flash:/feature-t0001017.bin
...Done.
Verifying the file flash:/boot-t0001017.bin on chassis 4 slot 7...Done.
Verifying the file flash:/system-t0001017.bin on chassis 4 slot 7............Done.
Verifying the file flash:/feature-t0001017.bin on chassis 4 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 3 Reboot
1 6 Reboot
1 7 Reboot
3 3 Reboot
3 6 Reboot
3 7 Reboot
4 3 Reboot
4 6 Reboot
4 7 Reboot
Upgrading software images to incompatible 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: 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 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
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 3:
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
Active packages on chassis 3 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 3 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 3 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 3:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 6:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
Active packages on chassis 4 slot 7:
flash:/boot-t0001017.bin
flash:/system-t0001017.bin
flash:/feature-t0001017.bin
本產品支持融合AC(Access Controller,無線控製器)功能,安裝對應的WLAN Feature包後,可以對AP(Access Point,無線接入點)進行管理。安裝完成後,請重新登錄,以便WLAN Feature包的命令行能夠生效。有關融合AC特性的詳細介紹,請參見《融合AC用戶手冊》。
如果用戶要升級的軟件包是以IPE文件的形式發布的,請在執行其它install命令前,先按以下步驟將IPE包解壓縮:
(1) 通過FTP或TFTP將IPE文件下載到主用主控板(獨立運行模式)/全局主用主控板(IRF模式)存儲介質的根目錄。
(2) 通過display install ipe-info命令查看該IPE文件中包含的軟件包。
(3) 解壓縮IPE文件:將IPE文件解壓縮,生成軟件包。
解壓縮IPE文件 |
執行install命令可以安裝/升級軟件包。如果當前係統沒有運行相同類型的軟件包,則該過程稱為安裝軟件包;如果當前係統有相同類型的軟件包在運行,則該過程稱為升級軟件包。
通常情況下,設備上必定存在一個Boot包和一個System包,所以Boot包和System包通常為升級;而補丁包隻能修複啟動軟件包的缺陷,不涉及功能的添加和刪除,所以補丁包隻有安裝而沒有升級的說法。
使用install命令安裝/升級軟件包分為激活和確認更改兩個步驟。
(1) 當需要安裝/升級兩個或兩個以上軟件包時,請選擇以下任意一種方法來激活軟件包:
· 方法一:使用一條命令激活完一個slot的所有軟件包後再激活另一個slot的所有軟件包,最後確認激活。
· 方法二:先激活完所有slot的某種類型的包之後,再激活所有slot的另外一種類型的包,最後確認激活。若使用該方法進行安裝/升級,則需要查看軟件版本說明書,確保升級軟件包和設備當前軟件包之間版本的兼容性,否則可能導致安裝/升級失敗。
(2) 安裝新Feature包/補丁包時,必須先激活主用主控板;升級已有Feature包時,若存在備用主控板,必須先激活備用主控板,再激活主用主控板。否則,安裝/升級過程可能出錯。(獨立運行模式)
(3) 以成員設備為單位安裝新Feature包/補丁包時,必須先激活主設備,再激活從設備;成員設備內安裝新Feature包/補丁包時,必須先激活主用主控板;以成員設備為單位進行升級已有軟件包時,先激活從設備,再激活主設備;成員設備內升級已有Feature包時,必須先激活備用主控板,再激活主用主控板。(IRF模式)
(4) 對於增量升級方式,Feature包激活僅對設備本次啟動生效,用戶隻有通過本命令確認軟件包的更改後,才能使此次激活的Feature包在係統重啟後繼續生效;對於重啟升級方式,該步驟可選,因為用戶在執行install activate命令時,係統已經修改了下次啟動軟件列表,激活操作會在係統重啟後繼續生效。
(5) 安裝/升級主用主控板的軟件時,係統會根據版本需要自動同時安裝/升級業務板的軟件,因此,業務板不需要單獨執行安裝/升級操作。
(6) 升級WLAN Feature包時,需要先卸載當前版本的WLAN Feature包,並徹底刪除mdb文件(如startup.mdb),然後重新安裝新的WLAN Feature包,待安裝完畢後,通過save命令保存配置以自動創建mdb文件。
當設備需要升級時,升級步驟請參見表3-2。
激活軟件包前,係統會對軟件包進行數字簽名校驗,如果軟件包通過校驗則激活軟件包;如果軟件包未通過校驗則不激活軟件包,並返回錯誤提示信息。
表3-2 安裝/升級Feature包
(可選)顯示Feature包的升級策略(獨立運行模式) |
install activate feature filename&<1-30> slot slot-number test |
|
(可選)顯示Feature包的升級策略(IRF模式) |
install activate feature filename&<1-30> chassis chassis-number slot slot-number test |
|
激活Feature包(獨立運行模式) |
||
激活Feature包(IRF模式) |
install activate feature filename&<1-30> chassis chassis-number slot slot-number |
|
本命令一次隻能激活一個補丁包,但是可以通過多次執行此命令為設備激活多個補丁包 指定all參數表示同時激活所有硬件上的補丁包,此時無需執行install commit命令,所有補丁包在設備重啟後繼續生效 |
||
激活補丁包(IRF模式) |
install activate patch filename { all | chassis chassis-number slot slot-number } |
|
激活補丁包以後,補丁包僅對設備本次啟動生效,設備重啟後這些補丁包不再有效。用戶隻有確認補丁包更改後,才能使此次激活的補丁包在係統重啟後繼續生效 |
如果產品針對同一System包發布了多個補丁包,直接安裝最新版本的補丁包即可,且不需要先卸載舊的補丁包。
因為Boot包和System包是設備運行的基礎軟件,所以Boot包和System包不支持卸載,隻能卸載Feature包和補丁包。當Feature包/補丁包被卸載後,該軟件包將處於未激活狀態,係統也將不再具備該軟件包提供的功能。但是軟件包仍然存在於存儲介質上,可以通過install remove命令將卸載後的軟件包從存儲介質上徹底刪除。
Feature包/補丁包卸載也隻在設備本次運行過程中生效。如果用戶希望係統重啟後,Feature包/補丁包卸載依然生效,請用戶使用install commit命令確認軟件包的更改。
卸載Feature包(獨立運行模式) |
||
卸載Feature包(IRF模式) |
install deactivate feature filename&<1-30> chassis chassis-number slot slot-number |
|
install deactivate patch filename { all | slot slot-number } |
本命令一次隻能卸載一個補丁包,若要卸載多個補丁包,則需要多次執行此命令 指定all參數表示同時卸載所有硬件上的補丁包,此時無需執行install commit命令,所有補丁包在設備重啟後不再生效 |
|
卸載補丁包(IRF模式) |
install deactivate patch filename { all | chassis chassis-number slot slot-number } |
|
通過回滾功能,用戶可將係統回滾到某個曆史狀態。
係統對增量升級的激活或卸載操作會創建回滾點,記錄每次的軟件變化。係統最多支持50個回滾點,當回滾點超過最大值時,舊的回滾點會被刪除,新的回滾點會被保存。
係統會保存回滾點直到用戶進行了如下操作:
· ISSU Reboot或者Reboot升級。
· 執行install commit命令。
進行了ISSU Reboot或者Reboot升級之後,用戶隻能將當前運行軟件回滾到ISSU Reboot或者Reboot之前的狀態。
進行了Commit操作之後,用戶將無法進行回滾。
對於增量升級,用戶必須執行install commit命令確認軟件包的更改後,回滾操作才能在重啟後生效。
表3-6 軟件包回滾
操作 |
命令 |
說明 |
(可選)查看設備的回滾點 |
display install rollback |
請在用戶視圖下執行以下操作。可以通過這個命令查看回滾點信息,以便進行相應的回滾操作。 |
軟件包回滾 |
install rollback to { point-id | original } |
補丁包不支持回滾操作。 |
增量升級方式下,當係統正在執行軟件包的激活或卸載操作時,用戶可以通過install abort命令或者按Ctrl+C取消正在執行中的操作,從而使係統回退到操作前的狀態。
該功能可用於檢查激活的Boot包/System包/Feature包的完整性、各主控板上激活的軟件包列表和確認的軟件包列表之間的差異(以方便用戶知道是否有未確認的軟件包)、以及不同的主控板之間激活的軟件包列表的差異(以方便用戶知道不同主控板上的軟件包版本是否一致)。當發現有不一致的軟件包時,用戶可使用install activate命令或install deactivate命令更新激活的軟件包列表,使用install commit命令更新確認的軟件包列表。
表3-8 校驗Boot包/System包/Feature包
Boot包/System包/Feature包校驗 |
需要注意的是,執行刪除操作後,軟件包會從設備上徹底刪除,用戶將不能執行與該軟件包相關的install abort命令。請確認不需要使用該軟件包之後,再執行刪除操作。
刪除軟件包(IRF模式) |
install remove [ chassis chassis-number slot slot-number ] { filename | inactive } |
IRF模式下的ISSU顯示和維護,請參見“2.3 通過issu命令升級顯示和維護”。
表3-10 ISSU顯示和維護(獨立運行模式)
操作 |
命令 |
顯示設備將采用的ISSU升級策略 |
display version comp-matrix file { boot filename | system filename | feature filename&<1-30> | patch filename&<1-30> } * display version comp-matrix file ipe ipe-filename [ patch filename&<1-30> ] |
顯示當前係統中已激活的軟件包的相關信息 |
display install active [ slot slot-number ] [ verbose ] |
顯示存儲介質根目錄下、沒有被激活的所有軟件包的相關信息 |
display install inactive [ slot slot-number ] [ verbose ] |
顯示設備下次啟動時使用的主用軟件包的相關信息 |
display install committed [ slot slot-number ] [ verbose ] |
顯示設備下次啟動時使用的備用軟件包的相關信息 |
display install backup [ slot slot-number ] [ verbose ] |
顯示係統中正在執行的激活、卸載操作 |
display install job |
顯示與ISSU升級相關的日誌 |
display install log [ log-id ] [ verbose ] |
顯示軟件包信息 |
display install package { filename | all } [ verbose ] |
顯示IPE文件信息 |
display install ipe-info ipe-filename |
顯示一個組件或文件所屬的軟件包 |
display install which { component name | file filename } [ slot slot-number ] |
顯示回滾點信息(issu命令升級過程中不會記錄回滾點,因此,在issu命令升級過程中執行該命令,沒有信息可顯示) |
display install rollback [ point-id ] |
清除ISSU日誌 |
reset install log-history oldest log-number |
清除回滾點 |
reset install rollback oldest point-id |
· Device上配備了兩塊主控板:主用主控板所在的槽位號為6,備用主控板所在的槽位號為7。
· 將feature1特性從R0201版本升級到兼容版本R0202。
圖3-1 feature1軟件包升級組網圖
# 從TFTP server下載包含新版本feature1軟件包的IPE文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.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
Writing file...Done.
# 解壓縮IPE文件。
<Sysname> install add flash:/feature1-r0202.ipe flash:/
Verifying the file flash:/feature1-r0202.ipe on slot 6...Done.
Decompressing file feature1-r0202.bin to flash:/feature1-r0202.bin.......................Done.
# 查看升級前激活的軟件包。
<Sysname> display install active
Active packages on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
# 顯示feature1軟件包的升級效果。
<Sysname> install activate feature flash:/feature1-r0202.bin slot 7 test
Copying file flash:/feature1-r0202.bin to slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
7 Reboot
Influenced service according to following table on slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin slot 6 test
Verifying the file flash:/feature1-r0202.bin on slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
6 Reboot
7 Reboot
Influenced service according to following table on slot 6:
flash:/feature1-r0202.bin
feature1 CFA
以上顯示信息表明,feature1-r0202.bin的升級方式是增量升級,升級過程中相關模塊可能會重啟。
# 激活新版本的feature1軟件包,從而對feature1特性進行升級。
<Sysname> install activate feature flash:/feature1-r0202.bin slot 7
flash:/feature1-r0202.bin already exists on slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin slot 6
Verifying the file flash:/feature1-r0202.bin on slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Slot Upgrade Way
6 Reboot
7 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
# 查看升級後激活的軟件包。
<Sysname> display install active
Active packages on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
# 確認軟件包更改。
<Sysname> install commit
This operation will take several minutes, please wait...........................Done.
The current software images have been saved as the startup software images.
Current software images on slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
· IRF由主設備和從設備組成。主設備的成員編號為1,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7;從設備的成員編號為2,主用主控板所在的槽位號為6,備用主控板所在的槽位號為7。
· 將feature1軟件包從R0201版本升級到兼容版本R0202。
# 從TFTP Server下載包含新版本feature1軟件包的IPE文件。
<Sysname> tftp 2.2.2.2 get feature1-r0202.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> install add flash:/feature1-r0202.ipe flash:
Verifying the file flash:/feature1-r0202.ipe on chassis 1 slot 6...Done.
Decompressing file feature1-r0202.bin to flash:/feature1-r0202.bin.......................Done.
# 查看升級前激活的軟件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
Active packages on chassis 2 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0201.bin
# 顯示feature1軟件包的升級效果。
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 7 test
Copying file flash:/feature1-r0202.bin to chassis2#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
2 7 Reboot
Influenced service according to following table on chassis 2 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 2 slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 6 test
Copying file flash:/feature1-r0202.bin to chassis2#slot6#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
Influenced service according to following table on chassis 2 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 7 test
Copying file flash:/feature1-r0202.bin to chassis1#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
1 7 Reboot
Influenced service according to following table on chassis 1 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
Influenced service according to following table on chassis 1 slot 7:
flash:/feature1-r0202.bin
feature1 CFA
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 6 test
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
Influenced service according to following table on chassis 1 slot 6:
flash:/feature1-r0202.bin
feature1 CFA
以上顯示信息表明,feature1-r0202.bin的升級方式是增量升級,升級過程中相關模塊可能會重啟。
# 激活新版本的feature1軟件包,從而對feature1特性進行升級。
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 2 slot 7
flash:/feature1-r0202.bin already exists on chassis 2 slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis2#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
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> install activate feature flash:/feature1-r0202.bin chassis 2 slot 6
flash:/feature1-r0202.bin already exists on chassis 2 slot 6.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis2#slot6#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 2 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
2 6 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 7
flash:/feature1-r0202.bin already exists on chassis 1 slot 7.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to chassis1#slot7#flash:/feature1-r0202.bin......Done.
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 7...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
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.
<Sysname> install activate feature flash:/feature1-r0202.bin chassis 1 slot 6
Verifying the file flash:/feature1-r0202.bin on chassis 1 slot 6...Done.
Upgrade summary according to following table:
flash:/feature1-r0202.bin
Running Version New Version
Alpha 0201 Alpha 0202
Chassis Slot Upgrade Way
1 6 Reboot
Upgrading software images to compatible versions. Continue? [Y/N]: y
This operation might take several minutes, please wait......................Done.
# 查看已激活的軟件包。
<Sysname> display install active
Active packages on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Active packages on chassis 2 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
# 確認軟件包更改。
This operation will take several minutes, please wait...........................Done.
The current software images have been saved as the startup software images.
Current software images on chassis 1 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 1 slot 7:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 2 slot 6:
flash:/boot-r0201.bin
flash:/system-r0201.bin
flash:/feature1-r0202.bin
Current software images on chassis 2 slot 7:
flash:/feature1-r0202.bin
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!