Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 13:14:43 +0500
From:      rihad <rihad@mail.ru>
To:        freebsd-fs@freebsd.org
Subject:   Is it preferable to use the sync command?
Message-ID:  <4A41E073.70902@mail.ru>

index | next in thread | raw e-mail

Hi, all,

Having experienced a FreeBSD 5.1 crash due to power failure (despite 
using a UPS) resulting in massive /etc corruption and data loss, in 
order to minimize future risks should I:

0) tweak (decrease) these default sysctls:
kern.filedelay: 30
kern.dirdelay: 29
kern.metadelay: 28

1) mount the root FS with soft-updates enabled (left as disabled in 
sysinstall by default due to known reasons)

2) setup a cron job calling /bin/sync every minute

I somehow feel that turning soft-updates on would do the trick (it is 
not normally written to and has plenty of free space anyway).


Thanks in advance for any educated tips.


home | help

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