Switching

Expand all | Collapse all

Help changing bootup partition - unable to revert to primary partition

Jump to Best Answer
  • 1.  Help changing bootup partition - unable to revert to primary partition

    Posted 06-01-2021 12:59
      |   view attached
    Hi Community;

    I'm new to JUNOS and learning my way on an EX3300 with 12.3R12.4.   I've noticed my switch always boots from the backup partition, there are no alerts to indicate primary partition corruption and  I've done the snapshot repeatedly and tried to reboot from the alternate slice, but it always just boots off the backup slice. 

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

    root@EX3300> request system reboot media internal slice alternate
    Reboot the system ? [yes,no] (no) yes
    *** System shutdown message from root@EX3300 ***

    --> after reboot I log back in and check which partition i'm running on...

    root@EX3300>  show system storage partitions
    fpc0:
    --------------------------------------------------------------------------
    Boot Media: internal (da0)
    Active Partition: da0s2a
    Backup Partition: da0s1a
    Currently booted from: backup (da0s1a)

    I've turned auto-snapshot on just to get rid of the minor alert but it seems to not be able to get the switch to boot onto the primary partition either.  Any thoughts on why this is occurring or how to resolve?   using 12.3R12.4  Thanks.

    Attachment(s)

    txt
    ex3300_cli_log.txt   3 KB 1 version


  • 2.  RE: Help changing bootup partition - unable to revert to primary partition

     
    Posted 06-01-2021 13:03
    Hello Arie,

    Have you tried this command?

    request system reboot slice alternate media internal

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB23180

    Regards,

    Randall


  • 3.  RE: Help changing bootup partition - unable to revert to primary partition

    Posted 06-01-2021 13:54
    thanks for the reply, 
    yes I tried both permutations of "request system reboot media internal slice alternate" and "request system reboot slice alternate media internal" I found that Junos12 allows for varying syntax order which is neat, unfortunately neither of these commands have been effective and booting up on the primary yet. 

    ------------------------------
    ~Arie
    ------------------------------



  • 4.  RE: Help changing bootup partition - unable to revert to primary partition

     
    Posted 06-02-2021 08:33
    Hello Arie,

    I would suggest to format install.  There's not other workarounds to fix the corruption on the primary partition.

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB20643

    Regards,

    Randall


  • 5.  RE: Help changing bootup partition - unable to revert to primary partition

    Posted 06-02-2021 17:39
    thanks Randall for the suggestion, format and re-install worked to get the switch back to booting on the primary partition, then just to test I ran:
    request system reboot slice alternate media internal
    and when it rebooted it was on the backup partition, then I ran 
    request system reboot slice alternate media internal
    again and its booted back up in the backup partition and nothing I do will return it to the primary partition again.
    Does anyone else have this problem?  does the switch not have the capability of returning to the active partition once its been booted off the backup?  This is not a corruption issue as its a fresh install and the above 2 reboot commands are the only reboots that have occurred since installation.

    ------------------------------
    ~Arie
    ------------------------------



  • 6.  RE: Help changing bootup partition - unable to revert to primary partition
    Best Answer

    Posted 06-02-2021 17:59
    Try this command request system reboot slice alternate media internal in 0 ,  you  may need 2 reboots to move it back to primary

    ------------------------------
    ANKUR
    ------------------------------



  • 7.  RE: Help changing bootup partition - unable to revert to primary partition

    Posted 06-02-2021 18:45
    This worked! Thank you - my understanding is adding the "in 0" only eliminates the shutdown delay - why on earth would this suddenly do the trick to solve my problem, that makes no sense since the shutdown delay should not have any baring on the effectiveness of this command, and yet I tested it 3 times in a row and it toggles the partitions perfectly and if I omit "in 0" then it only toggles to the backup and not back to primary until I add "in 0".  This is strange!

    ------------------------------
    ~Arie
    ------------------------------



  • 8.  RE: Help changing bootup partition - unable to revert to primary partition

    Posted 06-02-2021 19:34
    As a normal procedure the device will boot from the partition with  the last-known-good copy of the OS . It must be forced to use the primary partition adding 0  creates that scenario  of sudden shutdown forcing it to  change states.

    ------------------------------
    ANKUR
    ------------------------------