WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] FAQ: How to backup for recovery?

To: Javier Guerra <javier@xxxxxxxxxxx>
Subject: Re: [Xen-users] FAQ: How to backup for recovery?
From: Christoph Purrucker <cp+ml-xen@xxxxxxxx>
Date: Wed, 11 Oct 2006 22:53:42 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Oct 2006 13:54:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200610110658.20075.javier@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <452CA648.20876.A61DA85@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <38255.194.39.218.10.1160547864.squirrel@xxxxxxxxxxxxxxxxx> <200610110658.20075.javier@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
Hi Javier,

I'm using LVM for DomUs: On backup time, I create a LVM snapshot, mount
the snapshot in Dom0 and running rdiff-backup to create a new increment.

i guess that if the snapshot is done while the DomU is running, mounting the snapshot would find it as 'not cleanly unmounted' and might require an fsck. have you encountered this issue?

of course, the filesystem was not cleanly unmounted. But as long as you use a journaling filesystem, the log run on mount time will correct nearly all errors: If you can mount the snapshot, if will be consistent. If the DomU did some wired things during snapshot, and the journal will not help to recover, I'd skip the backup and try it later. I'm doing such backups with several ext3 and one xfs (a cyrus partition with lots of files), and the snapshots always were mountable after journal recovery.

cu cp

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users