一次Cisco Nexus9508交换机版本升级
一次Cisco Nexus9508交换机版本升级
1 升级目的
客户处需要使用BGP EVPN VXLAN
这个feature需要7.0以上版本支持。当前版本为6.1,无法支持,所以需要升级.
1.1 当前版本:
Software
BIOS: version 08.06
NXOS: version 6.1(2)I3(3a)
1.2 目标版本:
7.0(3)I2(2B)
2 升级方式说明
升级方式可支持以下多种
FTP
TFTP
USB
如果是在现场,推荐使用USB方式,最为方便。本次的升级就是USB方式。
2.1 条件准备
新的IOS
U盘 (容量1G以上)
笔记本电脑
Console线
2.2 操作过程
2.2.1 保存当前设备配置
Nexus9508-1# copy running-config startup-config
[########################################] 100%
Copy complete.
2.2.2 插上U盘并格式化
这里是为了将U盘格式化为Nexus9508能识别的格式
Nexus9508-1# format usb1:
This command is going to erase the contents of your usb1:.
Do you want to continue? (yes/no) [y] y
Formatting usb1:
Formatting completed
2.2.3 拨出U盘插到电脑上,将新版本镜像copy to USB drive
2.2.4 U盘插到9508的引擎板上USB口,检查U盘内容![在这里插入图片描述]()
SWITCH-9508# dir usb1:
538114048 Apr 04 23:54:24 2016 nxos.7.0.3.I2.2b.bin
2.2.5 拷贝U盘中的IOS到bootfalsh
SWITCH-9508# copy usb1:nxos.7.0.3.I2.2b.bin bootflash:nxos.7.0.3.I2.2b.bin
Copy progress 100% 538114KB
Copy complete, now saving to disk (please wait)...
2.2.6 检查bootflash文件拷贝成功
SWITCH-9508# dir bootflash:
0 Nov 20 12:55:12 2015 20151120_125512_poap_6630_init.log
143 Feb 24 11:42:13 2016 20160224_114208_poap_7573_init.log
16384 Nov 20 12:28:43 2015 lost+found/
353433088 Nov 20 12:44:27 2015 n9000-dk9.6.1.2.I3.3a.bin
538114048 Apr 06 11:17:48 2016 nxos.7.0.3.I2.2b.bin
4096 Nov 20 12:29:30 2015 onep/
4096 Feb 24 11:40:12 2016 scripts/
4096 Feb 24 13:59:25 2016 virt_strg_pool_bf_vdc_1/
4096 Feb 24 13:59:13 2016 virtual-instance/
4096 Feb 24 13:59:02 2016 virtual-instance-stby-sync/
112 Feb 24 13:56:21 2016 virtual-instance.conf
2.2.7 弹出U盘
弹出的命令和Linux环境中类似。
SWITCH-9508# unmount usb1:
2.2.8 检查IOS的MD5值
检查是否与官网的MD5值一致,若一致则说明文件无损坏。
SWITCH-9508# show file bootflash:nxos.7.0.3.I2.2b.bin md5sum
02c06a20fd815ae895928966c45ab08d
2.2.9 检查新版本的兼容性
这一步还是很有必要的,正式升级前检查兼容性,这一步操作不会影响业务,也不会导致网络中断。
SWITCH-9508# show install all impact nxos bootflash:nxos.7.0.3.I2.2b.bin
会弹出以下logging,只需要等待
Installer will perform impact only check. Please wait.
uri is: /nxos.7.0.3.I2.2b.bin
Verifying image bootflash:/nxos.7.0.3.I2.2b.bin for boot variable "nxos".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.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 disruptive reset Incompatible image
2 yes disruptive reset Incompatible image
3 yes disruptive reset Incompatible image
22 yes disruptive reset Incompatible image
23 yes disruptive reset Incompatible image
24 yes disruptive reset Incompatible image
26 yes disruptive reset Incompatible image
27 yes disruptive reset Incompatible image
28 yes disruptive reset Incompatible image
29 yes disruptive reset Incompatible image
30 yes disruptive reset Incompatible image
Images will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------
1 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
1 bios v01.42(00:v01.42(00 v01.42(00 no
2 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
2 bios v01.42(00:v01.42(00 v01.42(00 no
3 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
3 bios v01.42(00:v01.42(00 v01.42(00 no
22 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
22 bios v01.42(00:v01.42(00 v01.42(00 no
23 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
23 bios v01.42(00:v01.42(00 v01.42(00 no
24 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
24 bios v01.42(00:v01.42(00 v01.42(00 no
26 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
26 bios v01.42(00:v01.42(00 v01.42(00 no
27 nxos 6.1(2)I3(3a) 7.0(3)I2(2b) yes
27 bios v08.06(09/10/2014):v08.06(09/10/2014) v08.18(08/11/2015) yes
28 nxos 6.1(2)I3(3a) 7.0(3)I2(2b) yes
28 bios v08.06(09/10/2014):v08.06(09/10/2014) v08.18(08/11/2015) yes
29 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
29 bios v01.42(00:v01.42(00 v01.42(00 no
30 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
30 bios v01.42(00:v01.42(00 v01.42(00 no
2.2.10 正式升级
SWITCH-9508# install all nxos bootflash:nxos.7.0.3.I2.2b.bin
以下为过程中输出的logging,just wait to complete
Installer will perform compatibility check first. Please wait.
uri is: /nxos.7.0.3.I2.2b.bin
Verifying image bootflash:/nxos.7.0.3.I2.2b.bin for boot variable "nxos".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Preparing "lcn9k" version info using image bootflash:/nxos.7.0.3.I2.2b.bin.
[####################] 100% -- SUCCESS
Performing module support checks.
[####################] 100% -- SUCCESS
Notifying services about system upgrade.
2016 Apr 6 11:24:41 SWITCH-9508 %VMAN-2-DEACT_FOR_ISSU: ISSU validation in progress. Active VMs will be deactivated for the duration. Max (1800s)
2016 Apr 6 11:24:41 SWITCH-9508 %VSHD-5-VSHD_SYSLOG_CONFIG_I: Configured from vty by admin on vsh.24168
2016 Apr 6 11:24:47 SWITCH-9508 %VMAN-2-ACTIVATION_STATE: Successfully deactivated virtual service 'guestshell+'
[####################] 100% -- SUCCESS
Compatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------
1 yes disruptive reset Incompatible image
2 yes disruptive reset Incompatible image
3 yes disruptive reset Incompatible image
22 yes disruptive reset Incompatible image
23 yes disruptive reset Incompatible image
24 yes disruptive reset Incompatible image
26 yes disruptive reset Incompatible image
27 yes disruptive reset Incompatible image
28 yes disruptive reset Incompatible image
29 yes disruptive reset Incompatible image
30 yes disruptive reset Incompatible image
Images will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------
1 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
1 bios v01.42(00:v01.42(00 v01.42(00 no
2 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
2 bios v01.42(00:v01.42(00 v01.42(00 no
3 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
3 bios v01.42(00:v01.42(00 v01.42(00 no
22 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
22 bios v01.42(00:v01.42(00 v01.42(00 no
23 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
23 bios v01.42(00:v01.42(00 v01.42(00 no
24 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
24 bios v01.42(00:v01.42(00 v01.42(00 no
26 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
26 bios v01.42(00:v01.42(00 v01.42(00 no
27 nxos 6.1(2)I3(3a) 7.0(3)I2(2b) yes
27 bios v08.06(09/10/2014):v08.06(09/10/2014) v08.18(08/11/2015) yes
28 nxos 6.1(2)I3(3a) 7.0(3)I2(2b) yes
28 bios v08.06(09/10/2014):v08.06(09/10/2014) v08.18(08/11/2015) yes
29 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
29 bios v01.42(00:v01.42(00 v01.42(00 no
30 lcn9k 6.1(2)I3(3a) 7.0(3)I2(2b) yes
30 bios v01.42(00:v01.42(00 v01.42(00 no
2.2.11 提示会导致设备重启,是否继续安装,输入 Y
Switch will be reloaded for disruptive upgrade.
Do you want to continue with the installation (y/n)? [n] y
以下为logging output, just wait
Install is in progress, please wait.
Performing runtime checks.
[####################] 100% -- SUCCESS
Syncing image bootflash:/nxos.7.0.3.I2.2b.bin to standby.
[####################] 100% -- SUCCESS
Setting boot variables.
[# ] 0%2016 Apr 6 11:30:15 SWITCH-9508 %VSHD-5-VSHD_SYSLOG_CONFIG_I: Configured from vty by root on vsh.24378
[####################] 100% -- SUCCESS
Performing configuration copy.
[####################] 100% -- SUCCESS
Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 2: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 3: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 22: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 23: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 24: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 26: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 27: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 28: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 29: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Module 30: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESS
Finishing the upgrade, switch will reboot in 10 seconds.
安装完成,系统提示会在10秒钟内自动重启
2.2.12 启动过程console输出如下:
可以看到已经加载了新的版本
Time: 4/6/2016 11:35:25
Detected CISCO IOFPGA
Booting from Primary Bios
Code Signing Results: 0x0
Using Upgrade FPGA
FPGA Revison : 0x22
FPGA ID : 0x1168153
FPGA Date : 0x20140915
Reset Cause Register: 0x20
Boot Ctrl Register : 0x60ff
EventLog Register1 : 0x2000000
EventLog Register2 : 0xfbc77fff
Version 2.16.1240. Copyright (C) 2013 American Megatrends, Inc.
Board type 1
IOFPGA @ 0xe8000000
SLOT_ID @ 0x1b
EOR chassis
check_bootmode: grub: Continue grub
Trying to read config file /boot/grub/menu.lst.local from (hd0,4)
Filesystem type is ext2fs, partition type 0x83
Booting bootflash:/nxos.7.0.3.I2.2b.bin ...
Booting bootflash:/nxos.7.0.3.I2.2b.bin
Trying diskboot
Filesystem type is ext2fs, partition type 0x83
IOFPGA ID: 1168153
Image valid
Image Signature verification was Successful.
Boot Time: 4/6/2016 11:36:0
INIT: version 2.88 booting
Unsquashing rootfs ...
Loading IGB driver ...
Installing SSE module ... done
Creating the sse device node ... done
Loading I2C driver ...
Installing CCTRL driver for card_type 3 ...
CCTRL driver for card_index 21000 ...
old data: 4000004 new data: 1
Checking SSD firmware ...
Model Number: Micron_M550_MTFDDAT064MAY
Serial Number: MSA184902X1
Firmware Revision: MU01
Checking all filesystems.......
Installing default sprom values ...
done.Configuring network ...
Installing LC netdev ...
Installing psdev ...
Installing veobc ...
Installing OBFL driver ...
tune2fs 1.42.1 (17-Feb-2012)
Setting reserved blocks percentage to 0% (0 blocks)
Starting portmap daemon...
creating NFS state directory: done
starting 8 nfsd kernel threads: done
starting mountd: done
starting statd: done
Saving image for img-sync ...
Loading system software
Installing local RPMS
Patch Repository Setup completed successfully
dealing with default shell..
file /proc/cmdline found, look for shell
unset shelltype, nothing to do..
user add file found..edit it
Uncompressing system image: Wed Apr 6 11:36:23 UTC 2016
blogger: nothing to do.
2.2.13 重启完成后,查看当前版本已经为新的7.0.3
SWITCH-9508# sh version
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2016, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source. This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or
GNU General Public License (GPL) version 3.0 or the GNU
Lesser General Public License (LGPL) Version 2.1 or
Lesser General Public License (LGPL) Version 2.0.
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
Software
BIOS: version 08.18
NXOS: version 7.0(3)I2(2b)
BIOS compile time: 08/11/2015
NXOS image file is: bootflash:nxos.7.0.3.I2.2b.bin
NXOS compile time: 2/28/2016 21:00:00 [02/29/2016 05:21:45]


浙公网安备 33010602011771号