From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 17 16:34:27 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2ED559B1; Thu, 17 Jan 2013 16:34:27 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by mx1.freebsd.org (Postfix) with ESMTP id D368BD8C; Thu, 17 Jan 2013 16:34:26 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id qd14so5061884ieb.34 for ; Thu, 17 Jan 2013 08:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=akRhOIVkjx+KQZgLSmJa9SoH7ttHC3E485UFLayv41M=; b=b1+dDdQMRnUfphmQMTCEoX4Flk94OXXtF32VTzCA4qBKOhhQFx+dZ2uNT/EQ8eLU67 Dz6CdxCwhDRVldeU5SppeBiQxYg2/jisCbcl32xbpZIeUyfZFnWNGYyc3GWFWZUV8viU JXmpYj9UGha0HDkV0YpuAtLBqAt0ORhDrqisT+/g5NIqo1Wf/Xg6gpmLlKrdnner2e4T FJBpy55CtawNmYXpypTQwZ1Uh4fOwQ5+TmHVaEeCjdRsBkSrHiUmbLp3Tc2P/eWDfr1S y13IeCeK3mtIwtiUOzFD3ERyIlGtAJhDHD4SmR1byM4vnl5Xg7Q24QKd+2f/qQsTtbPd sCrw== X-Received: by 10.50.222.228 with SMTP id qp4mr4323865igc.87.1358440460248; Thu, 17 Jan 2013 08:34:20 -0800 (PST) Received: from raichu ([66.11.160.25]) by mx.google.com with ESMTPS id as6sm7178132igc.8.2013.01.17.08.34.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Jan 2013 08:34:19 -0800 (PST) Date: Thu, 17 Jan 2013 11:34:07 -0500 From: Mark Johnston To: Sami Halabi Subject: Re: Failsafe on kernel panic Message-ID: <20130117163407.GA1940@raichu> References: <201301161513.27016.jhb@freebsd.org> <1358392725.32417.179.camel@revolution.hippie.lan> <1358429728.32417.193.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org, Ian Lepore X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 16:34:27 -0000 On Thu, Jan 17, 2013 at 04:14:21PM +0200, Sami Halabi wrote: > Hi, > Upon panic no auto restart occurs. > How do I know/activate these watchdogs? > Sami You can try starting watchdogd with 'service watchdogd onestart', and have it automatically start during boot by adding 'watchdogd_enable="YES"' to rc.conf. You can test by starting watchdogd and sending SIGKILL to it - if everything's working properly, the system should reboot after the timeout period (16s by default). If you don't have a hardware watchdog (or have one that isn't supported by any drivers), watchdogd will fail to start. -Mark > בתאריך 17 בינו 2013 15:35, מאת "Ian Lepore" : > > > On Thu, 2013-01-17 at 08:38 +0200, Sami Halabi wrote: > > > btw: i don't see any options in my kernel config for KBD / Unatteneded , > > th > > > eonly thing that mention its > > > is: device ukbd > > > > > > Sami > > > > I think if you don't have any kdb options turned on, then a panic should > > automatically store a crashdump to swap, then reboot the machine. If > > that's not working, perhaps it locks up trying to store the dump? > > > > If the hardware has a watchdog timer, enabling that might be the best > > way to ensure a reboot on any kind of crash or hang. > > > > -- Ian > > > > > > > On Thu, Jan 17, 2013 at 6:45 AM, Sami Halabi wrote: > > > > > > > Its only a kernel option? There is no flag to pass to the loader? > > > > > > > > SAMI > > <> 17 2013 05:18, "Ian Lepore" : > > > > > > > > On Wed, 2013-01-16 at 23:27 +0200, Sami Halabi wrote: > > > >> > Thank you for your response, very helpful. > > > >> > one question - how do i configure auto-reboot once kernel panic > > occurs? > > > >> > > > > >> > Sami > > > >> > > > > >> > > > >> From src/sys/conf/NOTES, this may be what you're looking for... > > > >> > > > >> # > > > >> # Don't enter the debugger for a panic. Intended for unattended > > operation > > > >> # where you may want to enter the debugger from the console, but still > > > >> want > > > >> # the machine to recover from a panic. > > > >> # > > > >> options KDB_UNATTENDED > > > >> > > > >> But I think it only has meaning if you have option KDB in effect, > > > >> otherwise it should just reboot itself after a 15 second pause. > > > >> > > > >> -- Ian > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > > >> > On Wed, Jan 16, 2013 at 10:13 PM, John Baldwin > > wrote: > > > >> > > > > >> > > On Wednesday, January 16, 2013 2:25:33 pm Sami Halabi wrote: > > > >> > > > Hi everyone, > > > >> > > > I have a production box, in which I want to install new kernel > > > >> without > > > >> > > any > > > >> > > > remotd kvn. > > > >> > > > my problem is its 2 hours away, and if a kernel panic occurs I > > got a > > > >> > > > problem. > > > >> > > > I woner if I can seg failsafe script to load the old kernel in > > case > > > >> of > > > >> > > > psnic. > > > >> > > > > > >> > > man nextboot (if you are using UFS) > > > >> > > > > > >> > > -- > > > >> > > John Baldwin > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > >> > > > >> > > > > > > > > > -- > > > Sami Halabi > > > Information Systems Engineer > > > NMS Projects Expert > > > FreeBSD SysAdmin Expert > > > _______________________________________________ > > > freebsd-hackers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > To unsubscribe, send any mail to " > > freebsd-hackers-unsubscribe@freebsd.org" > > > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"