|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] file based domu conversion to lvm
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
|
|
|
|
|