SRX Services Gateway
SRX Services Gateway

Manually Boot SRX From Backup Slice

‎08-06-2019 09:06 AM

I have an SRX100 that I am trying to boot form the backup partition/slice.  I do NOT have this CLI command available:

request system reboot slice alternate media internal

I have tried setting boot.current to 'alternate' and 'backup' using uboot and the loader but ths has not had an affect.  My searches have not shown anything beyond changing that variable, which doesn't seem to work.  Is there any reference out there on how to do this?

 

6 REPLIES 6
SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

‎08-06-2019 10:43 AM

Hi B2,

 

It is not possible to boot Junos from backup partition.

 

The backup partition is a recovery partition. So, if the primary root partition becomes corrupted, the system can still boot from the backup Junos OS image located in the other root partition and remain fully functional. For more information, please refer to the following technical documentation - https://www.juniper.net/documentation/en_US/junos/topics/concept/switch-resilient-dual-root-partitio...

 

May I know the reason why you would like to boot Junos from backup partition?



Thanks,
π00bm@$t€®.
Please, Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

[ Edited ]
‎08-06-2019 02:18 PM

Hi B2,

 

If the commands from loader and uboot are not working, then the only way I think you could do that is by unplugging the SRX. Upon an unexpectedly power outage, the branch SRXs usually bootup from the secondary partition because they primary partition gets corrupted. I am wondering why you are looking to bootup the SRX from the backup partition though.

 

Hope this helps you.

 

Please mark this comment as the Solution if applicable
SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

‎08-06-2019 02:20 PM

And btw, you will have to recover the primary partition later:

 

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB20554&cat=SRX_100&actp=LIST

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB25758&cat=SRX_650&actp=LIST

 

Please mark this comment as the Solution if applicable
SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

‎08-13-2019 09:47 AM

Thanks for the replies.  I was wanting to boot up from the backup partition because I had performed a software upgrade, and though I could boot into the upgraded partition, it was not operating correctly, there were error messages sent to the console and it would hang for long periods of time.  As the original software was on the backup partition I wanted to boot to that.  The issue did end up getting resolved, as the new software started working properly for some reason.

SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

‎08-13-2019 10:27 AM

Hi B2,

 

Well, I'm glad everything works as expected Smiley Happy

 

However, I would suggest you take a snapshot of the SRX in USB flash drive, so that if you run into an issue next time it will be easier to recover.

 

Cheers!!!



Thanks,
π00bm@$t€®.
Please, Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
SRX Services Gateway

Re: Manually Boot SRX From Backup Slice

‎08-13-2019 11:36 AM

B2,

 

Now that everything is working fine you could copy the OS in the primary partition to the secondary one. This way if the SRX boots from the backup partition in the future, you wont have any problems introduced by the use of an old/different Junos OS:

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB20554&cat=SRX_100&actp=LIST

 

Please mark this comment as the Solution if applicable