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] file based domu conversion to lvm

To: Mike <systems@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] file based domu conversion to lvm
From: Stephen Ross <stephen.ross1986@xxxxxxxxxxxxxx>
Date: Wed, 14 Oct 2009 01:13:42 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Oct 2009 17:14:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=e3UHaYqQdHgSoCZZxxQKrPKd0ui2oooWKpVSX2DnM6s=; b=ZF2ZPjhFNqbL+r+K/SWTHwjzR2/XBb4mq630kVIBpFwIWBbLhmHfiFfiuC85QgTrTw FBcjHrWC1qrpm0hOY2u6W0tOTePLeb7fHDykX/AiMmhDfzVprVYOB2QlOeQgkq1NhbBZ V8OPSZ1O7gLQAJSyDGrEVBCC/GAVnmXsFTZmM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=b2abQy3UQFdfnEuZq7aOe7e1+XHNp3fCn+xZnnqZK8q1IJT+p5QshLrlvW1CyjRJpc 7b7SbIvN5tU6LhP/s4eaife12dARZMzet5749osxUMhYT006KBBMDe0Yq0Aul11NGayd rZ+tp9LcGNaoKoRvtE3+iD6vCuWzZlPM1qdMU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AD4BC71.2090109@xxxxxxxxxxxxxxxx>
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: <4AD4BC71.2090109@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Personally, I'd simply create a logical volume the same size as the image based disk (or bigger if you feel like expanding) and dd it over.

Cheers,

On Tue, Oct 13, 2009 at 6:44 PM, Mike <systems@xxxxxxxxxxxxxxxx> wrote:
Hi, I'm having some problems converting an image based domu to lvm based. This is what I've done so far.

lvcreate -L 5000M -n vmsname /dev/vg0
mkfs.ext3 /dev/vg0/vmsname
lvcreate -L 1000M -n vmsswap /dev/vg0
mkswap /dev/vg0/vmsswap

I then used kpartx to expand/mount the image, and with the new lvm mounted I copied the contents of the image into the lvm. I then dismounted the lvm and the image.

I configured the config as follows

name = "vmsname"
memory = "256"
disk = ['phy:/dev/VolGroup01/vmsname,hda1,w', 'phy:/dev/VolGroup01/vmsname,hda2,w' ]
vif = [ 'bridge=xenbr0', ]
bootloader="/usr/bin/pygrub"
vcpus=1
> >
When i try to create the vms it hangs until I control+c it. Anyone have any insight? Thanks in advance.


_______________________________________________
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