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

[Xen-users] question on migrating disk from current server to HVM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] question on migrating disk from current server to HVM
From: xenlist@xxxxxxxxxxxxx
Date: Fri, 08 Feb 2008 17:42:15 -0500
Delivery-date: Fri, 08 Feb 2008 14:42:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.14 (Macintosh/20071210)
I'm trying to decide the best way to migrate the contents of a disk on a live server to a hardware virtual machine under Xen.

The live server has an 83G disk with three partitions:

        100M    /boot with ext2
        2G      swap
        81G     / with ext3

On the Xen server, I have a hardware RAID storage with LVM2 running. I have created a logical volume for the new HVM.

Here's the question: Is there any way to copy the disk contents and/or structure from the live server to the logical volume without having to boot an OS and format the logical volume first?

I've run a sample dd command on /dev/hda on the live server, piping it through gzip to a spare disk. It compresses down to about 8G. I'm just not sure what to do with it now that I have it. Can I simply uncompress, pipe through dd and send it to the device for the logical volume?

Any good examples out there for this?

Thanks.

LT


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

<Prev in Thread] Current Thread [Next in Thread>