Ethernet Switching
Ethernet Switching

Dual root, but different JUNOS versions

12.12.12   |  
‎12-12-2012 09:53 AM

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

5 REPLIES
Ethernet Switching

Re: Dual root, but different JUNOS versions

[ Edited ]
12.13.12   |  
‎12-13-2012 06:09 AM

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

 

 

Ethernet Switching

Re: Dual root, but different JUNOS versions

03.11.13   |  
‎03-11-2013 01:31 PM

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.

Ethernet Switching

Re: Dual root, but different JUNOS versions

03.12.13   |  
‎03-12-2013 05:15 AM

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.

Ethernet Switching

Re: Dual root, but different JUNOS versions

03.16.13   |  
‎03-16-2013 11:10 PM

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

Ethernet Switching

Re: Dual root, but different JUNOS versions

[ Edited ]
03.24.13   |  
‎03-24-2013 08:47 PM

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....