[PVE-User] shrinking a qcow2 disk
miguel_3_gonzalez at yahoo.es
Sat May 16 20:30:55 CEST 2015
I have been searching around how to resize a disk that was created for 256 Gb but currently only has 50 Gb. Unfortunately it grew up to 108 Gb and now I can't claim the spaces by the files I have already deleted.
If possible, I would like to avoid any downtime or minimize it. Some people claim that using qemu-img convert would do the trick instead of converting to raw format.
Is there any way to avoid downtime or any configuration to avoid it in the future? I'm running proxmox 3.3-1
# qemu-img info vm-102-disk-1.qcow2
file format: qcow2
virtual size: 256G (274877906944 bytes)
disk size: 180G
ID TAG VM SIZE DATE VM CLOCK
1 snapshot_21022015 0 2015-02-21 16:24:32 00:00:00.000
Format specific information:
lazy refcounts: false
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pve-user