On Tue, Sep 15, 2015 at 05:28:40PM +0300, Maxim Perevedentsev wrote:
On 09/15/2015 04:57 PM, Richard W.M. Jones wrote:
>On Tue, Sep 15, 2015 at 04:31:46PM +0300, Maxim Perevedentsev wrote:
>>Hello everyone!
>>
>>I am working on resizing qcow2 images using virt-resize+liguestfs.
>If you're shrinking, I believe a better way to do this is to sparsify
>the image.
And how would it help? If I shrink, a want a VM to occupy less
maximum space. virt-sparsify (I guess you are talking about it) will
reduce space taken by guest disk image by now, but won't tighten the
upper limit for guest.
I've come to think that sparsification is still better, but if you're
sure what you really need is to reduce the virtual size of the
container then of course you'll need to use resize2fs etc.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top