[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 imag
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image |
Date: |
Wed, 8 Feb 2017 07:41:16 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 02/08/2017 02:16 AM, wayen wrote:
> @Thomas Huth, I just want to reduce the file size of qcow2 overlay image
> by this conversion.
Are you merely trying to sparsify the file (punch holes on the portion
of the file that is not mapped to disk), so that the apparent file size
is unchanged, but the actual disk usage is minimized? That's probably
already possible (virt-sparsify from libguestfs seems to be able to do
it; look at what steps it uses).
Or are you asking for a way to defragment the file, so that the apparent
size shrinks because all occupied clusters are now contiguous, so that
there are no longer any need for holes? The end result is the same
amount of disk usage, but right now, the only way to defragment is to
convert from one image to a copy; we don't support in-place
defragmentation yet. So far, no one has come up with a compelling
reason why it is needed, or a patch to implement it, but there's no
technical reason why it can't be done.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a delta qcow2 image into a complete image, (continued)
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a delta qcow2 image into a complete image, wayen, 2017/02/05
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/05
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/06
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/06
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/06
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, Thomas Huth, 2017/02/07
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/07
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, Thomas Huth, 2017/02/08
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/08
- Re: [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image,
Eric Blake <=
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/08
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/13
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/13
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/13
- [Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image, wayen, 2017/02/13