Is it preferable to use the sync command?

rihad rihad at mail.ru
Wed Jun 24 08:42:36 UTC 2009


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.


More information about the freebsd-fs mailing list