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. This is not the first time that I had to do this. Every now and then I have seen this on BSD servers without UPS. My question is: Would it happen if I had ZFS as a file system on all partitions including root? The setup was FreeBSD 8.1, with two disks in raid 1 with gmirror. -- Marko Lerota Sent from my Gnus Mailer
Not with the same behavior and it depends on what your server is doing at the time of the power interruption. In most cases you wouldn't see anything but ZFS is not the solution to your problem. ZFS is not designed to replace the needs of a UPS. On Fri, Apr 1, 2011 at 2:27 PM, Marko Lerota <mlerota@claresco.hr> 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. > > This is not the first time that I had to do this. Every now > and then I have seen this on BSD servers without UPS. > > My question is: > > Would it happen if I had ZFS as a file system on all partitions > including root? > > The setup was FreeBSD 8.1, with two disks in raid 1 with gmirror. > > -- > Marko Lerota > Sent from my Gnus Mailer > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >-- George Kontostanos aisecure.net <http://www.aisecure.net>
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. > > This is not the first time that I had to do this. Every now > and then I have seen this on BSD servers without UPS. > > My question is: > > Would it happen if I had ZFS as a file system on all partitions > including root? > > The setup was FreeBSD 8.1, with two disks in raid 1 with gmirror. >I'm afraid that in case of sequential power loss you will be faced with broken filesystems regardless of filesystem you're using. and I suppose that data on your servers costs, at least, ten times more than any UPS that should safely shut down your server in case of black out. -- ? ?????????, ????? ?????????
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.
On 01/04/2011 16:47, Stefan `Sec` Zehl wrote:> 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.I realise that people like having systems that come up quickly after a crash, but is it worth reconsidering disabling background fsck by default since it can cause issues like this? -- Bruce Cran