Last modified by Sebastian Marsching on 2023/05/16 20:12

From version 2.1
edited by Sebastian Marsching
on 2022/05/29 12:53
Change comment: There is no comment for this version
To version 3.1
edited by Sebastian Marsching
on 2023/05/16 20:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -297,3 +297,7 @@
297 297  ```
298 298  
299 299  Obviously, the options used in the command above are just an example and can be different.
300 +
301 +# Recovering unused space from a QCOW2 image
302 +
303 +A QCOW2 image often grows significantly over time, sometimes even larger than the size of the virtual disk represented by this image. In this case, creating a fresh image and copying the data can help. This can be done with the `qemu-img conv` command. However, the [[`libvirt-sparsify` command offers a much more convenient way|doc:Linux.libvirt.WebHome|anchor="virt-sparsify"]] of achieving this goal and can even work in-place, without having to copy the image.