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

RE: [Xen-users] can I clone a runiung domU?


  • To: "Rudi Ahlers" <Rudi@xxxxxxxxxxx>, "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
  • Date: Fri, 1 Aug 2008 16:50:34 +1000
  • Cc:
  • Delivery-date: Thu, 31 Jul 2008 23:51:13 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcjznzsSsRgTHUGoSPiygU+4BYP3GQAAleTQ
  • Thread-topic: [Xen-users] can I clone a runiung domU?

> Hi all
> 
> I'd like to know if it's possible to clone a running domU. I need to
> make an exact copy of an existing CentOS xen domU, but without taking
it
> offline. I'm using LVM, so I don't know if it will help.
> 
> I have tried doing it with dd, after shutting down the domU, but it
> takes ages. The LVM image is 30GB. I can't really afford to have the
> running one off line that long, so if possible I'd like todo it while
> it's running.

dd almost certainly won't give you a usable filesystem in your copy.

Using LVM you should be able to make a snapshot of the filesystem which
should be at least as consistent (integrity wise) as if you'd done an
'xm destroy' on the domain.

Some filesystems can put themselves into snapshot mode, which would
ensure that the filesystem was completely consistent. This may not be
required for what you want.

When you create a snapshot you specify a size for the snapshot. The size
can be much less than the original filesystem if you want, but any
changes you make to the original filesystem or to the snapshot consume
space in the snapshot, and if the snapshot runs out of space then bad
things will happen.

James


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