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.
 

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!