Unable to reduce vm size disk

LkS45

Well-Known Member
May 9, 2017
66
1
48
38
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!