本文档介绍如何顺利完成思科 Catalyst 3850 系列交换机的升级过程,并说明从软件错误或引导失败状态实现灾难恢复的方法。升级过程并不复杂,但是如果您不具有升级思科 IOS® XE 软件的相关经验,也可能会遇到困难。
先决条件要求Cisco 建议您了解以下主题:
本文档中的信息主要面向运行思科 IOS-XE 版本 03.03.00 及更高版本的思科 Catalyst 3850 系列交换机。文档中提供的示例基于堆叠解决方案,但是您可以对独立交换机使用相同的命令。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
安装模式与捆绑包模式在配置思科 Catalyst 3850 系列交换机时,您可以从两种操作模式中选择:安装模式和捆绑包模式。这两种模式之间有一些细微的差别。有关详情,请参阅配置指南。
思科建议在操作时使用安装模式,因为此模式可以提供更完善的功能,引导时所需的资源也更少。
安装模式这是交换机的默认模式。安装模式使用名为 packages.conf 的软件包调配文件来引导交换机。此外,闪存中还有许多.pkg文件。思科建议您不要更改这些文件,除非是在思科技术支持中心 (TAC) 工程师的指导下进行。
捆绑包模式如果您倾向于使用传统的单内核 IOS 映像来引导交换机,捆绑包模式可以为您提供类似的体验。捆绑包模式消耗的内存比安装模式要多,因为升级时会从捆绑包中解压软件包,并复制到 RAM 中。
模式验证要执行模式验证,请输入 show version 命令:
3850-stack#
show version
Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software
(CAT3K_CAA-UNIVERSALK9-M), Version 03.03.00SE RELEASE SOFTWARE (fc1)
Switch Ports Model SW Version SW Image
Mode
------------------ ---------- ---------- ----
1 32 WS-C3850-24P 03.03.00SE cat3k_caa-universalk9
INSTALL
* 2 56 WS-C3850-48T 03.03.00SE cat3k_caa-universalk9
INSTALL
[an error occurred while processing this directive]
升级要启动升级流程,您必须从思科网站下载 IOS-XE .bin 文件,并将其放入活动交换机的闪存中。本文档不提供将该文件复制到交换机的操作步骤。
在将 .bin 文件复制到单个交换机时,安装进程会自动将该文件复制到同一堆叠中的其他交换机。复制好文件后,输入如下命令:
3850-stack#
software install file flash:cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
switch 1-2
[an error occurred while processing this directive]
注意:每个命令后面都有多个选项,此示例仅显示执行基本升级的情况。
启动升级流程后,交换机会将 .bin 文件推送到对等的堆叠成员。
Preparing install operation ...
[2]: Copying software from active switch 1 to switch 2
[an error occurred while processing this directive]
当所有成员均收到 .bin 文件后,该文件会自动解压到闪存。
[1 2]: Starting install operation
[1 2]: Expanding bundle flash:
cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
[1 2]: Copying package files
[1 2]: Package files copied
[1 2]: Finished expanding bundle flash:
cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
[1 2]: Verifying and copying expanded package files to flash:
[1 2]: Verified and copied expanded package files to flash:
[1 2]: Starting compatibility checks
[1 2]: Finished compatibility checks
[1 2]: Starting application pre-installation processing
[1 2]: Finished application pre-installation processing
[an error occurred while processing this directive]
接下来,交换机会列出一份文件列表,其中包括已标记为需要移除并添加到 packages.conf 指针文件中的文件。
[1]: Old files list:
Removed cat3k_caa-base.SPA.03.03.00SE.pkg
Removed cat3k_caa-drivers.SPA.03.03.00SE.pkg
Removed cat3k_caa-infra.SPA.03.03.00SE.pkg
Removed cat3k_caa-iosd-universalk9.SPA.150-1.EZ.pkg
Removed cat3k_caa-platform.SPA.03.03.00SE.pkg
Removed cat3k_caa-wcm.SPA.10.1.100.0.pkg
[2]: Old files list:
Removed cat3k_caa-base.SPA.03.03.00SE.pkg
Removed cat3k_caa-drivers.SPA.03.03.00SE.pkg
Removed cat3k_caa-infra.SPA.03.03.00SE.pkg
Removed cat3k_caa-iosd-universalk9.SPA.150-1.EZ.pkg
Removed cat3k_caa-platform.SPA.03.03.00SE.pkg
Removed cat3k_caa-wcm.SPA.10.1.100.0.pkg
[1]: New files list:
Added cat3k_caa-base.SPA.03.03.01SE.pkg
Added cat3k_caa-drivers.SPA.03.03.01SE.pkg
Added cat3k_caa-infra.SPA.03.03.01SE.pkg
Added cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
Added cat3k_caa-platform.SPA.03.03.01SE.pkg
Added cat3k_caa-wcm.SPA.10.1.110.0.pkg
[2]: New files list:
Added cat3k_caa-base.SPA.03.03.01SE.pkg
Added cat3k_caa-drivers.SPA.03.03.01SE.pkg
Added cat3k_caa-infra.SPA.03.03.01SE.pkg
Added cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
Added cat3k_caa-platform.SPA.03.03.01SE.pkg
Added cat3k_caa-wcm.SPA.10.1.110.0.pkg
[an error occurred while processing this directive]
最后,交换机将更新并提交 packges.conf 文件。
[1 2]: Creating pending provisioning file
[1 2]: Finished installing software. New software will load on reboot.
[1 2]: Committing provisioning file
[1 2]: Do you want to proceed with reload? [yes/no]: yes
[an error occurred while processing this directive]
重新加载交换机,确认升级流程是否正确完成。
3850-stack#
show ver | i INSTALL
1 32 WS-C3850-24P 03.03.01SE cat3k_caa-universalk9 INSTALL
* 2 56 WS-C3850-48T 03.03.01SE cat3k_caa-universalk9 INSTALL
[an error occurred while processing this directive]
清除闪存升级完成后,旧版本的残留文件会保留在闪存中。如果您想清除残留文件,可以输入 software clean 命令,而无需手动删除这些文件。此命令将彻底清除交换机已无需在各个堆叠成员的闪存中执行的文件。
注意:此命令也将删除用于安装新 IOS 软件的 .bin 文件。请注意,.bin 文件在解压后便已完成作用,您可以放心删除。
下面两节提供了执行 software clean 命令前后闪存显示内容的示例。
清除闪存前的状态3850-stack#
show flash
-#- --length-- ---------date/time----------- -----------------------path-----------------------
2 2097152 Feb 16 2014 11:38:46.0 00:00 nvram_config
4 257016048 Jan 28 2014 17:22:12.0 00:00 cat3k_caa-universalk9.SPA.03.03.00.SE.150-1.EZ.bin
5 4096 Jan 28 2014 17:25:50.0 00:00 mnt
6 4096 Jan 28 2014 17:25:50.0 00:00 mnt/images
7 4096 Jan 28 2014 17:25:52.0 00:00 mnt/images/ap.bak
8 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap1g2.md5
9 11591680 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap1g2
10 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g1.md5
11 10444800 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g1
12 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g2.md5
13 13568000 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g2
14 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/c1140.md5
15 10291200 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/c1140
16 11 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/version.info
17 1214 Jan 28 2014 17:25:10.0 00:00 packages.conf.00-
18 79112096 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-base.SPA.03.03.00SE.pkg
19 6474428 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-drivers.SPA.03.03.00SE.pkg
20 34501468 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-infra.SPA.03.03.00SE.pkg
21 1248 Feb 16 2014 11:27:51.0 00:00 packages.conf
22 34763952 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EZ.pkg
23 796 Feb 19 2014 11:43:13.0 00:00 vlan.dat
24 24992476 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-platform.SPA.03.03.00SE.pkg
25 77167308 Jan 28 2014 17:25:06.0 00:00 cat3k_caa-wcm.SPA.10.1.100.0.pkg
26 1224 Jan 28 2014 16:39:58.0 00:00 packages.conf.01-
27 6571 Dec 20 2013 08:56:32.0 00:00 BLANK_CONFIG.cfg
28 257193048 Feb 16 2014 11:19:44.0 00:00 cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
30 79113792 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-base.SPA.03.03.01SE.pkg
31 74409080 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-base.SPA.03.02.01.SE.pkg
32 2775728 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-drivers.SPA.03.02.01.SE.pkg
33 6476476 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-drivers.SPA.03.03.01SE.pkg
34 32478052 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-infra.SPA.03.02.01.SE.pkg
35 30389028 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EX1.pkg
36 18313952 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-platform.SPA.03.02.01.SE.pkg
37 63402700 Jan 28 2014 16:39:54.0 00:00 cat3k_caa-wcm.SPA.10.0.101.0.pkg
38 34503664 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-infra.SPA.03.03.01SE.pkg
39 34788684 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
40 25009040 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-platform.SPA.03.03.01SE.pkg
41 77296448 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-wcm.SPA.10.1.110.0.pkg
237428736 bytes available (1302147072 bytes used)
[an error occurred while processing this directive]
清除闪存后的状态3850-stack#
software clean
Preparing clean operation ...
[1 2]: Cleaning up unnecessary package files
[1 2]: No path specified, will use booted path flash:packages.conf
[1 2]: Cleaning flash:
[1]: Preparing packages list to delete ...
In use files, will not delete:
cat3k_caa-base.SPA.03.03.01SE.pkg
cat3k_caa-drivers.SPA.03.03.01SE.pkg
cat3k_caa-infra.SPA.03.03.01SE.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
cat3k_caa-platform.SPA.03.03.01SE.pkg
cat3k_caa-wcm.SPA.10.1.110.0.pkg
packages.conf
[2]: Preparing packages list to delete ...
In use files, will not delete:
cat3k_caa-base.SPA.03.03.01SE.pkg
cat3k_caa-drivers.SPA.03.03.01SE.pkg
cat3k_caa-infra.SPA.03.03.01SE.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
cat3k_caa-platform.SPA.03.03.01SE.pkg
cat3k_caa-wcm.SPA.10.1.110.0.pkg
packages.conf
[1]: Files that will be deleted:
cat3k_caa-base.SPA.03.02.01.SE.pkg
cat3k_caa-base.SPA.03.03.00SE.pkg
cat3k_caa-drivers.SPA.03.02.01.SE.pkg
cat3k_caa-drivers.SPA.03.03.00SE.pkg
cat3k_caa-infra.SPA.03.02.01.SE.pkg
cat3k_caa-infra.SPA.03.03.00SE.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EX1.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EZ.pkg
cat3k_caa-platform.SPA.03.02.01.SE.pkg
cat3k_caa-platform.SPA.03.03.00SE.pkg
cat3k_caa-universalk9.SPA.03.03.00.SE.150-1.EZ.bin
cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
cat3k_caa-wcm.SPA.10.0.101.0.pkg
cat3k_caa-wcm.SPA.10.1.100.0.pkg
packages.conf.00-
packages.conf.01-
[2]: Files that will be deleted:
cat3k_caa-base.SPA.03.02.01.SE.pkg
cat3k_caa-base.SPA.03.03.00SE.pkg
cat3k_caa-drivers.SPA.03.02.01.SE.pkg
cat3k_caa-drivers.SPA.03.03.00SE.pkg
cat3k_caa-infra.SPA.03.02.01.SE.pkg
cat3k_caa-infra.SPA.03.03.00SE.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EX1.pkg
cat3k_caa-iosd-universalk9.SPA.150-1.EZ.pkg
cat3k_caa-platform.SPA.03.02.01.SE.pkg
cat3k_caa-platform.SPA.03.03.00SE.pkg
cat3k_caa-universalk9.SPA.03.03.00.SE.150-1.EZ.bin
cat3k_caa-universalk9.SPA.03.03.01.SE.150-1.EZ1.bin
cat3k_caa-wcm.SPA.10.0.101.0.pkg
cat3k_caa-wcm.SPA.10.1.100.0.pkg
packages.conf.00-
packages.conf.01-
[1 2]: Do you want to proceed with the deletion? [yes/no]:
yes
[1 2]: Clean up completed
[an error occurred while processing this directive]
下面显示的是执行闪存清除后,show flash 命令的输出内容:
3850-stack#
show flash
-#- --length-- ---------date/time----------- -------------------path--------------------
2 2097152 Feb 16 2014 11:38:46.0 00:00 nvram_config
4 4096 Jan 28 2014 17:25:50.0 00:00 mnt
5 4096 Jan 28 2014 17:25:50.0 00:00 mnt/images
6 4096 Jan 28 2014 17:25:52.0 00:00 mnt/images/ap.bak
7 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap1g2.md5
8 11591680 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap1g2
9 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g1.md5
10 10444800 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g1
11 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g2.md5
12 13568000 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/ap3g2
13 40 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/c1140.md5
14 10291200 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/c1140
15 11 Oct 03 2013 05:02:21.0 00:00 mnt/images/ap.bak/version.info
16 1248 Feb 16 2014 11:27:51.0 00:00 packages.conf
17 796 Feb 19 2014 11:43:13.0 00:00 vlan.dat
18 6571 Dec 20 2013 08:56:32.0 00:00 BLANK_CONFIG.cfg
20 79113792 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-base.SPA.03.03.01SE.pkg
21 6476476 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-drivers.SPA.03.03.01SE.pkg
22 34503664 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-infra.SPA.03.03.01SE.pkg
23 34788684 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EZ1.pkg
24 25009040 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-platform.SPA.03.03.01SE.pkg
25 77296448 Feb 16 2014 11:27:46.0 00:00 cat3k_caa-wcm.SPA.10.1.110.0.pkg
1231515648 bytes available (308060160 bytes used)
[an error occurred while processing this directive]
Catalyst 3850 系列交换机的自动升级功能有时,您可能需要在现有的 Catalyst 3850 系列交换机堆叠中引入新的交换机,例如您购买了一部新交换机来扩展堆叠的可用端口数量。要成功将新交换机添加到堆叠,您必须确保新交换机与现有堆叠运行的软件版本完全相同。对于 IOS-XE 版本 3.3.1 以前的版本,确保版本匹配的唯一方法是在将新交换机引入堆叠之前完成新交换机的配置。
Catalyst 3850 系列交换机有一项名为自动升级的功能,如果您是从 Catalyst 3750 系列平台迁移到 3850 系列,可能不会对此感到陌生。此功能旨在通过自动调配来确保新添加的交换机能够获得与其他堆叠成员一致的 IOS-XE 版本。但有一点需要注意的是,此功能不适用于版本 3.3.1 以前的版本(请参考思科错误 ID CSCui69999)。 因此,您必须确保现有堆叠是在安装模式下运行版本 3.3.1 及更高版本
要使用自动升级功能,请将 software auto-upgrade enable 命令添加到现有堆叠的配置中。这样一来,任何新添加的堆叠成员都将能实现自动升级。
配置当新交换机加入堆叠并启动后,您会看到一条明确的指示,说明堆叠中存在版本不一致问题,新成员未完全加入堆叠。如果您在新交换机尝试加入堆叠时查看系统日志,可以看到自动建议功能发出的提示消息,显示新添加的交换机运行了不同的软件版本以及更多详细信息。
注意:在此处提供的示例中,新交换机是在捆绑包模式下运行 IOS-XE 版本 3.2.2。
%STACKMGR-1-STACK_LINK_CHANGE: STANDBY: 1 stack-mgr:
Stack port 2 on switch 1 is up (3850-Stack-1)
%STACKMGR-1-STACK_LINK_CHANGE: 2 stack-mgr:
Stack port 1 on switch 2 is up
%STACKMGR-6-SWITCH_ADDED: 2 stack-mgr:
Switch 3 has been added to the stack.
%STACKMGR-6-SWITCH_ADDED: STANDBY:1 stack-mgr:
Switch 3 has been added to the stack. (3850-Stack-1)
%INSTALLER-6-AUTO_ADVISE_SW_INITIATED: 2 installer:
Auto advise initiated for switch 3
%INSTALLER-6-AUTO_ADVISE_SW: 2 installer:
Switch 3 running bundled software has been added
%INSTALLER-6-AUTO_ADVISE_SW: 2 installer:
to the stack that is running installed software.
%INSTALLER-6-AUTO_ADVISE_SW: 2 installer:
The 'software auto-upgrade' command can be used to
%INSTALLER-6-AUTO_ADVISE_SW: 2 installer:
convert switch 3 to the installed running mode by
%INSTALLER-6-AUTO_ADVISE_SW: 2 installer:
installing its running software.
[an error occurred while processing this directive]
当新加入的成员充分完成引导后,您会看到系统检测到如下不一致:
3850-Stack#
show switch
Switch/Stack Mac Address : 0c27.24cf.ab80 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
*1 Active 0c27.24cf.ab80 14 B0 Ready
2 Standby f41f.c238.a800 13 B0 Ready
3 Member b4e9.b0d3.6600 12 0 V-Mismatch
[an error occurred while processing this directive]
启用自动升级功能在全局配置模式下,输入 software auto-upgrade enable 命令。这样一来,所有新加入该堆叠的交换机都将启用自动升级功能。
3850-Stack(config)
#
software auto-upgrade enable
3850-Stack(config)
#
end
[an error occurred while processing this directive]
您只需重新加载新添加的交换机,而无需重新加载整个堆叠。在上面的示例中,新添加的交换机是 switch 3,所以您需要输入 reload slot 3 命令。
3850-Stack#
reload slot 3
Proceed with reload?
[confirm]
%STACKMGR-1-RELOAD_REQUEST: 1 stack-mgr:
Received reload request for switch 3, reason Reload Slot Command
%STACKMGR-1-STACK_LINK_CHANGE: 1 stack-mgr:
Stack port 2 on switch 1 is down
%STACKMGR-6-SWITCH_REMOVED: 1 stack-mgr:
Switch 3 has been removed from the stack.
%STACKMGR-1-STACK_LINK_CHANGE: STANDBY:
2 stack-mgr: Stack port 1 on switch 2 is down (3850-Stack-2)
Starting SWITCH-DELETE sequence, switch 3
SWITCH-DELETE sequence complete, switch 3
%STACKMGR-6-SWITCH_REMOVED: STANDBY:2 stack-mgr:
Switch 3 has been removed from the stack. (3850-Stack-2)
Starting SWITCH-DELETE sequence, switch 3 (3850-Stack-2)
SWITCH-DELETE sequence complete, switch 3 (3850-Stack-2)
[an error occurred while processing this directive]
等待几分钟,以便交换机在后台完成重新加载。然后,您会看到如下消息:
%STACKMGR-1-STACK_LINK_CHANGE: 1 stack-mgr:
Stack port 2 on switch 1 is up
3850-Stack#
%STACKMGR-1-STACK_LINK_CHANGE: STANDBY:2 stack-mgr:
Stack port 1 on switch 2 is up (3850-Stack-2)
3850-Stack#
%STACKMGR-6-SWITCH_ADDED: 1 stack-mgr:
Switch 3 has been added to the stack.
%STACKMGR-6-SWITCH_ADDED: STANDBY:2 stack-mgr:
Switch 3 has been added to the stack. (3850-Stack-2)
[an error occurred while processing this directive]
可以看到,在重新加载后,交换机自动从捆绑包模式切换到安装模式:
%INSTALLER-6-AUTO_UPGRADE_SW_INITIATED: 1 installer:
Auto upgrade initiated for switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Converting switch 3 to installed mode by
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
installing its running software
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Setting the boot var on switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Finished installing the running software on switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Reloading switch 3 to boot in installed mode
%STACKMGR-1-RELOAD_REQUEST: 1 stack-mgr:
Received reload request for switch 3, reason Auto upgrade
%STACKMGR-1-STACK_LINK_CHANGE: 1 stack-mgr:
Stack port 2 on switch 1 is down
%STACKMGR-6-SWITCH_REMOVED: 1 stack-mgr:
Switch 3 has been r
3850-Stack#emoved from the stack.
%STACKMGR-1-STACK_LINK_CHANGE: STANDBY:2 stack-mgr:
Stack port 1 on switch 2 is down (3850-Stack-2)
Starting SWITCH-DELETE sequence, switch 3
SWITCH-DELETE sequence complete, switch 3
%STACKMGR-6-SWITCH_REMOVED: STANDBY:2 stack-mgr:
Switch 3 has been removed from the stack. (3850-Stack-2)
3850-Stack#
Starting SWITCH-DELETE sequence, switch 3 (3850-Stack-2)
SWITCH-DELETE sequence complete, switch 3 (3850-Stack-2)
[an error occurred while processing this directive]
完成重新引导后,升级将继续进行:
%INSTALLER-6-AUTO_UPGRADE_SW_INITIATED: 1 installer:
Auto upgrade initiated for switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Searching stack for software to upgrade switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Found donor switch 1 to auto upgrade switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Upgrading switch 3 with software from switch 1
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Finished installing software on switch 3
%INSTALLER-6-AUTO_UPGRADE_SW: 1 installer:
Reloading switch 3 to complete the auto upgrade
%STACKMGR-1-RELOAD_REQUEST: 1 stack-mgr:
Received reload request for switch 3, reason Auto upgrade
%STACKMGR-1-STACK_LINK_CHANGE: 1 stack-mgr:
Stack port 2 on switch 1 is down
%STACKMGR-6-SWITCH_REMOVED: 1 stack-mgr:
Switch 3 has been removed from the stack.
%STACKMGR-1-STACK_LINK_CHANGE: STANDBY:2 stack-mgr:
Stack port
3850-Stack#t 1 on switch 2 is down (3850-Stack-2)
Starting SWITCH-DELETE sequence, switch 3
SWITCH-DELETE sequence complete, switch 3
%STACKMGR-6-SWITCH_REMOVED: STANDBY:2 stack-mgr:
Switch 3 has been removed from the stack. (3850-Stack-2)
[an error occurred while processing this directive]
交换机会再次自动执行重新引导。当交换机启动后,即会使用正确的 IOS-XE 版本和软件模式成功加入堆叠。
%STACKMGR-6-SWITCH_ADDED: 1 stack-mgr:
Switch 3 has been added to the stack.
%STACKMGR-6-SWITCH_ADDED: STANDBY:2 stack-mgr:
Switch 3 has been added to the stack. (3850-Stack-2)
%STACKMGR-6-SWITCH_READY: STANDBY:2 stack-mgr:
Switch 3 is ready. (3850-Stack-2)
%STACKMGR-6-SWITCH_READY: 1 stack-mgr: Switch 3 is ready.
Starting SWITCH-ADD sequence, switch 3
%NGWC_USB_CONSOLE-6-CONFIG_ENABLE: Switch 3:
Console media-type changed to default
Starting SWITCH-ADD sequence, switch 3 (3850-Stack-2)
SWITCH-ADD sequence complete, switch 3 (3850-Stack-2)
SWITCH-ADD sequence complete, switch 3
[an error occurred while processing this directive]
验证您可以使用 show switch 和 show version 命令来验证升级流程是否成功完成:
3850-Stack#
show switch
Switch/Stack Mac Address : 0c27.24cf.ab80 - Local Mac Address
Mac persistency wait time: Indefinite
H/W Current
Switch# Role Mac Address Priority Version State
------------------------------------------------------------
*1 Active 0c27.24cf.ab80 14 B0 Ready
2 Standby f41f.c238.a800 13 B0 Ready
3 Member b4e9.b0d3.6600 12 B0 Ready
3850-Stack#
show version
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 56 WS-C3850-48P 03.03.01SE cat3k_caa-universalk9 INSTALL
2 56 WS-C3850-48P 03.03.01SE cat3k_caa-universalk9 INSTALL
3 56 WS-C3850-48P 03.03.01SE cat3k_caa-universalk9 INSTALL
[an error occurred while processing this directive]
3850 系列交换机引导失败恢复流程有多种原因会导致 3850 系列交换机引导失败,例如引导映像损坏、packages.conf 文件损坏,或者文件丢失。本节介绍可能的恢复方法。
注意:在继续阅读下面的内容之前,请确保您已掌握与两种引导模式(安装模式和捆绑包模式)相关的知识。
标准恢复方法本节介绍用于对引导失败的 3850 系列交换机进行恢复的两种标准方法。
USB 恢复3850 系列交换机的前部有一个用于访问控制台的 USB 端口。此 USB 端口也可用于对闪存驱动器进行映像备份和恢复。
如果由于映像或 .conf 文件损坏,导致光标卡在 switch: 提示符处,您可以轻松地使用 USB 驱动器中存储的文件进行引导,或者将映像从 USB 驱动器复制到内部闪存。要从引导失败状态下恢复,请执行以下步骤:
注意:此过程将在捆绑包模式下引导交换机。
提示:您也可以将 .bin 文件从 usbflash0:指向flash:并将引导语句指向内部闪存。
损坏文件恢复在一些情况下,packages.conf 可能会调用已从闪存中删除的文件。虽然您可以使用 switch:提示符文件手动执行映像引导,但是,在重新加载时,它会再次调用packages.conf文件,并且无法启动。如果发生这种情况,Cisco建议您备份当前的packages.conf文件,并重命名或将其删除。此过程是必需的,因为如果.conf文件已存在,则下一步将失败。提取.bin文件后,将创建新的packages.conf文件。要从 packages.conf 文件损坏的状况下恢复,请执行以下步骤:
如果上述恢复方法均无效,您可以使用 3850 系列交换机的 trap door 方法来恢复系统。要使用此方法,您必须将终端连接至运行 TFTP 服务器的交换机的管理端口。然后,您需要从 CCO 下载有效的映像文件,并将其保存到 TFTP 服务器的根目录下。
您有可能会卡在 switch: 提示符处,提示。但是也有可能陷入引导循环。如果遇到这种情况,您可以使用交换机前部的 Mode 按钮跳出循环:按住该按钮大约 10 秒,交换机即会跳出循环,并停在 switch: 提示符处。提示。
要进行紧急恢复,请执行以下步骤:
Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved