ZFS disk resize

krystianen

New Member
Jun 6, 2021
19
3
3
41
Hi,
I have 1tb ZFS disk, i'm using for data storege. I've allocated almost 100% od storage, so i dont have enoght space even for snapshots.

How can i resize 1tb drive (to eg. 750gb) mounted to VM without losing data?


1625471827084.png


1625471759191.png
 
If the disk is full, it's full, what do you want to shrink? VM images are thinly provisioned on ZFS, so there's only a possibility to run fstrim -a inside the guests and hope for some blocks to be freed. Also, set the autotrim option in the dataset which contains the images' zvols.