12 12
发新话题
打印

[原创文章] TX2 升级

TX2 升级

1、保存现有的配置文件,并上传到FTP服务器上。

{master}[edit]
root@XX-MAN.RE0# save /var/tmp/config-old-20071127
Wrote 421 lines of configuration to '/var/tmp/config-old-20071127'

{master}[edit]
root@XX-MAN.RE0#run file copy /var/tmp/config-old-20071127
ftp://username:password@IP-address/config-old-20071127

Transferring ftp://username:password@IP-address/config-old-20071127 (5554 bytes): 100%
5554 bytes transferred in 0.0 seconds (4.71 MBps)

{master}[edit]

2FTP上载8.3R3.4软件到主RE上。文件名类似"jinstall-8.3R3.4-export-signed.tgz"

root@XX-MAN.RE0#run file copy ftp://username:password@IP-address/jinstall-8.3R3.4-export-signed.tgz
/var/tmp/jinstall-8.3R3.4-export-signed.tgz


  从主RE拷贝软件到备份RE,假定RE1是备份RE

root@XX-MAN.RE0# run file copy /var/tmp/jinstall-8.3R3.4-export-signed.tgz
re1:/var/tmp/jinstall-8.3R3.4-export-signed.tgz


      确认软件已经拷贝到了设备/var文件系统下:

root@XX-MAN.RE0# run file list /var/tmp
/var/tmp:
.pccardd
install/
jbundle-8.3R1.5-export.tgz*
jinstall-8.3R3.4-export-signed.tgz
sampled.pkts
vi.recover/

root@XX-MAN.RE0# run show file list re1:/var/tmp

re1:
--------------------------------------------------------------------------
/var/tmp:
.pccardd
install/
jbundle-8.3R1.5-export.tgz*
jinstall-8.3R3.4-export-signed.tgz
vi.recover/

3  对于双RE的系统将先升级备份RE。在升级备份RE后将切换RE使得原先的备份RE成为主RE。只有在确认了这个新的主RE一切正常后才会升级原先的主RE(即现在的备份RE)。这样即使出现问题仍可以退回到原先工件正常的主RE上。
     首先登陆到系统备用引擎上(这里为RE1
     {master}
root@XX-MAN.RE0> request routing-engine login other-routing-engine

4  升级备用引擎的操作系统,升级过程中的debug信息如下:
{backup}
root@XX-MAN.RE1>request system software add /var/tmp/jinstall-8.3R3.4-export-signed.tgz
cp: /var/tmp/jinstall-8.3R3.4-export-signed.tgz and /var/tmp/jinstall-8.3R3.4-export-signed.tgz are identical (not copied).
Pushing bundle to lcc0-re1
Pushing bundle to lcc1-re1

Validating on lcc0-re1
Checking compatibility with configuration
Initializing...
Using jbase-8.3R1.5
Verified manifest signed by PackageProduction_8_3_0
Using /var/tmp/jinstall-8.3R3.4-export-signed.tgz
Verified jinstall-8.3R3.4-export.tgz signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jinstall-signed/jinstall-8.3R3.4-export.tgz
Using /mfs/validate/tmp/jinstall/jbundle-8.3R3.4-export.tgz
Checking jbundle requirements on /
Using /mfs/validate/tmp/jbundle/jbase-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jkernel-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jpfe-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M10-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M120-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M160-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M320-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M40-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M7i-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-T-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-X960-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-common-8.3R3.4.tgz
Using /mfs/validate/tmp/jbundle/jdocs-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jroute-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
Interface control process: [edit interfaces fxp0 unit 0 family inet]
Interface control process:
'address 192.168.0.1/24'

Interface control process:
warning: [edit system backup-router] not present. The default route for fxp0 is not installed.

Interface control process:
Interface control process: [edit groups lcc0-re1 interfaces fxp0 unit 0 family inet]
Interface control process:
'address 192.168.0.6/24'

Interface control process:
warning: [edit system backup-router] not present. The default route for fxp0 is not installed.

Interface control process:
mgd: commit complete
Validation succeeded

… … … …
… … … …
… … … …

{backup}
root@XX-MAN.RE1>                                                   

5  确认升级没有出现异常信息,然后重起这个备用引擎完成升级
{backup}
root@XX-MAN.RE1> request system reboot
Reboot the system ? [yes,no] (no) yes


Rebooting lcc0-re1

Rebooting lcc1-re1


*** FINAL System shutdown message from root@XX-MAN.RE1 ***

System going down IMMEDIATELY






Shutdown NOW!
Reboot consistency check bypassed - jinstall 8.3R3.4 will complete installation upon reboot
[pid 9569]

6  重起引擎后重新登陆到RE1上,察看系统的软件信息,确认备用引擎已经升级到了预期的版本
  
{backup}

root@XX-MAN.RE1> show version
scc-re1:
--------------------------------------------------------------------------
Hostname: XX-MAN.RE1
Model: TX Matrix
JUNOS Base OS boot [8.3R3.4]
JUNOS Base OS Software Suite [8.3R3.4]
JUNOS Kernel Software Suite [8.3R3.4]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.3R3.4]
JUNOS Packet Forwarding Engine Support (T-Series) [8.3R3.4]
JUNOS Online Documentation [8.3R3.4]
JUNOS Routing Software Suite [8.3R3.4]

lcc0-re1:
--------------------------------------------------------------------------
Hostname: LCC-0-GD-SZ-XNT-MAN.RE1
Model: t640
JUNOS Base OS boot [8.3R3.4]
JUNOS Base OS Software Suite [8.3R3.4]
JUNOS Kernel Software Suite [8.3R3.4]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.3R3.4]
JUNOS Packet Forwarding Engine Support (T-Series) [8.3R3.4]
JUNOS Online Documentation [8.3R3.4]
JUNOS Routing Software Suite [8.3R3.4]



lcc1-re1:
--------------------------------------------------------------------------
Hostname: LCC-1-GD-SZ-XNT-MAN.RE1
Model: t640
JUNOS Base OS boot [8.3R3.4]
JUNOS Base OS Software Suite [8.3R3.4]
JUNOS Kernel Software Suite [8.3R3.4]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.3R3.4]
JUNOS Packet Forwarding Engine Support (T-Series) [8.3R3.4]
JUNOS Online Documentation [8.3R3.4]
JUNOS Routing Software Suite [8.3R3.4]

7  切换系统到RE1,使RE1为主用引擎,原来的主用RE0将变成备用引擎

{master}
root@XX-MAN.RE0>request chassis routing-engine master switch all-chassis

warning: Traffic will be interrupted while the PFE is re-initialized
Toggle mastership between routing engines ? [yes,no] (no) yes

lcc0-re0:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

lcc1-re0:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

scc-re0:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized

scc-re0:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

{backup}
root@XX-MAN.RE0>

8  按照升级RE1的步骤升级RE0(原来的主用引擎)
{backup}
root@XX-MAN.RE0> request system software add /var/tmp/jinstall-8.3R3.4-export-signed.tgz

cp: /var/tmp/jinstall-8.3R3.4-export-signed.tgz and /var/tmp/jinstall-8.3R3.4-export-signed.tgz are identical (not copied).
Pushing bundle to lcc0-re0
Pushing bundle to lcc1-re0

Validating on lcc0-re0
Checking compatibility with configuration
Initializing...
Using jbase-8.3R1.5
Verified manifest signed by PackageProduction_8_3_0
Using /var/tmp/jinstall-8.3R3.4-export-signed.tgz
Verified jinstall-8.3R3.4-export.tgz signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jinstall-signed/jinstall-8.3R3.4-export.tgz
Using /mfs/validate/tmp/jinstall/jbundle-8.3R3.4-export.tgz
Checking jbundle requirements on /
Using /mfs/validate/tmp/jbundle/jbase-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jkernel-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jpfe-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M10-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M120-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M160-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M320-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M40-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-M7i-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-T-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-X960-8.3R3.4.tgz
Verified SHA1 checksum of jpfe-common-8.3R3.4.tgz
Using /mfs/validate/tmp/jbundle/jdocs-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Using /mfs/validate/tmp/jbundle/jroute-8.3R3.4.tgz
Verified manifest signed by PackageProduction_8_3_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
Interface control process: [edit interfaces fxp0 unit 0 family inet]
Interface control process:
'address 192.168.0.1/24'

Interface control process:
warning: [edit system backup-router] not present. The default route for fxp0 is not installed.

Interface control process:
Interface control process: [edit groups lcc0-re0 interfaces fxp0 unit 0 family inet]
Interface control process:
'address 192.168.0.5/24'

Interface control process:
warning: [edit system backup-router] not present. The default route for fxp0 is not installed.

Interface control process:
mgd: commit complete
Validation succeeded

... ...
... ...
... ...

root@XX-MAN.RE0>

9  确认版本达到了预期的结果后,把系统切换回原来的RE0,以消除系统告警信息

{master}
root@XX-MAN.RE1>request chassis routing-engine master switch all-chassis

warning: Traffic will be interrupted while the PFE is re-initialized
Toggle mastership between routing engines ? [yes,no] (no) yes

lcc0-RE1:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

lcc1-RE1:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

scc-RE1:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized

scc-RE1:
--------------------------------------------------------------------------
warning: Traffic will be interrupted while the PFE is re-initialized
Resolving mastership...
Complete. The other routing engine becomes the master.

{backup}
root@XX-MAN.RE1>

10、执行命令察看系统的运行状态,完成升级

show chassis hardware
show chassis environment
show chassis alarms
show chassis routing-engine
show chassis fpc
show chassis sibs
show interfaces terse

TOP

好东东,这样的教程可真是不错的类。谢谢了哦 我喜欢

TOP

楼主是高手,佩服佩服!

TOP

这么少淫回贴,汗啊。。

TOP

ddddddddddddddd

TOP

这里好难下啊,怎么有足够的金钱啊

TOP

这里好难下啊,怎么有足够的金钱啊

TOP

这里好难下啊,怎么有足够的金钱啊

TOP

 12 12
发新话题