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] can I clone a runiung domU?

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] can I clone a runiung domU?
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Fri, 01 Aug 2008 13:59:28 +0700
Delivery-date: Fri, 01 Aug 2008 00:00:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01490120@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: <4892ABDD.4080803@xxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01490120@trantor>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

I'd like to know if it's possible to clone a running domU. 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.


A neat way to do that is if you use zfs-backed storage, either directly (using Sun's xVM) or having solaris export the volume over iscsi to linux box. The "clone" process for zfs is two simple commands : "zfs snanpshot" and "zfs clone", which is almost instaneous.

Regards,

Fajar

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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