2019-08-16 Cisco XRv 6.6.1升级到6.6.25

从6.6.1升级到6.6.25有一些不太一样的地方,有些要点没有写在官方的操作指导里,很可能导致升级失败,在此记录一下以供参考。
前面几步一样的:
1、备份配置文件

RP/0/RP0/CPU0:router#copy running-config harddisk:

然后copy到tftp服务器或者用scp备份到别处。
2、有一些版本升级到6.6.25要安装Bridge SMU. 这里是版本列表:


屏幕快照 2019-08-16 20.41.25.png

在安装bridge SMU之前,先运行下面命令清除inconsistency的配置

RP/0/RP0/CPU0:router#clear configuration inconsistency

安装过程请参考官网: NCS5500_Upgrade_Downgrade_MOP_6.6.25.pdf.
当然,从上面列表看到,6.6.1升级到6.6.25并不需要安装Bridge SMU.
3、一系列检查,在XR模式:

#show platform #show platform vm #show redundancy
(verify that all nodes are in "OPERATIONAL" state)
(verify that all nodes are in "FINAL Band" state)
(verify that a Standby RP is available and in "ready" state)
#show ipv4 interface brief  show ipv6 interface brief  show interface summary (verify that all necessary interfaces are "UP")
#install verify packages (no anomalies should be displayed)
#show install active summary (verify that the proper set of packages are active) #show install committed (verify that the proper set of committed packages are same
as active. If not, execute ‘install commit’)
# show health gsp (verify transport infrastructure is OK)
# admin show controller fabric health (quick fabric health check)
#show hw-module fpd (Ensure all the FPD versions status are CURRENT)
# show alarms (Ensure no outstanding alarms)

4、调整IGP配置,调整流量,比如OSPF 使用"max-metric"

router(config-ospf)# max-metric router-lsa

ISIS使用"spf-overload-bit"

router(config-isis)# set-overload-bit

当然,升级完了要改回来。

#OSPF 
router(config-ospf)# no max-metric router-lsa
#ISIS
router(config-isis)# no set-overload-bit

5、升级FPD
两种方式:
在XR和Sysadmin模式下分别激活auto-upgrade

RP/0/RP0/CPU0:router(config)#fpd auto-upgrade enable RP/0/RP0/CPU0:router(config)#commit RP/0/RP0/CPU0:router#show run fpd auto-upgrade
fpd auto-upgrade enable
RP/0/RP0/CPU0:router#admin
admin connected from 127.0.0.1 using console on xr-vm_node0_RP0_CPU0 sysadmin-vm:0_RP0# conf t
Thu Mar 28 22:02:06.750 UTC
Entering configuration mode terminal
sysadmin-vm:0_RP0(config)# fpd auto-upgrade enable sysadmin-vm:0_RP0(config)# commit sysadmin-vm:0_RP0# show running-config fpd
Thu Mar 28 22:02:06.768 UTC
fpd auto-upgrade enable

或者直接手工升级。注意,FPD升级是必须的

RP/0/RP0/CPU0:NCS5501-LAB-1#sho hw-module fpd
Fri Aug 16 20:07:59.709 UTC
                                                               FPD Versions
                                                               =================
Location   Card type        HWver FPD device       ATR Status   Running Programd
------------------------------------------------------------------------------
0/RP0     NCS-5501-SE       1.0   MB-MIFPGA            CURRENT    1.02    1.02
0/RP0     NCS-5501-SE       1.0   Bootloader           CURRENT    1.19    1.19
0/RP0     NCS-5501-SE       1.0   CPU-IOFPGA           CURRENT    1.19    1.19
0/RP0     NCS-5501-SE       1.0   MB-IOFPGA            CURRENT    1.11    1.11

如果发现不一致,一定要在Sysadmin模式下运行:

sysadmin-vm:0_RP0# upgrade hw-module location all fpd all

6、终于到升级软件了。
先把需要的软件上传到路由器harddisk:上,记住,剩余空间要超过要安装软件包的2倍大小,比如软件1.7G

 -rw-r--r--. 1 1776609280 Aug 16 16:09 NCS5500-iosxr-k9-6.6.25.tar

硬盘就要有3.4G的剩余空间。可以使用sh media 或sh filesystem来查看

RP/0/RP0/CPU0:NCS5501-LAB-1#sh filesystem
Fri Aug 16 22:24:56.557 UTC
File Systems:

     Size(b)     Free(b)        Type  Flags  Prefixes
           0           0     network     rw  ftp:
           0           0     network     rw  tftp:
  3962216448  3851997184  flash-disk     rw  apphost:
  2069835776  2039623680  flash-disk     rw  disk0:
  5971681280  4072574976    harddisk     rw  harddisk:
   480907264   478920704       flash     rw  /misc/config
RP/0/RP0/CPU0:NCS5501-LAB-1#show media
Fri Aug 16 22:25:02.916 UTC

Media Information for local node.

----------------------------------------------
Partition                    Size     Used  Percent    Avail
rootfs:                      3.9G     1.5G      40%     2.3G
apphost:                     3.7G     106M       3%     3.4G
/dev/sde                     969M     422M      47%     481M
harddisk:                    5.6G     1.8G      34%     3.5G
log:                         459M      49M      12%     376M
config:                      459M     1.9M       1%     423M
disk0:                       2.0G      29M       2%     1.8G
---------------------------------------------------
rootfs: = root file system (read-only)
log: = system log files (read-only)
config: = configuration storage (read-only)
RP/0/RP0/CPU0:NCS5501-LAB-1#

上载文件不要把tar包解压,直接上传
我在这上面卡了好久,因为我先解压了,里面是这些rpm包:

    ncs5500-mpls-te-rsvp-3.1.0.0-r6625
    ncs5500-mini-x-6.6.25
    ncs5500-ospf-2.0.0.0-r6625
    ncs5500-isis-2.1.0.0-r6625
    ncs5500-li-1.0.0.0-r6625
    ncs5500-mpls-2.1.0.0-r6625
    ncs5500-mcast-2.1.0.0-r6625
    ncs5500-mgbl-3.0.0.0-r6625
    ncs5500-k9sec-3.1.0.0-r6625

虽然全部install add source XXX 都成功了,但是install prepare的时候总是失败,install activate 也失败。后来才知道prepare一个rpm包的时候,会把前面一个replace掉,真是不知说什么好。后来还是思科的专家提醒了一下,可以直接安装tar文件里的所有RPM,避免依赖的问题。
安装期间使用show install request查看安装进度。
7、install prepare完成后,会重启路由器,这是show install, show version都可以看到已经在6.6.25版本了。
但是还没有完,最后要install commit,不确认的话路由器重启又会变回6.6.1,因此记得确认。
然后检查fpd,还记得刚才的命令吗,show hw-module fpd, 如果有提示需要upgrade的还需要在sysadmin模式下运行upgrade hw-module location all fpd all
8、安装完成后,进行验证。

sh version
sh install activate
sh install active summary
sh install log
show configuration failed startup
#清理硬盘
install remove inactive all
#检验配置文件
RP/0/RP0/CPU0:NCS5501-LAB-1#clear configuration inconsistency
Fri Aug 16 22:41:48.470 UTC

Creating any missing directories in Configuration File system...OK
Initializing Configuration Version Manager...OK
Syncing commit database with running configuration...OK
#检验fpd是否状态在current
sh hw-module fpd
#恢复IGP的流量, ISIS 或OSPF

搞定收工。据说初次升级总要失败个几次攒攒经验,手熟了就好了。

你可能感兴趣的:(2019-08-16 Cisco XRv 6.6.1升级到6.6.25)