Shrink ZFS Subvol & Subvol Ownership

May 18, 2019
231
15
38
Varies
I would like to shrink /zfs-dedup-sdx4/subvol-111-disk-0 to 50GB from 85GB, to match the other subvols. I understand this is somewhat manual, via backup/restore or zfs send/receive, but I can't set a new disk size when restoring. I do have enough space on /zfs-dedup-sdx4 to recreate the subvol there with 50GB and I also have another ZFS partition with plenty of storage.

The other question is regarding ownership of the subvol. subvol-102-disk-0 is owned by root, and the others by UID 10000. CT 102 works fine, and maybe I shouldn't bother. Or should I correct the permissions to this subvol?

TIA

1612119924171.png
 
This might be a solution: Shrink your filesystem within the VM.
Attach a new disk with the desired size and dd things over.