Ethernet Switching
Highlighted
Ethernet Switching

EX2200 Host 0 Boot from backup root

‎10-30-2015 07:10 AM

I saw the following message on one of our switches so I ran the following commands:

 

request system snapshot media internal slice alternate

 

request system reboot slice alternate media internal

 

to fix the primary partition and test booting from it.  However, the switch is still booting from the backup partition after it reboots. 

 

Here is the output from show system storage partitions:

 

fpc0:
--------------------------------------------------------------------------
Boot Media: internal (da0)
Active Partition: da0s1a
Backup Partition: da0s2a
Currently booted from: backup (da0s2a)

Partitions information:
  Partition  Size   Mountpoint
  s1a        183M   altroot
  s2a        184M   /
  s3d        369M   /var/tmp
  s3e        123M   /var
  s4d        62M    /config

 

and the output from show system snapshot media internal:

 

fpc0:
--------------------------------------------------------------------------
Information for snapshot on       internal (/dev/da0s1a) (primary)
Creation date: Mar 14 03:13:03 2014
JUNOS version on snapshot:
  jbase  : ex-12.3R6.6
  jkernel-ex-2200: 12.3R6.6
  jweb-ex: 12.3R6.6
  jcrypto-ex: 12.3R6.6
  jdocs-ex: 12.3R6.6
  jswitch-ex: 12.3R6.6
  jpfe-ex22x: 12.3R6.6
  jroute-ex: 12.3R6.6
  fips-mode-arm: 12.3R6.6
Information for snapshot on       internal (/dev/da0s2a) (backup)
Creation date: Mar 13 09:35:06 2014
JUNOS version on snapshot:
  jbase  : ex-12.3R6.6
  jkernel-ex-2200: 12.3R6.6
  jweb-ex: 12.3R6.6
  jcrypto-ex: 12.3R6.6
  jdocs-ex: 12.3R6.6
  jswitch-ex: 12.3R6.6
  jpfe-ex22x: 12.3R6.6
  jroute-ex: 12.3R6.6
  fips-mode-arm: 12.3R6.6

 

Thanks in advance for any help.

9 REPLIES 9
Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

[ Edited ]
‎11-08-2015 03:38 AM

Hi,

First command :

request system snapshot media internal slice ?

Second command :

request system reboot slice ?

https://www.juniper.net/documentation/en_US/junos13.2/topics/reference/command-summary/request-syste...

 

http://www.juniper.net/techpubs/en_US/junos15.1/topics/reference/command-summary/request-system-snap...

 

 And use KB23180 for any further information

Regards,
A'bed AL-R.
[JNCSP-SEC JNCDA JNCIS-ENT Ingenious Champion|Sec]
https://srxtech.wordpress.com
Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

[ Edited ]
‎09-29-2016 12:52 AM

Hi!

 

Have you managed to solve this issue? I'm having exactly  the same issue, but with ex3300-48t switch and the same 12.3R6.6 junos.

 

I followed all the manuals on juniper site considering this issue, but no help. Rebooted 3 times already, still boots from backup. 

 

The commands showd in previous messages not working with ex switches:

 

 

 request system snapshot media internal slice 1
                                                                   ^
syntax error, expecting <data>.

 

Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

‎09-29-2016 06:19 AM

Hi,

 

what version junos that u use? U just need to configure "set system auto-snapshot" . Then it will do automotaically.

 

 

 

Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

‎09-29-2016 12:10 PM

The version is, as I've stated above 12.3R6.6

Why should I care about auto snapshot, if even manual snapshot is not working? It does not matter, how many times I do snapshot to alternate slice, I end up with switch booting from backup partition... What do I do to solve it?

Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

‎09-30-2016 02:51 PM

anyone?

Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

[ Edited ]
‎10-01-2016 01:00 PM

Hi romeo.r,

 

Use the alternate statement instead of '1' statement .

request system snapshot media internal slice alternate
request system reboot slice alternate media internal

If still does not work , please show me the output of :

request system snapshot media internal slice ?

Use KB23180 for further information

 

And can you share us the ourput of :

 

show system snapshot media internal
show system snapshot media internal slice 1
show system snapshot media internal slice 2

Please be aware that if your switch is part of virtual chassis you can use :

request system snapshot media internal slice alternate member member-id

 

 

Regards,
A'bed AL-R.
[JNCSP-SEC JNCDA JNCIS-ENT Ingenious Champion|Sec]
https://srxtech.wordpress.com
Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

[ Edited ]
‎10-03-2016 04:59 AM

Hi,

 

thanks for reply.

 

After I do (and I did multiple times already Smiley Sad ) this:

 

request system snapshot media internal slice alternate
request system reboot slice alternate media internal

Switch reboots from backup partition anyway Smiley Sad. Thats is my problem.

 

roman@bb-a4f-10g-sw1> show system snapshot media internal
fpc0:
--------------------------------------------------------------------------
Information for snapshot on internal (/dev/da0s1a) (backup)
Creation date: Mar 13 11:44:32 2014
JUNOS version on snapshot:
jbase : ex-12.3R6.6
jkernel-ex-3300: 12.3R6.6
jcrypto-ex: 12.3R6.6
jweb-ex: 12.3R6.6
jdocs-ex: 12.3R6.6
jswitch-ex: 12.3R6.6
jpfe-ex33x: 12.3R6.6
jroute-ex: 12.3R6.6
fips-mode-arm: 12.3R6.6
Information for snapshot on internal (/dev/da0s2a) (primary)
Creation date: Sep 7 18:08:19 2016
JUNOS version on snapshot:
jbase : ex-12.3R6.6
jkernel-ex-3300: 12.3R6.6
jcrypto-ex: 12.3R6.6
jweb-ex: 12.3R6.6
jdocs-ex: 12.3R6.6
jswitch-ex: 12.3R6.6
jpfe-ex33x: 12.3R6.6
jroute-ex: 12.3R6.6
fips-mode-arm: 12.3R6.6

 

 

roman@bb-a4f-10g-sw1> show system snapshot media internal slice 1
error: command is not valid on the ex3300-48t
roman@bb-a4f-10g-sw1> show system storage partitions
fpc0:
--------------------------------------------------------------------------
Boot Media: internal (da0)
Active Partition: da0s2a
Backup Partition: da0s1a
Currently booted from: backup (da0s1a)

Partitions information:
  Partition  Size   Mountpoint
  s1a        183M   /
  s2a        184M   altroot
  s3d        369M   /var/tmp
  s3e        123M   /var
  s4d        62M    /config

 

Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

[ Edited ]
‎10-07-2016 12:10 PM

Alright Smiley Happy
Lets try another way to solve this problem .
Lets try installing a new image using the CLI or J-Web. The newly installed image will become the primary image, and the device will boot from it on the next reboot.

And to ensure that the resilient dual-root partitions feature operates correctly, execute the following command to copy the new Junos OS image into the alternate root partition:

user@switch> request system snapshot slice alternate

http://www.juniper.net/techpubs/en_US/junos16.1/topics/task/installation/ex-series-software-installi...

Please update me if that help !

Regards,
A'bed AL-R.
[JNCSP-SEC JNCDA JNCIS-ENT Ingenious Champion|Sec]
https://srxtech.wordpress.com
Highlighted
Ethernet Switching

Re: EX2200 Host 0 Boot from backup root

‎10-16-2016 11:24 PM

Hi,

 

Thanks for an option. I'll try this one during next maintenance period. I will install JTAC recommended software version - Junos 12.3R12