设为首页 收藏本站
查看: 931|回复: 0

[经验分享] Cisco Nexus 7000 upgrade 升级

[复制链接]

尚未签到

发表于 2018-7-20 07:13:22 | 显示全部楼层 |阅读模式
  运行前,得把cisco nexus 7010 升级到cisco推荐的稳定版本,以后打算一直用,没事尽量不升版本,cisco搜索nexus 7000 upgrade 有各种文档,很长的,介绍各种方法,原理,其中有如何升完一个引擎,再升另一个,这样不中断生产,但手上这个还没跑数据,简单粗暴,install all 一把升完。。。
  其实简单粗暴或者以后生产过程中升级貌似也没事,因为有双引擎,只要操作得当,总会适时一个备引擎升完,切到备上,才升级主,这个过程可以自动完成,也可以你手动,我喜欢一把来,自动搞定
  以下是secureCRT抓取,不用担心很长,多是过程(理解过程,有助于以后生产环境中实现不间断升版本),简单粗暴的来总共就下面红字标出的三个命令(当然命令可拆解,kickstsrt一下,system一下,一把来吧,喜欢自动识别,当然如果我步骤错误,或者硬件不支持,或者ios镜像版本错了,会有报错的,比较不错。)
  之前记得把固件传到sup1 和 sup2的flash中,两个引擎都要传啊,文件大用tftp太累,建议开启feature ssh ,feature sft,用sftp传,记得sh ver,sh module ,sh boot确认之前状态
  boot kickstart bootflash:n7000-s2-kickstart.6.2.16.bin sup-1 sup-2
  boot system bootflash:n7000-s2-dk9.6.2.16.bin sup-1 sup-2 install all kickstart bootflash:n7000-s2-kickstart.6.2.16.bin system bootflash:n7000-s2-dk9.6.2.16.bin
  install all kickstart bootflash:n7000-s2-kickstart.6.2.16.bin system bootflash:n7000-s2-dk9.6.2.16.bin
  之后记得copy running start,保存,然后sh ver,sh module ,sh boot看下有何不同(其实就是sh boot的next boot变了),最后reload 起来后sh ver,sh module ,sh boot(全变了),确认版本正确就行了。
  cisco nexus交换机和cisco mds交换机分别用于两个不同的大方向,但架构貌似一样,升级过程几乎一样
  全部过程如下:
  switch(config)# sh version     ###显示现在运行的版本为6.2.2a
  Cisco Nexus Operating System (NX-OS) Software
  TAC support: http://www.cisco.com/tac
  Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
  Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.
  The copyrights to certain works contained in this software are
  owned by other third parties and used and distributed under
  license. Certain components of this software are licensed under
  the GNU General Public License (GPL) version 2.0 or the GNU
  Lesser General Public License (LGPL) Version 2.1. A copy of each
  such license is available at
  http://www.opensource.org/licenses/gpl-2.0.php and
  http://www.opensource.org/licenses/lgpl-2.1.php
  Software
  BIOS:      version 2.12.0
  kickstart: version 6.2(2a)
  system:    version 6.2(2a)
  BIOS compile time:       05/29/2013
  kickstart image file is: bootflash:///n7000-s2-kickstart.6.2.2a.bin
  kickstart compile time:  8/23/2013 15:00:00 [10/14/2013 23:54:28]
  system image file is:    bootflash:///n7000-s2-dk9.6.2.2a.bin
  system compile time:     8/23/2013 15:00:00 [10/15/2013 03:58:57]
  Hardware
  cisco Nexus7000 C7010 (10 Slot) Chassis ("Supervisor Module-2")
  Intel(R) Xeon(R) CPU         with 32745068 kB of memory.

  Processor Board>  Device name: switch
  bootflash:    1966080 kB
  slot0:              0 kB (expansion flash)
  Kernel uptime is 0 day(s), 0 hour(s), 5 minute(s), 39 second(s)
  Last reset at 634999 usecs after  Tue Jan 24 02:04:20 2017
  Reason: Reset triggered due to Switchover Request by User
  System version: 6.2(2a)
  Service:
  plugin
  Core Plugin, Ethernet Plugin
  switch(config)# show boot      ###显示启动文件
  Current Boot Variables:
  sup-1
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.2a.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.2a.bin
  sup-2
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.2a.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.2a.bin
  No module boot variable set

  Boot Variables on next>  sup-1
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.2a.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.2a.bin
  sup-2
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.2a.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.2a.bin
  No module boot variable set
  switch(config)# dir
  0    Sep 30 02:10:43 2014  20140930_021043_poap_7271_init.log
  0    Jan 07 00:43:10 2017  20170107_004310_poap_7641_init.log
  0    Jan 07 01:49:53 2017  20170107_014953_poap_7649_init.log
  96392    Jan 20 20:53:47 2017  20170117_024219_poap_7636_init.log
  510    Sep 30 01:25:05 2014  FXS1834Q4EA_910985804.lic
  16384    Sep 30 01:22:45 2014  lost+found/
  425889673    Jan 09 00:37:35 2017  n7000-s2-dk9.6.2.16.bin
  378617383    Sep 30 01:24:48 2014  n7000-s2-dk9.6.2.2a.bin
  36697088    Jan 09 00:21:09 2017  n7000-s2-kickstart.6.2.16.bin
  37094912    Sep 30 01:24:02 2014  n7000-s2-kickstart.6.2.2a.bin
  4096    Sep 30 02:08:25 2014  scripts/
  4096    Sep 30 02:07:24 2014  vdc_2/
  4096    Sep 30 02:07:24 2014  vdc_3/
  4096    Sep 30 02:07:24 2014  vdc_4/
  4096    Sep 30 02:07:24 2014  vdc_5/
  4096    Sep 30 02:07:24 2014  vdc_6/
  4096    Sep 30 02:07:24 2014  vdc_7/
  4096    Sep 30 02:07:24 2014  vdc_8/
  4096    Sep 30 02:07:24 2014  vdc_9/
  Usage for bootflash://
  1003073536 bytes used
  771182592 bytes free
  1774256128 bytes total
  switch(config)# sh version module 1   ###查看某一模块版本
  ModNo   Image Type   SW Version   SW Interim Version  BIOS Version
  1       SLC          6.2(2a)      6.2(2a)             2.0.15
  switch(config)# boot kickstart bootflash:n7000-s2-kickstart.6.2.16.bin sup-1 sup-2    ###设置kickstart 启动文件
  Performing image verification and compatibility check, please wait....
  Note: system and kickstart bootvars are pointing to incompatible images
  switch(config)# boot system bootflash:n7000-s2-dk9.6.2.16.bin sup-1 sup-2      ###设置system 启动文件
  Performing image verification and compatibility check, please wait....
  switch(config)# copy running-config startup-config    ###  保存一下 其实应该install all执行完保存一下即可
  switch(config)# install all kickstart bootflash:n7000-s2-kickstart.6.2.16.bin system bootflash:n7000-s2-dk9.6.2.16.bin  ###安装kickstsrt启动文件 这里同时安装 system启动文件  一把来。。。
  Installer will perform compatibility check first. Please wait.
  Verifying image bootflash:/n7000-s2-kickstart.6.2.16.bin for boot variable "kickstart".
  [####################] 100% -- SUCCESS
  Verifying image bootflash:/n7000-s2-dk9.6.2.16.bin for boot variable "system".
  [####################] 100% -- SUCCESS
  Verifying image type.
  [####################] 100% -- SUCCESS
  Extracting "lc1n7k" version from image bootflash:/n7000-s2-dk9.6.2.16.bin.
  [####################] 100% -- SUCCESS
  Extracting "bios" version from image bootflash:/n7000-s2-dk9.6.2.16.bin.
  [####################] 100% -- SUCCESS
  Extracting "system" version from image bootflash:/n7000-s2-dk9.6.2.16.bin.
  [####################] 100% -- SUCCESS
  Extracting "kickstart" version from image bootflash:/n7000-s2-kickstart.6.2.16.bin.
  [####################] 100% -- SUCCESS
  Performing module support checks.
  [####################] 100% -- SUCCESS
  Notifying services about system upgrade.
  [####################] 100% -- SUCCESS
  Compatibility check is done:
  Module  bootable          Impact  Install-type  Reason
  ------  --------  --------------  ------------  ------
  1       yes  non-disruptive       rolling
  2       yes  non-disruptive       rolling
  3       yes  non-disruptive       rolling
  5       yes  non-disruptive         reset
  6       yes  non-disruptive         reset
  Images will be upgraded according to following table:
  Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
  ------  ----------  ----------------------------------------  --------------------  ------------
  1      lc1n7k                                   6.2(2a)               6.2(16)           yes
  1        bios       v2.0.15(07/25/11):v2.0.15(07/25/11)     v2.0.32(12/16/13)           yes
  2      lc1n7k                                   6.2(2a)               6.2(16)           yes
  2        bios     v1.10.14(04/02/10):v1.10.14(04/02/10)    v1.10.21(11/26/12)           yes
  3      lc1n7k                                   6.2(2a)               6.2(16)           yes
  3        bios     v1.10.14(04/02/10):v1.10.14(04/02/10)    v1.10.21(11/26/12)           yes
  5      system                                   6.2(2a)               6.2(16)           yes
  5   kickstart                                   6.2(2a)               6.2(16)           yes
  5        bios   v2.12.0(05/29/2013):v2.12.0(05/29/2013)   v2.12.0(05/29/2013)            no
  6      system                                   6.2(2a)               6.2(16)           yes
  6   kickstart                                   6.2(2a)               6.2(16)           yes
  6        bios   v2.12.0(05/29/2013):v2.12.0(05/29/2013)   v2.12.0(05/29/2013)            no
  Do you want to continue with the installation (y/n)?  [n] y   ###确认
  Install is in progress, please wait.
  Performing runtime checks.
  [####################] 100% -- SUCCESS
  Syncing image bootflash:/n7000-s2-kickstart.6.2.16.bin to standby.
  [####################] 100% -- SUCCESS
  Syncing image bootflash:/n7000-s2-dk9.6.2.16.bin to standby.
  [####################] 100% -- SUCCESS
  Setting boot variables.
  [####################] 100% -- SUCCESS
  Performing configuration copy.
  [####################] 100% -- SUCCESS
  Module 1:  Upgrading bios/loader/bootrom.
  Warning: please do not remove or power off the module at this time.
  [####################] 100% -- SUCCESS
  Module 2:  Upgrading bios/loader/bootrom.
  Warning: please do not remove or power off the module at this time.
  [####################] 100% -- SUCCESS
  Module 3:  Upgrading bios/loader/bootrom.
  Warning: please do not remove or power off the module at this time.
  [####################] 100% -- SUCCESS
  Module 5:  Upgrading bios/loader/bootrom.
  Warning: please do not remove or power off the module at this time.
  [####################] 100% -- SUCCESS
  Module 6:  Upgrading bios/loader/bootrom.
  Warning: please do not remove or power off the module at this time.
  [####################] 100% -- SUCCESS
  Module 6: Waiting for module online.
  -- SUCCESS
  Notifying services about the switchover.
  [####################] 100% -- SUCCESS
  "Switching over onto standby".     ###切换到备引擎了,现在ssh是到备的mgt了,丢包极少。
  switch# 2017 Jan 24 02:32:59 switch %MODULE-5-STANDBY_SUP_OK: Supervisor 5 is standby
  2017 Jan 24 02:32:59 switch %MODULE-5-LCM_MODULE_UPGRADE_START: Upgrade of module 1 started
  2017 Jan 24 02:32:58 switch %SYSMGR-SLOT1-5-LC_UPGRADE_START: Starting linecard upgrade
  2017 Jan 24 02:33:17 switch %SYSMGR-SLOT1-5-LC_UPGRADE_REBOOT: Non-disruptively rebooting linecard as a part of upgrade
  2017 Jan 24 02:33:58 switch %SYSMGR-SLOT1-4-READCONF_STARTED: Configuration update started (PID 2294).
  2017 Jan 24 02:33:59 switch %SYSMGR-SLOT1-5-RUNTIME_DB_RESTORE_STARTED: Runtime database controller started (PID 2295).
  2017 Jan 24 02:34:06 switch %SYSMGR-SLOT1-5-RUNTIME_DB_RESTORE_SUCCESS: Runtime database successfully restored.
  2017 Jan 24 02:34:18 switch %BIOS_DAEMON-SLOT1-5-BIOS_DAEMON_LC_PRI_BOOT:  System booted from Primary BIOS Flash
  2017 Jan 24 02:34:31 switch %MODULE-5-LCM_MODULE_UPGRADE_END: Upgrade of module 1 ended
  2017 Jan 24 02:34:31 switch %MODULE-5-MOD_OK: Module 1 is online (Serial number: JAF1832AKCS)
  2017 Jan 24 02:34:31 switch %PLATFORM-5-MOD_STATUS: Module 1 current-status is MOD_STATUS_ONLINE/OK
  2017 Jan 24 02:34:31 switch %SYSMGR-SLOT1-5-MODULE_ONLINE: System Manager has received notification of local module becoming online.
  2017 Jan 24 02:34:57 switch %MODULE-5-LCM_MODULE_UPGRADE_START: Upgrade of module 2 started
  2017 Jan 24 02:34:57 switch %SYSMGR-SLOT2-5-LC_UPGRADE_START: Starting linecard upgrade
  switch#
  switch# copy running  start

  switch#>  This command will reboot the system. (y/n)?  [n] y
  switch# sh module     ###重启后确认模块版本
  Mod  Ports  Module-Type                         Model              Status
  ---  -----  ----------------------------------- ------------------ ----------
  1    48     1/10 Gbps Ethernet Module           N7K-F248XP-25E     testing
  2    48     1000 Mbps Optical Ethernet XL Modul N7K-M148GS-11L     testing
  3    48     10/100/1000 Mbps Ethernet XL Module N7K-M148GT-11L     testing
  5    0      Supervisor Module-2                 N7K-SUP2E          active *
  6    0      Supervisor Module-2                                    powered-up
  Mod  Sw              Hw
  ---  --------------  ------
  1    6.2(16)         1.1
  2    6.2(16)         1.0
  3    6.2(16)         1.1
  5    6.2(16)         6.1
  Mod  MAC-Address(es)                         Serial-Num
  ---  --------------------------------------  ----------
  1    50-87-89-45-66-34 to 50-87-89-45-66-67  JAF1832AKCS
  2    1c-6a-7a-ff-6c-a4 to 1c-6a-7a-ff-6c-d7  JAF1746ABSG
  3    7c-0e-ce-8f-d2-88 to 7c-0e-ce-8f-d2-bb  JAF1832AFEQ
  5    50-87-89-46-01-1f to 50-87-89-46-01-31  JAF1833APBH
  Mod  Online Diag Status
  ---  ------------------
  1    Untested
  2    Untested
  3    Untested
  5    Pass
  Xbar Ports  Module-Type                         Model              Status
  ---  -----  ----------------------------------- ------------------ ----------
  1    0      Fabric Module 2                     N7K-C7010-FAB-2    ok
  2    0      Fabric Module 2                     N7K-C7010-FAB-2    ok
  3    0      Fabric Module 2                     N7K-C7010-FAB-2    ok
  Xbar Sw              Hw
  ---  --------------  ------
  1    NA              1.6
  2    NA              1.6
  3    NA              1.6
  Xbar MAC-Address(es)                         Serial-Num
  ---  --------------------------------------  ----------
  1    NA                                      JAF1833AMAK
  2    NA                                      JAF1833AMBQ
  3    NA                                      JAF1833AMDM
  * this terminal session
  switch# sh ver    ###确认版本
  Cisco Nexus Operating System (NX-OS) Software
  TAC support: http://www.cisco.com/tac
  Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_serie
  s_home.html
  Copyright (c) 2002-2016, Cisco Systems, Inc. All rights reserved.
  The copyrights to certain works contained in this software are
  owned by other third parties and used and distributed under
  license. Certain components of this software are licensed under
  the GNU General Public License (GPL) version 2.0 or the GNU
  Lesser General Public License (LGPL) Version 2.1. A copy of each
  such license is available at
  http://www.opensource.org/licenses/gpl-2.0.php and
  http://www.opensource.org/licenses/lgpl-2.1.php
  Software
  BIOS:      version 2.12.0
  kickstart: version 6.2(16)
  system:    version 6.2(16)
  BIOS compile time:       05/29/2013
  kickstart image file is: bootflash:///n7000-s2-kickstart.6.2.16.bin
  kickstart compile time:  1/27/2016 9:00:00 [04/05/2016 21:13:37]
  system image file is:    bootflash:///n7000-s2-dk9.6.2.16.bin
  system compile time:     1/27/2016 9:00:00 [04/05/2016 22:16:06]
  Hardware
  cisco Nexus7000 C7010 (10 Slot) Chassis ("Supervisor Module-2")
  Intel(R) Xeon(R) CPU         with 32745060 kB of memory.

  Processor Board>  Device name: switch
  bootflash:    1966080 kB
  slot0:              0 kB (expansion flash)
  Kernel uptime is 0 day(s), 0 hour(s), 4 minute(s), 7 second(s)
  Last reset
  Reason: Unknown
  System version: 6.2(16)
  Service:
  plugin
  Core Plugin, Ethernet Plugin
  switch# sh boot      ###确认启动项
  Current Boot Variables:
  sup-1
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.16.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.16.bin
  sup-2
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.16.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.16.bin
  No module boot variable set

  Boot Variables on next>  sup-1
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.16.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.16.bin
  sup-2
  kickstart variable = bootflash:/n7000-s2-kickstart.6.2.16.bin
  system variable = bootflash:/n7000-s2-dk9.6.2.16.bin
  No module boot variable set

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-538895-1-1.html 上篇帖子: 部分3G网卡连接Cisco ***后不能访问内网资源 下篇帖子: cisco路由器IOS恢复方法之ROMMON恢复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表