提问: 将第2台3850 加入已有的3850 stack堆叠组, 如果第2台3850 IOS和第1台不同, 是否能自动完成第2台3850的IOS升级?回答: 可以, 使用auto-upgrade功能, 此功能在install mode中支持, 使用software auto-upgrade enable命令.
特性名称:
Auto-Upgrade for Operating System (OS) Mismatch
3850 release notes:
3850配置手册:https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-3/configuration_guide/b_163_consolidated_3850_cg/b_162_consolidated_3850_cg_chapter_01101000.html#con_1189959
方法: 1/ 准备工作:第1台3850 运行16.3.6 install mode. 并且配置了software auto-upgrade enable命令.
Switch#sh run | in upgrade
software auto-upgrade enable
第2台3850 运行16.3.3 install mode.
2/ 将第2台3850关机, 接上堆叠线.
3/将第2台3850 开机.
4/SW1 console显示, 正在对SW2进行升级.
*Aug 6 08:16:17.033: %BOOT-3-BOOTTIME_INCOMPATIBLE_SW_DETECTED:Switch 1 R0/0: issu_stack.sh: Incompatible software detected. Details: Chassis 2 is detected INCOMPATIBLE with software version of Active: FAILED: Version '16.03.03' mismatch with Active's running version '16.03.06' for package: 'guestshell'
*Aug 6 08:16:17.767: %AUTO_UPGRADE-5-AUTO_UPGRADE_START_CHECK:Switch 1 R0/0: auto_upgrade_client.sh: Auto upgrade start checking for incompatible switches.
*Aug 6 08:16:18.898: %AUTO_UPGRADE-5-AUTO_UPGRADE_INITIATED:Switch 1 R0/0: auto_upgrade_client.sh: Auto upgrade initiated for switch 2.
*Aug 6 08:16:19.488: %AUTO_UPGRADE-5-AUTO_UPGRADE_SEARCH:Switch 1 R0/0: auto_upgrade_client.sh: Searching stack for software to upgrade switch 2.
*Aug 6 08:16:20.025: %AUTO_UPGRADE-5-AUTO_UPGRADE_FOUND:Switch 1 R0/0: auto_upgrade_client.sh: Found donor switch 1 to auto upgrade switch 2.
*Aug 6 08:16:20.563: %AUTO_UPGRADE-5-AUTO_UPGRADE_START:Switch 1 R0/0: auto_upgrade_client.sh: Upgrading switch 2 with software from switch 1.
SW2 console显示:Waiting for 120 seconds for other switches to boot
####
Switch number is 2
All switches in the stack have been discovered. Accelerating discovery
Chassis is declared incompatible.
FAILED: Version '16.03.03' mismatch with Active's running version '16.03.06' for package: 'guestshell'
5/等待一会
6/SW1 console 看到SW2升级完成,正在重启SW2
*Aug 6 08:19:29.514: %AUTO_UPGRADE-5-AUTO_UPGRADE_FINISH:Switch 1 R0/0: auto_upgrade_client.sh: Finished installing software on switch 2.
*Aug 6 08:19:30.057: %AUTO_UPGRADE-5-AUTO_UPGRADE_RELOAD:Switch 1 R0/0: auto_upgrade_client.sh: Reloading switch 2 to complete the auto upgrade.
*Aug 6 08:19:30.118: %STACKMGR-1-STACK_LINK_CHANGE:Switch 1 R0/0: stack_mgr: Stack port 2 on switch 1 is down
Switch#
*Aug 6 08:19:30.146: %HMANRP-5-CHASSIS_DOWN_EVENT: Chassis 2 gone DOWN!
Switch#
*Aug 6 08:28:22.863: %STACKMGR-1-STACK_LINK_CHANGE:Switch 1 R0/0: stack_mgr: Stack port 2 on switch 1 is up
Switch#
*Aug 6 08:28:22.899: %STACKMGR-6-SWITCH_ADDED:Switch 1 R0/0: stack_mgr: Switch 2 has been added to the stack.
Switch#
*Aug 6 08:28:26.341: %STACKMGR-6-SWITCH_ADDED:Switch 1 R0/0: stack_mgr: Switch 2 has been added to the stack.
Switch#
SW2 console看到正在重启中
Chassis 2 reloading, reason - System requested reload
Aug 6 08:19:33.878 R0/0: %PMAN-5-EXITACTION: Process manager is exiting: reload fp action requested
Aug 6 08:19:48.199 R0/0: %PMAN-5-EXITACTION: Process manager is exiting: rp processes exit with reload switch code
7/几分钟后, SW2成功加入堆叠组, 并且完成SSO同步.*Aug 6 08:32:36.773: %HA_CONFIG_SYNC-6-BULK_CFGSYNC_SUCCEED: Bulk Sync succeeded
*Aug 6 08:32:37.802: %RF-5-RF_TERMINAL_STATE: Terminal state reached for (SSO)
Switch#sh switch
Switch/Stack Mac Address : 5ca4.8abd.7f00 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
*1 Active 5ca4.8abd.7f00 10 V02 Ready
2 Standby f078.1635.ba80 2 V06 Ready
备注:从SW1为16.3.3 , SW2为16.3.6, 同样方法,也可以把SW2降到16.3.3
========================
========================