Help shrinking VM on ZFS

anthony

Member
Jun 20, 2018
30
1
11
29
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?