WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE

When you get this banner after logging into your Juniper device

***********************************************************************
** **
** WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE **
** **
** It is possible that the primary copy of JUNOS failed to boot up **
** properly, and so this device has booted from the backup copy. **
** **
** Please re-install JUNOS to recover the primary copy in case **
** it has been corrupted. **
** **
***********************************************************************

This simply means that the switch/firewall/router booted from the backup partition. It is very likely that the file system got corrupted because of power loss.
We can verify this by using some of the show commands.

karlo@exswitch> show chassis alarms 
2 alarms currently active
Alarm time Class Description
2016-11-20 16:01:08 UTC Minor Host 0 Boot from backup root

karlo@exswitch> show system alarms 
3 alarms currently active
Alarm time Class Description
2016-11-20 16:01:08 UTC Minor Host 0 Boot from backup root

karlo@exswitch> 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 
 
karlo@exswitch> show system snapshot media internal 
fpc0:
--------------------------------------------------------------------------
Information for snapshot on internal (/dev/da0s1a) (primary)
Creation date: Jun 14 21:42:33 2013
JUNOS version on snapshot:
jbase : ex-12.1R6.5
jcrypto-ex: 12.1R6.5
jdocs-ex: 12.1R6.5
jroute-ex: 12.1R6.5
jswitch-ex: 12.1R6.5
jweb-ex: 12.1R6.5
Information for snapshot on internal (/dev/da0s2a) (backup)
Creation date: Jun 14 21:46:16 2013
JUNOS version on snapshot:
jbase : ex-12.1R6.5
jcrypto-ex: 12.1R6.5
jdocs-ex: 12.1R6.5
jroute-ex: 12.1R6.5
jswitch-ex: 12.1R6.5
jweb-ex: 12.1R6.5

{master:0}
karlo@exswitch>

To fix this, we would need to copy the Junos image from the backup partition to the primary and backup partitions.
To do so, use the command below: request system snapshot media internal slice alternate
The slice seems to be a hidden command; therefore, you would have to type it in manually.

karlo@exswitch> request system snapshot media internal slice alternate 
fpc0:
--------------------------------------------------------------------------
Formatting alternate root (/dev/da0s1a)...
Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
The following filesystems were archived: /

Verify the snapshots

karlo@exswitch> show system snapshot media internal 
fpc0:
--------------------------------------------------------------------------
Information for snapshot on internal (/dev/da0s1a) (primary)
Creation date: Dec 27 15:37:20 2016
JUNOS version on snapshot:
jbase : ex-12.1R6.5
jcrypto-ex: 12.1R6.5
jdocs-ex: 12.1R6.5
jroute-ex: 12.1R6.5
jswitch-ex: 12.1R6.5
jweb-ex: 12.1R6.5
Information for snapshot on internal (/dev/da0s2a) (backup)
Creation date: Jun 14 21:46:16 2013
JUNOS version on snapshot:
jbase : ex-12.1R6.5
jcrypto-ex: 12.1R6.5
jdocs-ex: 12.1R6.5
jroute-ex: 12.1R6.5
jswitch-ex: 12.1R6.5
jweb-ex: 12.1R6.5

Then issue the command request system reboot slice alternate media internal. This will reboot from the primary partition.

Now, if you are upgrading your Junos device, and it keeps booting from the backup, use the command request system software rollback then reboot the system. Once it rebooted, you would be able to upgrade your device.

Cheers

Advertisements

About networkshinobi

This blog is about the things I learned about computers and networking to help me to remember them as I push further my studies. I created this blog to help myself to continue my education; and if you find this blog helpful for your studies, that is great. That is one of the reasons why I made this blog, to share my interest and knowledge. Also, all the entries/posts I made are based on my views, opinion and for educational purposes only. If you see some mistakes, feel free to drop some comments. I would appreciate all the helpful comments. Thanks
This entry was posted in Juniper, layer 2, Misc., troubleshoot and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s