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

[Xen-users] Re: Backup

To: "Paras pradhan" <pradhanparas@xxxxxxxxx>
Subject: [Xen-users] Re: Backup
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Thu, 20 Nov 2008 14:41:11 +0100
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 20 Nov 2008 05:42:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8b711df40811191040s127fe222pbbfb5513a0e1b6f1@xxxxxxxxxxxxxx> (Paras pradhan's message of "Wed, 19 Nov 2008 12:40:10 -0600")
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> <8b711df40811191040s127fe222pbbfb5513a0e1b6f1@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
"Paras pradhan" <pradhanparas@xxxxxxxxx> writes:

> 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?

Impossible to tell without knowing a lots of details about your
storage system.

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

Looks OK, but be prepared that your filesystems will be unclean after
restore.  If instead of turning the VM on you did an xm restore again,
then your filesystems would be OK, but some operations could be carried
out again in the restored domain.
-- 
Cheers,
Feri.

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

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