Help shrinking VM on ZFS

anthony

Member
Jun 20, 2018
30
1
11
27
I am trying to shrink the size of a drive that I accidentally used the defaults for. I tried following this guide, but always end up back at the same size i started with. It is in a cluster, and using cloud-init, however i cant see that mattering?

Any help is much appreciated.
 
Hi,
instead of manually editing the configuration file in step 3 in the guide, you can use qm rescan --vmid <ID>, and step 4 shouldn't be necessary.

When does the image change back to the old size? Is it just inside the configuration file or also on ZFS (use zfs get volsize <dataset> to check)? Could you share the configuration file?
 

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!