Re: Automatic reboot on kernel panic
On 2011-06-23, Raimo Niskanen wrote: > On Thu, Jun 23, 2011 at 12:32:40AM +0200, ter Voorde Informatiesystemen wrote: >> You are completely right. >> >> I was only wondering if I do not set the variable explicitly, the >> default value would be 0 or 1. > > Ok, that I can not find from the documentation, > only that setting it to 0 most probably is a change. > > The default is: > # uname -a > OpenBSD localhost.localdomain 4.9 GENERIC.MP#47 i386 > # sysctl ddb.panic > ddb.panic=1 > > It is very easy to check, if you have an installation... The general scheme in sysctl.conf is that the commented-out entries are non-default values which somebody might want to uncomment to use them.
Re: Automatic reboot on kernel panic
On Thu, 23 Jun 2011 11:27:09 +0200 Raimo Niskanen wrote: > Ok, that I can not find from the documentation, > only that setting it to 0 most probably is a change. I believe the defaults are conveniently listed in the comments next to the settings in sysctl.conf. I don't see why they'd change occasionally otherwise.
Re: Automatic reboot on kernel panic
On Thu, Jun 23, 2011 at 12:32:40AM +0200, ter Voorde Informatiesystemen wrote: > You are completely right. > > I was only wondering if I do not set the variable explicitly, the > default value would be 0 or 1. Ok, that I can not find from the documentation, only that setting it to 0 most probably is a change. The default is: # uname -a OpenBSD localhost.localdomain 4.9 GENERIC.MP#47 i386 # sysctl ddb.panic ddb.panic=1 It is very easy to check, if you have an installation... / Raimo > > Kind regards, > > Frank > > On 06/22/11 17:12, Raimo Niskanen wrote: > >On Wed, Jun 22, 2011 at 11:45:49AM -0300, Marcos Laufer wrote: > >>I am sorry, this confused me, and i didn't quite understand. > >> > >>Just to be clear: > >> > >>ddb.panic=0 will boot instead of dropping you into a ddb? > >> > >>Or is it ddb.panic=1 the option that will make the system boot? > >Please... are we not a wee bit lazy now... man sysctl.conf: > > > >EXAMPLES > > To turn on IP forwarding, one would use the following line: > > > >net.inet.ip.forwarding=1 > > > > To cause the kernel to reboot on a panic, instead of dropping into > > the > > debugger, the following can be used: > > > >ddb.panic=0 > > > >> > >>Regards, > >> > >>David Coppa wrote: > >>>On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: > >>> > >>> > In /etc/sysctl.conf I see the following commented line: > > #ddb.panic=0 > > and nothing else about ddb.panic is present there. With other words, > I guess: 'ddb.panic=0' is the default boot time setting and does not > have to be set explicitly. > > I now suppose: on a kernel panic, this system will not drop into ddb > (kind-of waiting for someone to retrieve useful information about > the panic) and is most likely to reboot. Is that correct? > > >>>Exactly the opposite: > >>> > >>>$ sysctl ddb.panic > >>>ddb.panic=1 > >>> > >>>You need to uncomment that line in /etc/sysctl.conf. > >>> > >>>Cheers, > >>>David -- / Raimo Niskanen, Erlang/OTP, Ericsson AB
Re: Automatic reboot on kernel panic
On 2011 Jun 23 (Thu) at 00:32:40 +0200 (+0200), ter Voorde Informatiesystemen wrote: :You are completely right. : :I was only wondering if I do not set the variable explicitly, the :default value would be 0 or 1. : :Kind regards, : :Frank : For some sysctls, the default is 0, for others, the default is 1. You'll need to run it to see. `sysctl ddb.panic` -- Electrocution, n.: Burning at the stake with all the modern improvements.
Re: Automatic reboot on kernel panic
You are completely right. I was only wondering if I do not set the variable explicitly, the default value would be 0 or 1. Kind regards, Frank On 06/22/11 17:12, Raimo Niskanen wrote: On Wed, Jun 22, 2011 at 11:45:49AM -0300, Marcos Laufer wrote: I am sorry, this confused me, and i didn't quite understand. Just to be clear: ddb.panic=0 will boot instead of dropping you into a ddb? Or is it ddb.panic=1 the option that will make the system boot? Please... are we not a wee bit lazy now... man sysctl.conf: EXAMPLES To turn on IP forwarding, one would use the following line: net.inet.ip.forwarding=1 To cause the kernel to reboot on a panic, instead of dropping into the debugger, the following can be used: ddb.panic=0 Regards, David Coppa wrote: On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: In /etc/sysctl.conf I see the following commented line: #ddb.panic=0 and nothing else about ddb.panic is present there. With other words, I guess: 'ddb.panic=0' is the default boot time setting and does not have to be set explicitly. I now suppose: on a kernel panic, this system will not drop into ddb (kind-of waiting for someone to retrieve useful information about the panic) and is most likely to reboot. Is that correct? Exactly the opposite: $ sysctl ddb.panic ddb.panic=1 You need to uncomment that line in /etc/sysctl.conf. Cheers, David
Re: Automatic reboot on kernel panic
On Wed, 22 Jun 2011 18:11:36 +0300 Gregory Edigarov wrote: > On Wed, 22 Jun 2011 11:45:49 -0300 > Marcos Laufer wrote: > > > ddb.panic=0 will boot instead of dropping you into a ddb? > greg@greg:~$ banner YES > # # ### # > # # # # # > # # # # >### >## # >## # # >#### # > That's how the man pages should be written.
Re: Automatic reboot on kernel panic
On Wed, Jun 22, 2011 at 11:45:49AM -0300, Marcos Laufer wrote: > I am sorry, this confused me, and i didn't quite understand. > > Just to be clear: > > ddb.panic=0 will boot instead of dropping you into a ddb? > > Or is it ddb.panic=1 the option that will make the system boot? Please... are we not a wee bit lazy now... man sysctl.conf: EXAMPLES To turn on IP forwarding, one would use the following line: net.inet.ip.forwarding=1 To cause the kernel to reboot on a panic, instead of dropping into the debugger, the following can be used: ddb.panic=0 > > > Regards, > > David Coppa wrote: > > On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: > > > > > >> In /etc/sysctl.conf I see the following commented line: > >> > >> #ddb.panic=0 > >> > >> and nothing else about ddb.panic is present there. With other words, > >> I guess: 'ddb.panic=0' is the default boot time setting and does not > >> have to be set explicitly. > >> > >> I now suppose: on a kernel panic, this system will not drop into ddb > >> (kind-of waiting for someone to retrieve useful information about > >> the panic) and is most likely to reboot. Is that correct? > >> > > > > Exactly the opposite: > > > > $ sysctl ddb.panic > > ddb.panic=1 > > > > You need to uncomment that line in /etc/sysctl.conf. > > > > Cheers, > > David -- / Raimo Niskanen, Erlang/OTP, Ericsson AB
Re: Automatic reboot on kernel panic
On Wed, 22 Jun 2011 11:45:49 -0300 Marcos Laufer wrote: > ddb.panic=0 will boot instead of dropping you into a ddb? greg@greg:~$ banner YES # # ### # # # # # # # # # # ### ## # ## # # #### #
Re: Automatic reboot on kernel panic
I am sorry, this confused me, and i didn't quite understand. Just to be clear: ddb.panic=0 will boot instead of dropping you into a ddb? Or is it ddb.panic=1 the option that will make the system boot? Regards, David Coppa wrote: > On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: > > >> In /etc/sysctl.conf I see the following commented line: >> >> #ddb.panic=0 >> >> and nothing else about ddb.panic is present there. With other words, >> I guess: 'ddb.panic=0' is the default boot time setting and does not >> have to be set explicitly. >> >> I now suppose: on a kernel panic, this system will not drop into ddb >> (kind-of waiting for someone to retrieve useful information about >> the panic) and is most likely to reboot. Is that correct? >> > > Exactly the opposite: > > $ sysctl ddb.panic > ddb.panic=1 > > You need to uncomment that line in /etc/sysctl.conf. > > Cheers, > David
Re: Automatic reboot on kernel panic
Sir Coppa, That's why I apologized... Forgetting the possibility of reading out the value of ddb.panic. Kind of stupid for a person (me) doing 'sysctl hw.sensors' 10 times a week. But that's off topic. It is set now and returns 0. That machine will me moved 30 kilometers away and must stay up for a month or two. I think 'ddb.panic=0' is the right thing to set on that machine. Thanks to you, Sir Coppa, and also to Sir Edigarov who replied also, Kind regards, Frank ter Voorde On 06/22/11 15:21, David Coppa wrote: On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: In /etc/sysctl.conf I see the following commented line: #ddb.panic=0 and nothing else about ddb.panic is present there. With other words, I guess: 'ddb.panic=0' is the default boot time setting and does not have to be set explicitly. I now suppose: on a kernel panic, this system will not drop into ddb (kind-of waiting for someone to retrieve useful information about the panic) and is most likely to reboot. Is that correct? Exactly the opposite: $ sysctl ddb.panic ddb.panic=1 You need to uncomment that line in /etc/sysctl.conf. Cheers, David
Re: Automatic reboot on kernel panic
On Wed, 22 Jun 2011 15:12:30 +0200 ter Voorde Informatiesystemen wrote: > Hi there, > > At first, I would like to apologize for the possibility that this > e-mail message might fatigue you, but I just want to be sure. > > I would like to know if my machine automatically reboots at a kernel > panic (if it's not failing too much because of malfunctioning > hardware, etc., ofcourse) by default, or if it will not. > > The machine is an i386 running OpenBSD 4.9 GENERIC.MP#794 and had a > default cd install with no additional manual compile options set. It > only has two users and sshd configured, so I didn't touch anything > else. Pretty default. > > In /etc/sysctl.conf I see the following commented line: > > #ddb.panic=0 > > and nothing else about ddb.panic is present there. With other words, > I guess: 'ddb.panic=0' is the default boot time setting and does not > have to be set explicitly. you have wrong guess, go do # sysctl ddb.panic > I now suppose: on a kernel panic, this system will not drop into ddb > (kind-of waiting for someone to retrieve useful information about the > panic) and is most likely to reboot. Is that correct? wrong. by default it _WILL_ drop into ddb > > Kind regards, > > Frank ter Voorde
Re: Automatic reboot on kernel panic
On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: > In /etc/sysctl.conf I see the following commented line: > > #ddb.panic=0 > > and nothing else about ddb.panic is present there. With other words, > I guess: 'ddb.panic=0' is the default boot time setting and does not > have to be set explicitly. > > I now suppose: on a kernel panic, this system will not drop into ddb > (kind-of waiting for someone to retrieve useful information about > the panic) and is most likely to reboot. Is that correct? Exactly the opposite: $ sysctl ddb.panic ddb.panic=1 You need to uncomment that line in /etc/sysctl.conf. Cheers, David
Automatic reboot on kernel panic
Hi there, At first, I would like to apologize for the possibility that this e-mail message might fatigue you, but I just want to be sure. I would like to know if my machine automatically reboots at a kernel panic (if it's not failing too much because of malfunctioning hardware, etc., ofcourse) by default, or if it will not. The machine is an i386 running OpenBSD 4.9 GENERIC.MP#794 and had a default cd install with no additional manual compile options set. It only has two users and sshd configured, so I didn't touch anything else. Pretty default. In /etc/sysctl.conf I see the following commented line: #ddb.panic=0 and nothing else about ddb.panic is present there. With other words, I guess: 'ddb.panic=0' is the default boot time setting and does not have to be set explicitly. I now suppose: on a kernel panic, this system will not drop into ddb (kind-of waiting for someone to retrieve useful information about the panic) and is most likely to reboot. Is that correct? Kind regards, Frank ter Voorde