[libvirt-users] Re: qemu-img convert to "sparse" LV

Nicolas Sebrecht nsebrecht at piing.fr
Fri Jun 28 13:24:19 UTC 2013


The 28/06/13, Edoardo Comar wrote:
> > 
> > I think a good way to get that is to shrink the filesystem of the
> > original disk, shrink the disk itself and convert the file-based image
> > to the LV like you do.
> > 
> > Once done, you can extend the LV and the filesystem back to what it was
> > before the process if needed.
> > 
> > Other than that, I don't know a way to get what you want with the
> > current tools.
> 
> Thanks Nicholas, the above seems to have worked.
> Quite a few steps, though - so prone to error ...

Right. I would let the VMs run some times before deleting the image
file. For more sanity, you can try to get 100% filesystem usage to check
that allocation works for the whole filesystem space.

> When you say 'tools' I think you mean that qemu-img cannot at the moment 
> support conversion to thin LVs.

I meant tools in general: libvirt, qemu, dd, etc.

-- 
Nicolas Sebrecht




More information about the libvirt-users mailing list