> 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
|