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

Re: [Xen-users] Questions on qcow, qcow2 versus LVM



I've just done some tests on this and you are absolutely right: with no
partitions it works fine, so either parted, kpartx or whatever is causing
the problem.  Now my problem is that I can't run a partitionless volume
because I absolutely need to use pvgrub and that doesn't seem to work
without a proper partition table in place or I have screwed up somewhere?

Many thanks,

Matt.

On Thu, December 24, 2009 9:58 pm, Fajar A. Nugraha wrote:
> On Thu, Dec 24, 2009 at 11:56 PM, Matthew Law <matt@xxxxxxxxxxxxxxxxxx>
> wrote:
>> # domU backing store
>> lvcreate -C y -L 10G -n myvm VolGroupVM
>> parted /dev/VolGroupVM/myvm mklabel msdos
>> parted /dev/VolGroupVM/myvm mkpartfs primary ext2 0 1024000
>> kpartx -p "" -av /dev/VolGroupVM/myvm
>> tune2fs -j /dev/mapper/myvm1
>> kpartx -d /dev/VolGroupVM/myvm
>
> hmm ... kpartx -d part looks OK. I use something like
>
> lvcreate
> mkfs.ext3
>
> no parted/kpartx involved, since the filesystem and swap is directly on
> the LV
>
>>
>> # domU swap
>> lvcreate -C y -L 512 -n myvm-swap VolGroupVM
>> parted /dev/VolGroupVM/myvm-swap mklabel msdos
>> parted /dev/VolGroupVM/myvm-swap mkpartfs primary linux-swap 0 512
>> mkswap /dev/mapper/VolGroupVM-myvm--swapp1
>> lvscan | sort | grep ${NAME}
>
> what, no "kpartx" here? Not even "kpartx -a"? How did you get
> /dev/mapper/VolGroupVM-myvm--swapp1, was it automatically created by
> parted without the need to manually run kpartx?
>
>> Then it is basically a case of (from memory):
>>
>> mount -t ext3 /dev/mapper/myvm1 /mnt/vminstall
>> tar -xzf /home/vmimages/image.tar.gz -C /mnt/vminstall
>> umount /mnt/vminstall
>
> looks good.
>
>> I have cobbled together these commands based on what I have read at
>> various places.  Have I screwed up somewhere?
>
> I'd say the biggest difference from my setup is that you use
> partitions with parted and kpartx. I haven't tested that, but it might
> be your source of problem. Try partionless setup that I mentioned
> earier to narrow down the source of problem.


_______________________________________________
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®.