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: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] can I clone a runiung domU?
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Fri, 01 Aug 2008 11:04:08 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 01 Aug 2008 02:04:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4892BD6A.2000905@xxxxxxxxx>
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>
Organization: SoftDux
References: <4892ABDD.4080803@xxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01490120@trantor> <4892B450.8080701@xxxxxxxxx> <4892B82A.1050802@xxxxxxxxxxx> <4892BD6A.2000905@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
Fajar A. Nugraha wrote:
Rudi Ahlers wrote:
Fajar A. Nugraha wrote:

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.

Sure, but I don't. I'm using CentOS as OS, with ext3 :) So, I need to work with what I have


In that case James' suggestion is probably your best bet. If you use
lvm-backed storage for domU :
- lvm snapshot on running domU's LVM, to get a consistent state.
- dd from the snapshot to a new LV
- destroy snapshot

As for optimum block size for dd, I think the default PE size for linux
LVM is 4MB, so you might want to try that.

Regards,

Fajar
------------------------------------------------------------------------

_______________________________________________
How do I destroy the snapshot when the main LVM is being used by the domU VM?

Can I just run lvremove /dev/data/pluto_s ?

--

Kind Regards
Rudi Ahlers

Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff


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