最新消息:

juniper SRX 650 HA升级(更新)

技术相关 admin 2885浏览

把设备从12.1R2.9 升级到12.1R3.5 ,从10.4版本就支持ISSU升级方式了
配置中设置了

set chassis cluster redundancy-group 1 preempt
set chassis cluster redundancy-group 2 preempt
set chassis cluster redundancy-group 3 preempt
注意
Redundancy group: 0 是不能设置 preempt的。

root@SRX650-A# set chassis cluster redundancy-group 0 preempt

{secondary:node1}[edit]
root@SRX650-A# commit
[edit chassis cluster]
  'redundancy-group'
    Cannot configure preempt for redundancy-group 0
error: configuration check-out failed

{secondary:node1}[edit]
root@SRX650-A# rollback                                         
load complete

 
仔细观察日志可以得出结论:
1.ISSU: start downloading software package on secondary node
2.ISSU: finished upgrading on secondary node node0
3.ISSU: start upgrading software package on primary node

4.ISSU: failover all redundancy-groups 1…n to primary node

升级前状态:
 
root@SRX650-A> show chassis cluster status
Cluster ID: 7
Node                  Priority          Status    Preempt  Manual failover

Redundancy group: 0 , Failover count: 1
    node0                   50          secondary      no       no 
    node1                   100         primary        no       no 

Redundancy group: 1 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

Redundancy group: 2 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

Redundancy group: 3 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

{primary:node1}
root@SRX650-A> show version
node0:
--------------------------------------------------------------------------
Hostname: SRX650-B
Model: srx650
JUNOS Software Release [12.1R2.9]

node1:
--------------------------------------------------------------------------
Hostname: SRX650-A
Model: srx650
JUNOS Software Release [12.1R2.9]

{primary:node1}

 
升级过程
 
root@SRX650-A> request system software in-service-upgrade /var/tmp/junos-srxsme-12.1R3.5-domestic.tgz no-sync
ISSU: Validating package
WARNING: in-service-upgrade shall reboot both the nodes
         in your cluster. Please ignore any subsequent
         reboot request message 
ISSU: start downloading software package on secondary node
Pushing bundle to node0
NOTICE: Validating configuration against junos-srxsme-12.1R3.5-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Formatting alternate root (/dev/ad0s1a)…
/dev/ad0s1a: 630.5MB (1291228 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 157.62MB, 10088 blks, 20224 inodes.
super-block backups (for fsck -b #) at:
 32, 322848, 645664, 968480
Extracting /var/tmp/junos-srxsme-12.1R3.5-domestic.tgz …
Checking compatibility with configuration
Initializing…
Verified manifest signed by PackageProduction_12_1_0
Verified junos-12.1R2.9-domestic signed by PackageProduction_12_1_0
Using junos-12.1R3.5-domestic from /altroot/cf/packages/install-tmp/junos-12.1R3.5-domestic
Copying package …
Verified manifest signed by PackageProduction_12_1_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
mgd: commit complete
Validation succeeded
Installing package '/altroot/cf/packages/install-tmp/junos-12.1R3.5-domestic' …
Verified junos-boot-srxsme-12.1R3.5.tgz signed by PackageProduction_12_1_0
Verified junos-srxsme-12.1R3.5-domestic signed by PackageProduction_12_1_0
JUNOS 12.1R3.5 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING:     Use the 'request system reboot' command
WARNING:         when software installation is complete
Saving state for rollback …
ISSU: finished upgrading on secondary node node0
ISSU: start upgrading software package on primary node
NOTICE: Validating configuration against junos-srxsme-12.1R3.5-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Formatting alternate root (/dev/ad0s2a)…
/dev/ad0s2a: 631.0MB (1292236 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 157.75MB, 10096 blks, 20224 inodes.
super-block backups (for fsck -b #) at:
 32, 323104, 646176, 969248
Extracting /var/tmp/junos-srxsme-12.1R3.5-domestic.tgz …
Checking compatibility with configuration
Initializing…
Verified manifest signed by PackageProduction_12_1_0
Verified junos-12.1R2.9-domestic signed by PackageProduction_12_1_0
Using junos-12.1R3.5-domestic from /altroot/cf/packages/install-tmp/junos-12.1R3.5-domestic
Copying package …
Verified manifest signed by PackageProduction_12_1_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
mgd: commit complete
Validation succeeded
Installing package '/altroot/cf/packages/install-tmp/junos-12.1R3.5-domestic' …
Verified junos-boot-srxsme-12.1R3.5.tgz signed by PackageProduction_12_1_0
Verified junos-srxsme-12.1R3.5-domestic signed by PackageProduction_12_1_0
JUNOS 12.1R3.5 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING:     Use the 'request system reboot' command
WARNING:         when software installation is complete
Saving state for rollback …
ISSU: failover all redundancy-groups 1…n to primary node
node0:
————————————————————————–
Successfully reset all redundancy-groups priority back to configured ones.
Redundancy-groups-0 will not be reset and the primaryship remains unchanged.

node1:
--------------------------------------------------------------------------
Successfully reset all redundancy-groups priority back to configured ones.
Redundancy-groups-0 will not be reset and the primaryship remains unchanged.

node1:
--------------------------------------------------------------------------
Initiated manual failover for all redundancy-groups to node1
Redundancy-groups-0 will not failover and the primaryship remains unchanged.
ISSU: rebooting Secondary Node

node0:
--------------------------------------------------------------------------
Shutdown NOW!
[pid 10155]
ISSU: Waiting for secondary node node0 to reboot.
ISSU: node 0 went down
ISSU: Waiting for node 0 to come up
ISSU: node 0 came up
ISSU: secondary node node0 booted up.
Shutdown NOW!
[pid 10931]

{primary:node1}
root@SRX650-A>                                                                               
*** FINAL System shutdown message from root@SRX650-A ***                    

System going down IMMEDIATELY                                                 

                                                                              

Message from syslogd@SRX650-A at Aug 22 01:09:45  ...
SRX650-A SRX650-A CMLC: Going disconnected; Routing engine chassis socket closed abruptly

Message from syslogd@SRX650-A at Aug 22 01:09:45  ...
SRX650-A SRX650-A PFEMAN: Shutting down , PFEMAN Resync aborted! No peer info on reconnect or master rebooted? 

 
升级后

root@SRX650-A> show chassis cluster status   
Cluster ID: 7
Node                  Priority          Status    Preempt  Manual failover

Redundancy group: 0 , Failover count: 0
    node0                   50          primary        no       no 
    node1                   100         secondary      no       no 

Redundancy group: 1 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

Redundancy group: 2 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

Redundancy group: 3 , Failover count: 1
    node0                   50          secondary      yes      no 
    node1                   100         primary        yes      no 

{secondary:node1}
root@SRX650-A> show version                  
node0:
--------------------------------------------------------------------------
Hostname: SRX650-B
Model: srx650
JUNOS Software Release [12.1R3.5]

node1:
--------------------------------------------------------------------------
Hostname: SRX650-A
Model: srx650
JUNOS Software Release [12.1R3.5]

{secondary:node1}

转载请注明:Kermit的网站 » juniper SRX 650 HA升级(更新)