取消
显示结果 
搜索替代 
您的意思是: 
cancel
公告

December 2020

5711
查看次数
32
有帮助
9
回复
Highlighted
Beginner

Prime Infrastructure 升级实战 2.0 --2.1 --2.2

本帖最后由 donglei888999 于 2015-2-11 08:56 编辑
Step 1,
检查现有PI版本:2.0.0.0.294
PI01/admin# sho version
Cisco Application Deployment Engine OS Release: 2.0
ADE-OS Build Version: 2.0.6.003-px-build
ADE-OS System Architecture: x86_64
Copyright (c) 2005-2010 by Cisco Systems, Inc.
All rights reserved.
Hostname: PI01
Version information of installed applications
---------------------------------------------
Cisco Prime Infrastructure
------------------------------------------
Version : 2.0.0.0.294
PI01/admin#


Step2:
备份你的PIdatabase: 确保你的disk space够用。

1
,检查你的DefaultRepo folder是否有最新的备份。没有的话,就重新备份一下。

PI01/admin# backup filename repository defaultRepo application

PI01/admin# dir disk:/defaultRepo/
Directory of disk:/defaultRepo/
2222222222Jan 01 2015 11:13:16 PI01-140194-0320.tar.gpg
3111111111 Jan 22 2015 09:46:53 PI01-150122-0237.tar.gpg -----> ****
最新的databasebackup, 文件会很大(我备份花了将近10个小时****)
1738046399 Jan 30 2015 13:41:53 PI-Upgrade-2.1.0.0.87.tar.gz ----> ****新的2.1升级文件,等下会用到***

PI01/admin#

2
backup的文件copy到一个TFTP / TFP/ NFS server备用,in case升级失败:
PI01/admin# copy disk:/defaultRepo/PI01-150122-0137.tar.gpg tftp://10.***/ --->
确保server有足够空间。 tftp会比较慢,FTP比较快
Step 3:
检查新的升级文件 是否已经copyPI2.0里面:

PI01/admin# show repository defaultRepo

2222210206 Jan 14 201511:13:16 PI01-140094-0320.tar.gpg
1111119795 Jan 28 2015 09:46:53 PI01-150122-0137.tar.gpg
1738046399 Jan 30 2015 13:41:53 PI-Upgrade-2.1.0.0.87.tar.gz ------> ****
确认文件大小和你下载一样****
Step 4:
暂停NCSservice--:
PI10/admin# ncs stop

Stopping Network Control System...

This may take a few minutes...

Network Control System successfully shutdown.

Plug and Play Gateway is being shut down..... Please wait!!!

Stop of Plug and Play Gateway Completed!!
SAM daemon process id does not exist
DA daemon process id does not exist
DA syslog daemon process id does not exist

Step 5:
升级过程:
PI10/admin# application upgrade PI-Upgrade-2.1.0.0.87.tar.gzdefaultRepo

Save the current ADE-OS running configuration? (yes/no)[yes] ?
Generating configuration...
Saved the ADE-OS running configuration to startupsuccessfully

Please ensure you have a backup of the system beforeproceeding.
Proceed with the application upgrade ? (yes/no) [yes] ?

DO NOT press ^C while the upgrade is in progress
Aborting upgrade with a ^C may leave the system in aunrecoverable state

Initiating Application Upgrade...
Stage 1 of 7:Transferring file ...
-- complete.
Stage 2 of 7:Unpacking file ...
-- complete.

*** System will reboot after a successful installation ofthis package ***
After reboot, please login again into the server to checkstatus

Stage 3 of 7:Executing pre-install ...

[WARNING] System will reboot after a successful installationof this package (after Stage 7).
After reboot, please login again into the server to checkstatus.
No action required at this time. Continuing with Stage 3.
**********这里需要10分钟左右**************

-- complete.
Stage 4 of 7:Upgrading binaries ...
-- complete.
Prime InfrastructureApplication installation completed
************这里需要等30分钟左右*************

Stage 5 of 7: Retrieving system version ...
-- complete.
Stage 6 of 7: Updating Database Schema ...
: This could take long time based on the existing data size.
Stage 1 of 5: Pre Migration Schema Upgrade ...
-- completed at: 2015-02-07 00:14:26.188, Time Taken : 0 hr, 2 min, 57 sec
Stage 2 of 5: Schema Upgrade ...
: This could take long time based on the existing data size.
-- completed at: 2015-02-07 00:20:31.298, Time Taken : 0 hr, 6 min, 5 sec
Stage 3 of 5: Post Migration Schema Upgrade ...
-- completed at: 2015-02-07 00:49:06.815, Time Taken : 0 hr, 28 min, 35 sec
Stage 4 of 5: Enabling DB Constraints ...
-- completed at: 2015-02-07 01:19:41.714, Time Taken : 0 hr, 30 min, 29 sec
Stage 5 of 5: Finishing Up ...
-- completed at: 2015-02-07 01:20:35.603, Time Taken : 0 hr, 0 min, 53 sec
-- complete.
Stage 7 of 7: Re-enabling Database Settings ...
-- complete.
Upgrade Finished. Server is restarting . Please wait ..
% This application Install or Upgrade requires reboot, rebooting now...
Broadcast message from root (pts/0) (Sat Feb 7 01:34:50 2015):
The system is going down for reboot NOW!
Application upgrade successful
Step 6: 升级完成后,查看新的firmware
PI01/admin# sho ver
Cisco Application Deployment Engine OS Release: 2.0
ADE-OS Build Version: 2.0.6.003-px-build
ADE-OS System Architecture: x86_64
Copyright (c) 2005-2010 by Cisco Systems, Inc.
All rights reserved.
Hostname: PI01
Version information of installed applications
---------------------------------------------
Cisco Prime Infrastructure
------------------------------------------
Version : 2.1.0.0.87
PI01/admin#
Step7, 下面是PI 2.1 升级2.2.
1,备份2.1的数据:
PI01/admin# backup filename repositorydefaultRepo application
2,复制2.1的database 到TFTPserver做备用,
PI01/admin# copydisk:/defaultRepo/PI01-150207-0330.tar.gpg tftp://10.8.8.8/

3, 安装新的Prime Infrastructure 2.2的版本:
PI02/admin# sho ver

Cisco Application Deployment Engine OS Release: 2.3
ADE-OS Build Version: 2.3.0.101-root
ADE-OS System Architecture: x86_64

Copyright (c) 2005-2010 by Cisco Systems, Inc.
All rights reserved.
Hostname: PI02

Version information of installed applications
---------------------------------------------

Cisco Prime Infrastructure
********************************************************
Version : 2.2.0
Build : 2.2.0.0.158

4, 恢复2.1的database到PI 2.2的版本:
恢复注意事项:(只能从1.4和2.1的版本恢复)
=================================
Rrestoring From Backups
You cannot restore from backups using the Prime Infrastructureuser interface. You must use the Prime Infrastructure restore command.You can restore to the same host that you were using, or to a different host.

You cannot restore portions of a backup.
You can restore to Prime Infrastructure 2.2 from the followingbackup versions only:
· Prime Infrastructure 1.4
· Prime Infrastructure 2.1
====================================

PI02/admin# restore P201-150209-0330.tar.gpg repository defaultRepo application NCS
* NOTE *
If the system console is disconnected or got cleared on session timeout
run 'show restore log' to see the output of the last restore session.
Restore will restart the application services. Continue? (yes/no) [yes] ?
DO NOT press ^C while the restoration is in progress
Aborting restore with a ^C may leave the system in a unrecoverable state
Initiating restore. Please wait...
Restore Started at 02/10/15 03:57:03
Stage 1 of 9: Transferring backup file ...
-- completed at 02/10/15 04:41:38
Stage 2 of 9: Decrypting backup file ...
-- completed at 02/10/15 06:47:07
Stage 3 of 9: Unpacking backup file ...
-- completed at 02/10/15 06:48:21
Stopping strongSwan IPsec...
Stage 4 of 9: Decompressing backup ...
-- completed at 02/10/15 06:53:30
Stage 5 of 9: Restoring Support Files ...
-- completed at 02/10/15 06:54:09
Stage 6 of 9: Restoring Database Files ...
-- completed at 02/10/15 06:55:15
Stage 7 of 9: Recovering Database ...
-- completed at 02/10/15 14:56:10
Stage 8 of 9: Updating Database Schema ...
Stage 1 of 5: Pre Migration Schema Upgrade ...
-- completed at: 2015-02-10 19:51:57.565
, Time Taken : 4 hr, 44 min, 52 sec
Stage 2 of 5: Schema Upgrade ...
: This could take long time based on the existin
g data size.
-- completed at: 2015-02-10 20:18:50.979
, Time Taken : 0 hr, 26 min, 53 sec
Stage 3 of 5: Post Migration Schema Upgrade ...
-- completed at: 2015-02-10 21:56:06.708
, Time Taken : 1 hr, 37 min, 15 sec
Stage 4 of 5: Enabling DB Constraints ...
-- completed at: 2015-02-10 21:57:53.7,
Time Taken : 0 hr, 1 min, 17 sec
Stage 5 of 5: Finishing Up ...
-- completed at: 2015-02-10 21:59:03.972
, Time Taken : 0 hr, 1 min, 10 sec
-- completed at 02/10/15 22:08:09
Stage 9 of 9: Re-enabling Database Settings ...
-- completed at 02/10/15 22:08:09
Total Restore duration is: 18h:11m:06s
INFO: Restore completed successfully.
Starting PI Server... This may take some time
Starting Prime Infrastructure...
This may take a while (10 minutes or more) ...
Prime Infrastructure started successfully.
Finished at : Tue Feb 10 23:02:26 2015
====================================
到此,所有的升级都已经完成,经过我的经验,所有的license都可以restore, 不需要重新申请license.
另外,AAA的认证,只需要重新刷新下,不需要重新配置, Domain ID就可以登录了。
Thanks all.
9 条回复9
Highlighted
Beginner

restoring the database is so slow...
Highlighted
Cisco Employee

这个一定要支持一下。
Highlighted
Beginner

支持了,这是个好资料
Highlighted
Beginner

yinheyqx 发表于 2015-2-11 13:33 back.gif
支持了,这是个好资料

多谢啊,,呵呵,现在要把device下的设备重新refresh下。。
Highlighted
Beginner

经典 !
Highlighted
Beginner

cctlijianchao 发表于 2015-3-24 13:56 back.gif
经典 !

谢谢支持了。。。
Highlighted
Beginner

Wonderful...
Highlighted
Beginner

非常好,学习学习
Highlighted
VIP Advisor

还有这个帖子啊,谢谢分享!
不能显示该小部件。