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: Jett <jett1014@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] can I clone a runiung domU?
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Fri, 01 Aug 2008 11:45:30 +0200
Cc:
Delivery-date: Fri, 01 Aug 2008 02:47:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4892B36C.1030703@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> <4892ACAE.7010003@xxxxxxxxx> <4892AD0F.8000905@xxxxxxxxxxx> <4892B36C.1030703@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
Jett wrote:

Jett wrote:
You can make use of the LVM snapshot.

Ref:
http://momotonic.com/2008/03/23/migrating-lvm-volumes-over-network-using-snapshots/

Jett

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.



Hi Jett,

I have though of LVM snapshots, but I need to move the LVM image to another server - will this be a problem if I make a snapshot of it?

Hi,

You may dd the snapshot and copy the image to other server. Use dd to restore the partition after moving.
The link I have gave you is exactly for migrating LVM volumes.

Hope this help.

Nice Day,
Jett



Once I made a snapshot, should I be able to mount it, or not?

Cause it doesn't seem to work then?


lvcreate -L30G -s -n pluto_s /dev/data/hfserver2
Logical volume "pluto_s" created
[root@HF-LINSRV01 ~]# lvscan
ACTIVE            '/dev/data/cpanel002' [100.00 GB] inherit
ACTIVE            '/dev/data/windows2003_web' [30.00 GB] inherit
ACTIVE            '/dev/data/storage' [50.00 GB] inherit
ACTIVE   Original '/dev/data/hfserver2' [30.00 GB] inherit
ACTIVE            '/dev/data/windows2008' [30.00 GB] inherit
ACTIVE            '/dev/data/hfdns02' [30.00 GB] inherit
ACTIVE            '/dev/data/pluto' [30.00 GB] inherit
ACTIVE   Snapshot '/dev/data/pluto_s' [30.00 GB] inherit
ACTIVE            '/dev/system/root' [39.06 GB] inherit
ACTIVE            '/dev/system/swap' [9.75 GB] inherit
[root@HF-LINSRV01 ~]# mount /dev/data/pluto_s /mnt/pluto_s/
mount: you must specify the filesystem type

--

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