xfs
[Top] [All Lists]

Re: Is xfsdump operation atomic?

To: Mike Burger <mburger@xxxxxxxxxxxxxxxxx>
Subject: Re: Is xfsdump operation atomic?
From: Michael Locher <locher@xxxxxxxxxxxx>
Date: Tue, 23 Nov 2004 13:29:19 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0411230713520.13298@burgers.bubbanfriends.org>
References: <81DB11CE-3D40-11D9-B9BB-000A95BCCB96@iam.unibe.ch> <Pine.LNX.4.58.0411230616530.12098@burgers.bubbanfriends.org> <3F3ABBEB-3D42-11D9-B9BB-000A95BCCB96@iam.unibe.ch> <Pine.LNX.4.58.0411230713520.13298@burgers.bubbanfriends.org>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Am 23.11.2004 um 13:15 schrieb Mike Burger:
On Tue, 23 Nov 2004, Michael Locher wrote:

Am 23.11.2004 um 12:17 schrieb Mike Burger:
On Tue, 23 Nov 2004, Michael Locher wrote:
I wonder if xfsdump is an atomic operation and thus can be savely used
on a live filesystem?
If not, what is the recommended way to backup a live XFS filesystem?


I guess this information would also be interessting to others, so why
not include it in the paragraph about xfsdump on the XFS homepage?

Personally, I'm using a RAID card, on which I mirror my XFS filesystem
on
multiple drives.
How do you recover that file that a user deleted accidentally? ;-)

I guess, in that case, you don't.

However, you can use any of the normal methods...tar, rsync, cpio...
the methods you listed are certainly not *atomic*. i need a consistent snapshot of the filesystem.
one option is to use LVM or DeviceMapper an create a snapshot.
my original question was, if xfsdump also gives assurances for atomicity.


The problem with dump is that, if you have multiple filesystems, you have
to specify them, individually...the same applies to xfsdump.
this is not actually a problem for me. snapshoting vith LVM would also be on FS level.

Using tar or somesuch would probably suit your needs better.
those tools also miss the ACLs, extended attributes and quota of XFS.
i am actually happy with xfsdump, i just wanted to know if it is save to use on a busy server.


cheers
  Michael


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