Hello,
I converted an .OVA Nextcloud appliance from hanssonit to use on proxmox. The created VM had 1x 40GB disk for the OS + 1x 40GB disk for the data (which is a zfs "ncdata" pool mounted at /mnt/ncdata within the VM). Both are virtual disks hosted on a ZFS storage of PVE (vm-101-disk-0 and vm-101-disk-1), so I am actually using ZFS on top of ZFS (ZFS in the VM which is hosted on a ZFS PVE storage).
40GB was not enough for the data so I expanded vm-101-disk-1 up to 5000GB! My idea was to give a lot with thin provisioning so I wouldn't have to expand again. But I realized afterwards that nextcloud performs its own hourly ZFS snapshots so the disk is filling very quickly when I add / delete many files in nextcloud (it doesn't prune these snapshots because there is still a lot of space). Right now, only ~300GB of files are hosted on nextcloud but it uses ~1100GB because of the many files I added/deleted which are in snapshots.
I am not ready to give 5000GB yet so I would like to shrink back to 1500GB. The documentation at https://pve.proxmox.com/wiki/Resize_disks explains that I need to prepare the VM before executing a qm resize (which sounds logical). I know how to shrink an EXT4 partition within the VM with gparted but I read it is impossible to shrink a ZFS pool. I also read contradictory methods and I already screwed it (currently restoring from backup...)
What method would you use in my case?
Thanks for any help!
I converted an .OVA Nextcloud appliance from hanssonit to use on proxmox. The created VM had 1x 40GB disk for the OS + 1x 40GB disk for the data (which is a zfs "ncdata" pool mounted at /mnt/ncdata within the VM). Both are virtual disks hosted on a ZFS storage of PVE (vm-101-disk-0 and vm-101-disk-1), so I am actually using ZFS on top of ZFS (ZFS in the VM which is hosted on a ZFS PVE storage).
40GB was not enough for the data so I expanded vm-101-disk-1 up to 5000GB! My idea was to give a lot with thin provisioning so I wouldn't have to expand again. But I realized afterwards that nextcloud performs its own hourly ZFS snapshots so the disk is filling very quickly when I add / delete many files in nextcloud (it doesn't prune these snapshots because there is still a lot of space). Right now, only ~300GB of files are hosted on nextcloud but it uses ~1100GB because of the many files I added/deleted which are in snapshots.
I am not ready to give 5000GB yet so I would like to shrink back to 1500GB. The documentation at https://pve.proxmox.com/wiki/Resize_disks explains that I need to prepare the VM before executing a qm resize (which sounds logical). I know how to shrink an EXT4 partition within the VM with gparted but I read it is impossible to shrink a ZFS pool. I also read contradictory methods and I already screwed it (currently restoring from backup...)
What method would you use in my case?
Thanks for any help!
Last edited: