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] Using dd and gzip to backup LVM backed domUs

To: "Javier Guerra" <javier@xxxxxxxxxxx>
Subject: Re: [Xen-users] Using dd and gzip to backup LVM backed domUs
From: "Agent Rooker" <agentrooker@xxxxxxxxx>
Date: Fri, 17 Oct 2008 16:59:55 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 17 Oct 2008 15:00:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=eXAeqXhK0cYPhNcCL4ltFEkAavPRf1UNLHXi670oj1I=; b=S6uhD3pJdwCC0kf/+PUXznWZq2Q0ow6nEAVPEcrwyOE1WRUitmlPXCudjfeqdNPy+x feyEaFwQWGx+SQU9MhA/7EAsqWF4KFTz0otgfSEokipKtfSRMFXTLsBlR6RU/UE7qW67 iRbbuAd8l4GhfanNEw73wJwOzoxET5spyxCpA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gODcj+qJMLuCho82JR9KQhP3i9WiywMMr2BEShINRlySL7AB0Y6LG0xcLHKfmg4Wir 8rY6E3o6FfBa475IWMpxblh8G2un0kPwi3atctA4q4EnB6cs7c8jdm7a6TXARQVa1wtA KK4V3BM+ctZmbLGVtol4eNIeIpr7HA0iQfu4Q=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <90eb1dc70810171440s62b9a33bxa2e320f80de1472f@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <391d22bc0810171430v238de2f8jf2e93b36c41374d1@xxxxxxxxxxxxxx> <90eb1dc70810171440s62b9a33bxa2e320f80de1472f@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I've read that there can be problems with MySQL databases (for
instance) unless you do FLUSH TABLES WITH READ LOCK; before creating
the snapshot, but this would not be a problem if you used this method
to do a cold backup (i.e., creating an LVM snapshot while the domU is
shut down).

Now I'm wondering if it would be best possible to take an LVM snapshot
and a xen checkpoint at the same time so that if the domU does need to
be restored, the data not committed to disk would still be in RAM
(loaded from the checkpoint file), so there would not be any loss of
data upon restore.

Also, if someone could explain to me the dangers of hot backups with
LVM snapshots, or point me to a website explaining it, that would be
very helpful.

Thanks again.


On Fri, Oct 17, 2008 at 4:40 PM, Javier Guerra <javier@xxxxxxxxxxx> wrote:
> On Fri, Oct 17, 2008 at 4:30 PM, Agent Rooker <agentrooker@xxxxxxxxx> wrote:
>> I'm trying to come up with the best way to backup my xen domUs.  I
>> have a logical volume containing an ext3 root filesystem for each
>> domU.  Basically, I want to back up the whole filesystem in such a way
>> that I could restore the image on another xen server in the case of
>> hardware failure.   My idea so far is to back up the logical volume
>> with a command of this form (from the dom0):
>
> as always, it's much better to do a backup from the DomU itself.
>
> --
> Javier
>



-- 
Agent Rooker

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

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