Upgrade
一、升级概述
1、升级背景
升级背景:Catalyst 9K击中BUG,需要升级解决。
升级环境:两台C9K做了VSS。
2、升级路径分析
Upgrade Roadmap
3、升级标准流程
信息备份:配置保存备份、license备份、原镜像备份。
状态收集:show version、show boot system、show inventory、show ip int brief、show platform、show environment power-supply、show environment fans、dir bootflash:(计算新旧镜像并存时是否超过flash的存储大小)。
信息确认:确认升级是否有中间版本、确认设备型号、确认镜像、确认当前设备状态、确认其镜像加载模式。
镜像下载:根据version信息,前往思科官网下载新镜像。
提交变更申请。
准备变更方案。
核对变更方案。
变更时严格执行变更方案中的步骤,不允许个人进行任何形式的发挥。
二、升级过程
1、升级前准备
下载新镜像。
镜像校验。
旧镜像:cat9k_xxx_iosxe.12.34.56.SPA.bin。
新镜像:cat9k_xxx_iosxe.15.34.56.SPA.bin。
2、升级过程
本案例以install mode来加载IOS-XE镜像。
1)升级过程
#dir usbflash1:
10 -rwx 526556147 Sep 12 2022 19:24:54 +08:00 cat9k_xxx_iosxe.15.34.56.SPA.bin
#copy usbflash1:cat9k_xxx_iosxe.15.34.56.SPA.bin flash-1:cat9k_xxx_iosxe.15.34.56.SPA.bin
Destination filename [cat9k_xxx_iosxe.15.34.56.SPA.bin]?
Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
copied in 39.540 secs
#dir flash-1:
Directory of flash:/
10 -rwx 526556147 Sep 12 2022 19:24:54 +08:00 cat9k_xxx_iosxe.15.34.56.SPA.bin
#verify /md5 flash-1:cat9k_xxx_iosxe.15.34.56.SPA.bin
........................................................................
verify /md5 (flash:cat9k_xxx_iosxe.15.34.56.SPA.bin) = 5472exxxxxxxxxxxxxxxxxx
#show boot system
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable does not exist
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
---------------------------
Switch 2
---------------------------
Current Boot Variables:
BOOT variable does not exist
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
---------------------------
#install add file flash:cat9k_xxx_iosxe.15.34.56.SPA.bin activate commit
等待升级完成,敲完该命令后,系统将会自动将flash-1中的新镜像拷贝至另外一台设备中,无需手动拷贝。实际升级时会经历以下几个阶段:
install_add_activate_commit:
...
--- Starting initial file syncing ---
...
--- Starting Add ---
...
install_add_activate_commit: Activating PACKAGE
...
gzip: initramfs.cpio.gz: decompression OK, trailing garbage ignored
...
--- Starting Activate ---
...
Finished Activate
...
--- Starting Commit ---
...
Finished Commit
...
Install will reload the system now!
2)检查核对
升级完成后,需要做检查和验证工作。验证系统启机文件、堆叠是否up、当前版本信息、install模式等,除此之外,需要进行业务验证、设备状态验证、设备配置比对等工作。
#show boot system
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable does not exist
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
---------------------------
Switch 2
---------------------------
Current Boot Variables:
BOOT variable does not exist
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
---------------------------
#show switch
Switch/Stack Mac Address : aaaa.bbbb.cccc - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
-------------------------------------------------------------------------------------
*1 Active aaaa.bbbb.cccc 15 V01 Ready
2 Member aaaa.bbbb.cccd 10 V01 Ready
#show version
Cisco IOS XE Software, Version 15.34.56
Cisco IOS Software, Catalyst L3 Switch Software (CAT9K_XXX_IOSXE), Version 15.34.56, RELEASE SOFTWARE
Technical Support: http://www.cisco.com/techsupport
...
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 52 C9000 15.34.56 CAT9K_XXX_IOSXE INSTALL
2 52 C9000 15.34.56 CAT9K_XXX_IOSXE INSTALL
#show install summary
[ Switch 1 2] Installed Package(s) Information:
State (St): I - Inactive, U - Activated & Uncommitted,
C - Activated & Committed, D - Deactivated & Uncommitted
--------------------------------------------------------------------------------
Type St Filename/Version
--------------------------------------------------------------------------------
IMG C 15.34.56
--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------
评论