Re: Filesystem

From: Anton Ertl (anton_at_mips.complang.tuwien.ac.at)
Date: 02/14/05


Date: Mon, 14 Feb 2005 15:07:56 GMT

Randy Howard <randyhoward@FOOverizonBAR.net> writes:
>In article <cupmqu$efu$1@nntp.fujitsu-siemens.com>,
>josef.moellers@fujitsu-siemens.com says...
>> AFAIK a journalling filesystem will permit fast startup (no fsck) but
>> cannot prevent data loss in the case of a power failure.

If you want to prevent all data loss (of stuff written to the file
system), you have to run the file system synchronously (very slow).

If what you mean is that journaling only gives you metadata
consistency guarantees (i.e., the directory structure and inode
information will be preserved, but not necessarily the data), you are
right for many journaling file systems.

However, ext3 used to have the data=journal mode which would give data
consistency guarantees (you might lose the last blocks of data
written, but not more). Unfortunately, the last thing I heard about
it is that it is not maintained much anymore, is buggy, and should not
be used.

><sarcasm>
>There is this neat gizmo, called a UPS that will detect the failure,
>and keep your system running temporarily via battery.

Won't prevent power failures from failing power supplies, and
introduces a new type of power failure: the failing UPS. We don't use
UPSs any more because in our experience they are not more reliable than
our mains.

- anton

-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html


Relevant Pages

  • Re: tmpfs on flash hd
    ... ext3 has journaling ... This means data that the file system thinks is safely on the disk can actually disappear - no file system can reliably recover in the face of such abuse. ... With a CF card with more than one partition, a write to one partition can even corrupt other partitions if you are unlucky with a power failure. ... A lot of people therefore choose ext2 for compact flash. ...
    (comp.os.linux.setup)
  • Re: Warning: Finder doesnt save immediately
    ... The file system is *not* a database. ... The switch-off has to be a catastrophic loss of power or a panic. ... normal shutdown flushes all to disk. ... But even a power failure must ...
    (uk.comp.sys.mac)
  • Re: sharing USB2 discs between mac and PC
    ... What it's not good for is heavy use with lots of concurrent file system ... Journaling FS are specifically for protection against corruption in the ... event of an unexpected power failure or crash. ...
    (rec.audio.pro)
  • Re: Open source storage
    ... you lose power while XFS is building its extant, ... power loss: the defined semantics of any normal Unix-style file system ... flushed to disk may or may not be on the disk, in whole or in part, ...
    (comp.arch.storage)
  • Re: Linux filesystems was [Re: Debian cd supporting ext4.]
    ... I'm guessing most of them didn't look before taking the XFS leap. ... What were your results when you did this same power yank test with ext2/3, ... I've been using btrfs for my "/" file system for a few months now on my ... Toward the beginning I did suffer some dpkg database corruption due ...
    (Debian-User)