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] Backup

To: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Backup
From: "Paras pradhan" <pradhanparas@xxxxxxxxx>
Date: Wed, 19 Nov 2008 12:40:10 -0600
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 19 Nov 2008 10:40:53 -0800
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:references; bh=ea3F379spyqjjdMn4e0iUEDHD0rfnHN3rmezSLn9X9M=; b=DzNaq2FmhM731tZIVTZIJhnCO1XEluzWAE4Dwztt9LnPvikf/uJjHqyzukqF+wkXjP zMoOoZrSPZYkmRZsLgbc44RZOh0M79X73XwENPumxSQqnDD5d0sB9MJMEe72sE7y0imn uac8VA59Bn8NgIySBKUDKnV9Sn04hXRHbNFuw=
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:references; b=taNbCrjG0DCIFBaIuxzDkEU+YYGTJhBAbVdNNwuBkro4lFUZaK65Ky5CGhS6nEuGlg moNGUKKUsea6wK/cUD7IDwWRDSagyj1Xe+lxR+4ohx43whV86x25V5rXVacCbYpWb1WQ J85utmwmQTOIx3pJxZ28JWv/WnG5lfLcGG6Qo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0154FC24@trantor>
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: <8b711df40811181536w66009127ke7c0ab197fdc3812@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D0154FC24@trantor>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Tue, Nov 18, 2008 at 8:16 PM, James Harper <james.harper@xxxxxxxxxxxxxxxx> wrote:
> hi all,
>
> What is the preferred method/tool to backup Xen guests?
>
> Xm save and DD seems to work but 'xm save' stops the virtual machine
and
> DD is slow.
>
> Any better option?
>
> I am under CentOS/DRBD
>

I use Bacula and treat the VM's like normal computers.

Alternatively you could use LVM to create a snapshot and back that up,
assuming you are using LVM in the first place.

James


Thank you all for the reply.


Here's what I did:

To backup:

1) Saved the virtual machines' state using:

xm save guest01 /guest01.save

2) lvcreate -s -L 2G -n guest01-snap /dev/vg/guest01-disk

3) Restored the VM 

xm restore /guest01.save

4) Used DD to create the image

dd if=/dev/vg/guest01-snap of=/guest01.img

5) lvremove /dev/vg/guest01-snap

To restore:

1) I turned off the VM (i don't like this)

xm shutdown guest01

2) Then run:

dd if=/guest01.img of=/dev/vg/guest01-disk

3) Turn back the VM on

--

My virtual machine is consuming 11GB of space. Now when i do DD while restoring it took a lot of time.


---
10737418240 bytes (11 GB) copied, 1189.42 seconds, 9.0 MB/s

---


Is this normal?


I don't know if the process that I have used is fine or not. Need views on this.



Thanks

Paras.




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>