[PVE-User] shrinking a qcow2 disk

Miguel Gonzalez miguel_3_gonzalez at yahoo.es
Sat May 16 20:30:55 CEST 2015


Dear all,
  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 
image: vm-102-disk-1.qcow2
file format: qcow2
virtual size: 256G (274877906944 bytes)
disk size: 180G
cluster_size: 65536
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
1         snapshot_21022015         0 2015-02-21 16:24:32   00:00:00.000
Format specific information:
    compat: 1.1
    lazy refcounts: false


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20150516/9374486a/attachment.htm>


More information about the pve-user mailing list