[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Using dd and gzip to backup LVM backed domUs


  • To: "Javier Guerra" <javier@xxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.