Unable to reduce vm size disk

LkS45

Renowned Member
May 9, 2017
74
2
73
39
Hello!

Im trying to reduce 5GB to a virtual disk, the actual size is 125GB. And i got this error:

>>qm resize 103 scsi0 120G
shrinking disks is not supported


Any ideas?
 
Hey guys!

My vm is using 100GB disk and I dnt understand why im unable to reduce it to 90GB:
oie.gif


Any ideas?
 
shrinking disks is not supported - you have to do it manually.
 
How?! I cant found how to do it in the proxmox documentation.

depends on the storage (both in the VM and on PVE), but is not PVE specific at all (except for the need to tell PVE about the change afterwards, using "qm rescan")
 
long time ago, i use zerofree (https://packages.debian.org/fr/sid/zerofree ) to put zero on the disk on the free space.

after with the VM stopped ( in the host ), you can copy the disk with the command cp --sparse=always , so the copy of the disk is smaller than the original.

but for this you need the space of course.