[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] file based domu conversion to lvm


  • To: Mike <systems@xxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.