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] question on migrating disk from current server to HVM

To: xenlist@xxxxxxxxxxxxx
Subject: Re: [Xen-users] question on migrating disk from current server to HVM
From: Sadique Puthen <sputhenp@xxxxxxxxxx>
Date: Sat, 09 Feb 2008 12:17:02 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 08 Feb 2008 22:47:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47ACDAC7.9060400@xxxxxxxxxxxxx>
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>
References: <47ACDAC7.9060400@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20070926)
xenlist@xxxxxxxxxxxxx wrote:
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?

Just dd if=<uncompressed file> of=/dev/mapper/logical-volume  would work?

--Sadique


Any good examples out there for this?

Thanks.

LT


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



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

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