Junos OS

Expand all | Collapse all

Re reboot reason.

Jump to Best Answer
  • 1.  Re reboot reason.

     
    Posted 06-26-2019 07:29
    Hi Everyone,
     
    Can someone help me understand difference between the below outputs, where in RE has switched over and below bit is set for hw.re.reboot_on_disk_failure which is seen from systl out.  I wanted to know if number 2 is set when there is disk failure or does it signifies something else?
     
     
    Output 1:
     
    hw.re.reboot_on_diskfail: 0
    hw.re.dualroot.booted_from:


    Output:2
     
    hw.re.reboot_on_diskfail: 2
    hw.re.booted_up: 1
     


  • 2.  RE: Re reboot reason.
    Best Answer

     
    Posted 06-26-2019 08:21

    Hi Nadeem,

     

    The "hw.re.reboot_on_disk_failure" sysctl variable holds the information from the configuration. Based on the following configuration, the sysctl value will change - 

     

    set chassis routing-engine on-disk-failure disk-failure-action ? 
    Possible completions:
    halt Halt on disk failure
    reboot Reboot on disk failure

     

     

    When you have no configuration in this hierarchy,  hw.re.reboot_on_disk_failure = 0.

    When you configure "set chassis routing-engine on-disk-failure disk-failure-action reboot", hw.re.reboot_on_disk_failure = 1.

    When you configure "set chassis routing-engine on-disk-failure disk-failure-action halt", hw.re.reboot_on_disk_failure = 2.

     

    I just tested this on my lab device. You can check as well.

     

    -================================================

    Please mark this solution as accepted.

    Kudos are always appreciated 🙂



  • 3.  RE: Re reboot reason.

     
    Posted 06-26-2019 10:02
    I checked in the lab and it clears my doubt.


  • 4.  RE: Re reboot reason.

     
    Posted 06-26-2019 10:13

    Thanks for checking, please accept the comment as the solution to benefit others.