From owner-freebsd-stable@FreeBSD.ORG Fri Apr 1 15:47:34 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDDB91065673 for ; Fri, 1 Apr 2011 15:47:34 +0000 (UTC) (envelope-from sec@42.org) Received: from ice.42.org (v6.42.org [IPv6:2001:608:9::1]) by mx1.freebsd.org (Postfix) with ESMTP id 73AC48FC1B for ; Fri, 1 Apr 2011 15:47:34 +0000 (UTC) Received: by ice.42.org (Postfix, from userid 1000) id 9FB752841C; Fri, 1 Apr 2011 17:47:32 +0200 (CEST) Date: Fri, 1 Apr 2011 17:47:32 +0200 From: Stefan `Sec` Zehl To: Marko Lerota Message-ID: <20110401154732.GC37730@ice.42.org> References: <87d3l6p5xv.fsf@cosmos.claresco.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d3l6p5xv.fsf@cosmos.claresco.hr> User-Agent: Mutt/1.4.2.3i I-love-doing-this: really X-Modeline: vim:set ts=8 sw=4 smarttab tw=72 si noic notitle: Accept-Languages: de, en X-URL: http://sec.42.org/ Cc: freebsd-stable@freebsd.org Subject: Re: Constant rebooting after power loss X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 15:47:34 -0000 Hi, On Fri, Apr 01, 2011 at 13:27 +0200, Marko Lerota wrote: > Today one of my home servers lost power two times in a short > period of time. After that, the system just couldn't get up. > Background checks couldn't get started. The messages was how > / /tmp /var etc...had to much errors. And at the end, always > got this: "automatic reboot will start in 15sec". > > I went to single user mode, and ran FSCK manually. That solved > the problem. But the server was down for 2 hours. If you want to get rid of the reboot loop, set: background_fsck="NO" Then it will either come up, or ask for help if anything fails. If you absolutely want the server to come up, you can set this fsck_y_enable="YES" Assuming you're in the habit of answering "yes" to fsck's questions, this will do it automatically in case of problems. (Both settings are for /etc/rc.conf, of course) CU, Sec -- One of the strongest advantages of plain-text email is that people cannot use the typesetting features they want.