Ethernet Switching
Reply
Visitor
kayak23
Posts: 4
Registered: ‎03-29-2011
0

Dual root, but different JUNOS versions

All,

 

I have five EX4200 switches in a Virtual Chassis (VC) configuration running 12.1R3.5.  During a recent power outtage, one of those 5 switches did boot boot properly from it's active root partition, it booted from its backup root partition.  It turned out that the backup root partition had JUNOS 11.4 installed, so the switch did not properly rejoin the VC.

 

My question is: What steps do I need to take to make sure the active and backup root partitions have the same JUNOS version?  If they don't, how do I copy the latest JUNOS to BOTH root partitions?

 

Thank you,

RER

Trusted Expert
Trusted Expert
jtb
Posts: 312
Registered: ‎08-26-2009

Re: Dual root, but different JUNOS versions

[ Edited ]

hi,

 

to check Junos versions on both partions:

 

admin@EX> show system snapshot media internal
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Apr 25 00:48:48 2012
JUNOS version on snapshot:
  jbase  : 10.4R9.2
  jcrypto-ex: 10.4R9.2
  jdocs-ex: 10.4R9.2
  jkernel-ex: 10.4R9.2
  jroute-ex: 10.4R9.2
  jswitch-ex: 10.4R9.2
  jweb-ex: 10.4R9.2
  jpfe-ex42x: 10.4R9.2
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: May 2 15:56:11 2012
JUNOS version on snapshot:
  jbase  : ex-11.4R2.14
  jcrypto-ex: 11.4R2.14
  jdocs-ex: 11.4R2.14
  jroute-ex: 11.4R2.14
  jswitch-ex: 11.4R2.14
  jweb-ex: 11.4R2.14

 

to copy software to alternate partition & check results: boot from primary and request software snapshot:

 

admin@EX> request system snapshot slice alternate
Formatting alternate root (/dev/da0s1a)...
Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
The following filesystems were archived: /

admin@EX> show system snapshot media internal
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Nov 16 18:04:49 2012
JUNOS version on snapshot:
  jbase  : ex-11.4R2.14
  jcrypto-ex: 11.4R2.14
  jdocs-ex: 11.4R2.14
  jroute-ex: 11.4R2.14
  jswitch-ex: 11.4R2.14
  jweb-ex: 11.4R2.14
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: May 2 15:56:11 2012
JUNOS version on snapshot:
  jbase  : ex-11.4R2.14
  jcrypto-ex: 11.4R2.14
  jdocs-ex: 11.4R2.14
  jroute-ex: 11.4R2.14
  jswitch-ex: 11.4R2.14
  jweb-ex: 11.4R2.14

 

jtb

 

 

Contributor
jspanitz
Posts: 216
Registered: ‎08-02-2011
0

Re: Dual root, but different JUNOS versions

Is there a way to catch when the partitions are not the same via a SNMP OID via polling or a trap?

 

We've seen the error "WARNING: JUNOS versions running on dual partitions are not same" in the logs but tht's it.

Trusted Expert
parau@juniper.net
Posts: 262
Registered: ‎05-02-2011
0

Re: Dual root, but different JUNOS versions

Hi,

 

 

I'm not aware of any such OID, but maybe you can find something useful using this resource:

 

https://www.juniper.net/techpubs/en_US/release-independent/junos/mibs/mibs.html

 

However, you can use event policy to match on that specific string and generate an action afterwards.

Contributor
jspanitz
Posts: 216
Registered: ‎08-02-2011
0

Re: Dual root, but different JUNOS versions

Can you point me to a good resource on event policies or provide an example?  Not much experience with JUNOS here.

Trusted Contributor
Flannigan
Posts: 79
Registered: ‎12-16-2011
0

Re: Dual root, but different JUNOS versions

[ Edited ]

To add to what jtb mentioned, you can snapshot to all members in a virtual chassis by running request system snapshot slice alternate all-members.  That way you can ensure all members in a chassis have a consistent version of Junos.

 

More details can be found at http://www.juniper.net/techpubs/en_US/junos/topics/task/installation/ex-series-software-upgrading-ns....

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.