xfs
[Top] [All Lists]

Re: Data destruction

To: Ivan Ivanov <ivandi@xxxxxxxxxxxxxxx>
Subject: Re: Data destruction
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Tue, 28 Aug 2001 14:41:38 -0500
Cc: linux-xfs@xxxxxxxxxxx
References: <Pine.LNX.4.33.0108282209330.3986-100000@idi.vamo.orbitel.bg>
Sender: owner-linux-xfs@xxxxxxxxxxx
Ivan Ivanov wrote:

> 1. When XFS is root filesystem it can't be checked for errors.
> Wnen I go to runlevel 1 and remount / readonly all xfs repair tools say
> that filesystem is mounted. The only way is to make two boot disks with kernel
> and static linked repair tools on ramdisk.

If you only want to _check_ for errors, you can do "xfs_repair -n
/dev/foo" on a read-only-mounted device.  You can also run xfs_check on
the read-only device.  If you actually want to repair a filesystem, then
yes, it must be unmounted.

> 2. Data in most of the files which are open during power fail is lost.
> Files are here, size is right but data is garbage.
> So where is journal? I think that only metadata is journaled but not file
> data. ReiserFS has the same problem. In fact only ext3 works fine.

XFS and ReiserFS don't journal data, only metadata.  Data journaling is
an option in ext3.  In general, journaling filesystems don't guarantee
against data loss, they only guarantee a consistent filesystem.  You
can't expect that if you click off power in the middle of a write, that
the data won't be lost - at a minimum, there is write-caching in the
picture.
 
http://oss.sgi.com/projects/xfs/faq.html#nulls

-Eric

-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.


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