Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2011 17:47:32 +0200
From:      Stefan `Sec` Zehl <sec@42.org>
To:        Marko Lerota <mlerota@claresco.hr>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Constant rebooting after power loss
Message-ID:  <20110401154732.GC37730@ice.42.org>
In-Reply-To: <87d3l6p5xv.fsf@cosmos.claresco.hr>
References:  <87d3l6p5xv.fsf@cosmos.claresco.hr>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110401154732.GC37730>