Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2013 22:46:04 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        Adam Vande More <amvandemore@gmail.com>, CeDeROM <cederom@tlen.pl>
Cc:        Bruce Cran <bruce@cran.org.uk>, Brad Mettee <bmettee@pchotshots.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: SU+J Lost files after a power failure
Message-ID:  <525C580C.9070201@gmail.com>
In-Reply-To: <CA+tpaK1_sV6upk37RdkkxWs7YDRTQ-Fw-H+zxbN4KBtmzCYATA@mail.gmail.com>
References:  <525A6831.5070402@gmail.com>	<l3gc7e$c91$1@ger.gmane.org>	<20131014133953.58f74659@gumby.homeunix.com>	<525C1D1C.9050708@gmail.com>	<CA+tpaK2Pr2po2cQ1yanQK9+wLp77SYqYHjxiXaU5FfXwHrkGow@mail.gmail.com>	<CAFYkXjn-1wTJcQ4a_fyXCvwh9ukt3+djM2qsMeaH1HhVJNvhiA@mail.gmail.com>	<525C2554.7080203@pchotshots.com>	<CAFYkXjm8y0Br31_pqRZc0sNFbqCNtKHhjeQuiLXkGT2zxSu0GA@mail.gmail.com>	<525C2FBC.4080808@cran.org.uk>	<CAFYkXj==tiKSAJh3kkCnonsqAaDg_sHYYEUnfLKWLaR-GD-Nzw@mail.gmail.com> <CA+tpaK1_sV6upk37RdkkxWs7YDRTQ-Fw-H+zxbN4KBtmzCYATA@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 14.10.2013 20:43, Adam Vande More wrote:
> On Mon, Oct 14, 2013 at 1:33 PM, CeDeROM <cederom@tlen.pl
> <mailto:cederom@tlen.pl>> wrote:
> 
>     Thank you for explaining :-) So it looks that it would be sensible to
>     force filesystem check every n-th mount..? 
> 
> 
> Please explain the logic in which this helps anything.
>  
> 
>     Or to do a filesystem check
>     after crash..?
> 
> 
> Already standard behavior as implicitly seen in this thread.
>  
> 
>     Are there any flags like that to mark filesystem
>     unclean and to force fsck after n-th mount? 
> 
> 
> No and any fs that requires such a system is broken by design.
>  
> 
>     That would assume
>     disabling journal and soft updates journaling I guess..?
> 
>     What would be the best option for best data integrity in case of
>     crash?
> 
> 
> mount -o sync or use ZFS. Both require hardware that correctly report
> success to fsync.

I personnally love ZFS and use it massively on my server, but for a
desktop I think this is a real overkill. Also I don't have so much RAM
to waste for that. I think UFS is enough, however as a modern operating
system I don't expect any data corruption by default using SU+J.

The filesystem domain is not a thing I really know deeply, so thanks for
all you explanation.

PS: the power failure is not the only way that does not shutdown cleanly
the system. There are kernel panics, crash and such of course. Those
which appears sometimes too.

Regards,




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?525C580C.9070201>