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

[Xen-users] Re: Backup


  • To: "Ferenc Wagner" <wferi@xxxxxxx>
  • From: "Paras pradhan" <pradhanparas@xxxxxxxxx>
  • Date: Thu, 20 Nov 2008 09:23:53 -0600
  • Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 20 Nov 2008 07:25:01 -0800
  • 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=BRmmDK2RNvOH2KWSdVF5Y/LaIaU+xs9rj97OXIj9Bvw0nFc04E/Xtjx5Q/AwVJ7pdc e704KbKryN5fBWbeHXqwvW7HxfeaWp/r3Sp82n6ZfNNPjqmESjcQOm2cOmQuV+vI0TK6 zu3md7dfIV4DVApaS9Yz5kjYTVSfr+OyZGoRE=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



On Thu, Nov 20, 2008 at 7:41 AM, Ferenc Wagner <wferi@xxxxxxx> wrote:
"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.


xm restore looks to be fine when i restored.

Thanks
Paras.
_______________________________________________
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®.