Date: Wed, 24 Jun 2009 02:28:21 -0700 (PDT) From: Simun Mikecin <numisemis@yahoo.com> To: rihad <rihad@mail.ru> Cc: freebsd-fs@freebsd.org Subject: Re: Is it preferable to use the sync command? Message-ID: <130804.21855.qm@web37303.mail.mud.yahoo.com> In-Reply-To: <4A41E073.70902@mail.ru> References: <4A41E073.70902@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
rihad wrote: > 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). Do you use ATA or SCSI? Turning soft-updates on for SCSI should do the trick. Since there is no support for gjournal and/or ZFS on 5.1, for ATA only real solution would be disabling write-cache (which degrades performance): "sysctl hw.ata.wc=0".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?130804.21855.qm>