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

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


  • To: matt@xxxxxxxxxxxxxxxxxx
  • From: Grant McWilliams <grantmasterflash@xxxxxxxxx>
  • Date: Wed, 23 Dec 2009 08:56:06 -0800
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 23 Dec 2009 08:57:09 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UwwjqLUBZRheKGl4IQhl/nYXhv8qxN6Su/4i/+TCkF1zPeTBgLrRgIK2n940msxFwM 0ov9/26somcKbhuHfQXV7nwneiB7xzsIokxpLRqZozzXn9AE6eSySc8jJd2j2rFsIkk6 BGkx22ZW8XGm8P7ZGCTLOM0WHxUkV5Lu/S4g8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



On Mon, Dec 21, 2009 at 4:54 AM, Matthew Law <matt@xxxxxxxxxxxxxxxxxx> wrote:
I've been using lvm under centos to create the backing store for domUs and
although the performance seems acceptable it has some shortcomings. ÂThe
biggest of which is the LVM bug which prevents me from removing an lv (it
says it is still mounted and it definitely isnt). ÂI thought this was just
a centos bug but it appears to be evident in debian and ubuntu too and I
really can't afford a reboot of the dom0 everytime I want to remove a
logical volume that was once accessed but now isn't!

What are people's experiences with using qcow or qcow2 images over LVM
volumes? ÂThe reason I chose LVM was for it's ease of management and
relative ease with which you can shrink and enlarge a domU filesystem.
Can you do this with qcow? ÂHow does it perform on a dom0 with many
running domUs (ie. dozens) ?


Thanks,

Matt.

I'm going to chime in on the Qcow2 portion of your question - it doesn't work. Depending on which version of Xen you have you will have different bugs and even if you can get some form of Qcow to work it doesn't support a backing store so it's basically worthless. I'm considering moving 40 VMs to KVM just because I ran into a thousand brick walls with Qcow and Xen. I want to use Xen but at the end of the day I just need to get my work done.

If you're looking to do COW you can use dmsetup to and snapshots to layer read-only disks with write-only disks but you'll just run into the same LV bug that you've been battling. It's sad that we don't have real COW support in a hypervisor as powerful as Xen. Apparently it's just not that important.

I wanted to have an image in ramdisk and set up a snapshot of that as read only with the writes going to disk for performance reasons but if you try to boot a DomU off an image in ram it will screw up your machine and only a reboot will fix it. You can't even start ANY other domains until the reboot. Or at least I couldn't find any.

Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.
_______________________________________________
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®.