'Safest' filesystem defaults

Ivan Voras ivoras at fer.hr
Tue Apr 3 19:09:41 UTC 2007


mal content wrote:
> Hello.
> 
> Which filesystem options are the 'safest' in terms of data loss
> after power failure?
> 
> I'm current using:
> 
> /dev/ad0s1f on /usr (ufs, local, soft-updates)
> /dev/ad0s1d on /var (ufs, local, nosuid, soft-updates)
> /dev/ad1s1d on /mnt/home (ufs, local, nosuid, soft-updates)
> /dev/ad0s1e.eli on /tmp (ufs, local, noexec, nosuid, nosymfollow)
> 
> We currently have a serious problem with power outages, so I'd
> like to make sure that my filesystems don't get damaged by power
> failure until I can install a decent UPS system.

You might want to turn off soft-updates because they rely more on the
hard drive cache correctly behaving than the alternative (the "normal"
mode, without sync or async). If you do so, file system operations will
be slower and you will suffer long fsck times, but at least your file
system will be consistent (which says nothing about your data).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070403/e523c69a/signature.pgp


More information about the freebsd-questions mailing list