From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 17 14:14:22 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6B1E3FD0; Thu, 17 Jan 2013 14:14:22 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-ia0-x232.google.com (ia-in-x0232.1e100.net [IPv6:2607:f8b0:4001:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id 3058B118; Thu, 17 Jan 2013 14:14:22 +0000 (UTC) Received: by mail-ia0-f178.google.com with SMTP id y26so432977iab.23 for ; Thu, 17 Jan 2013 06:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=CQSYH6ODj4eotZZNPKqtLpHJJJPup32kuHnY8QKUflk=; b=bhxQ+Cqkt955zDY3G5BybRP+fqCe41msO2L0HKqTRHVzTNseQgUsGZVSi8jdlq5xfp jR1rhjDZQUE9Ps/tiZ7G2UpVh2nTjpbnY8+HFLJkDrNNlrRbutdwRvU0z1CyxNnhZW2F u+GEx14HJxh0qh8yN0v+FVR3rkJL4LRG71srUNVuf0tl7AGjv1Z2gZX332uWiq+lNqZB Yc/faG0TVuyhkD869GVp01uD8peqD0F7Gf+ON8/FAlDfJqsK/HemFE7OJ0fXLNxrZkyH H3O1jUYLgoxemSYY03fkWHSkG746/BjCZ0ZqIW+Xc2IUxF2tViV4He4SfoxT2htY+jhf 5LZQ== MIME-Version: 1.0 X-Received: by 10.50.222.226 with SMTP id qp2mr3904780igc.103.1358432061763; Thu, 17 Jan 2013 06:14:21 -0800 (PST) Received: by 10.64.51.98 with HTTP; Thu, 17 Jan 2013 06:14:21 -0800 (PST) Received: by 10.64.51.98 with HTTP; Thu, 17 Jan 2013 06:14:21 -0800 (PST) In-Reply-To: <1358429728.32417.193.camel@revolution.hippie.lan> References: <201301161513.27016.jhb@freebsd.org> <1358392725.32417.179.camel@revolution.hippie.lan> <1358429728.32417.193.camel@revolution.hippie.lan> Date: Thu, 17 Jan 2013 16:14:21 +0200 Message-ID: Subject: Re: Failsafe on kernel panic From: Sami Halabi To: Ian Lepore Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-hackers@freebsd.org 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 14:14:22 -0000 Hi, Upon panic no auto restart occurs. How do I know/activate these watchdogs? Sami =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A 17 =D7=91=D7=99=D7=A0=D7=95 2013 15:35= , =D7=9E=D7=90=D7=AA "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 sti= ll > > >> 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" > > >