xfs
[Top] [All Lists]

Re: data corruption after hard halt

To: Nicolas Kowalski <Nicolas.Kowalski@xxxxxxx>
Subject: Re: data corruption after hard halt
From: Iustin Pop <iusty@xxxxxxxxx>
Date: Wed, 1 Oct 2003 23:00:39 +0300
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <vqoisn9uywd.fsf@xxxxxxxxxxxxxxx>
References: <vqoisn9uywd.fsf@xxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.4i
> some files that were
> modified a few seconds before the outage on the NFS clients have been
           ^^^^^^^^^^^^^^^^^^^^
As far as I know, you can't protect yourself from this - at least not
with XFS. It journals meta-data, not data. Maybe ext3's data journalling
can help you, though.
> truncated to zero sizes on the server.
> 
> These were not *new* files, but files existing long before this
> failure. Perhaps this is related to the way the software (Emacs in
> particular) write files when modifying them, but I am not sure about
> this.
> 
> What can I do to prevent this ? 
Except for doing sync (or fsync, from programs), I don't know another
software solution. A hardware one is an UPS, coupled to the server,
which signals the server to shutdown BEFORE losing power (battery).

Regards,
Iustin Pop


<Prev in Thread] Current Thread [Next in Thread>