ZFS How do I shrink or extend my ZFS filesystem?

Hello,
I have some FreeBSDs running as vm over KVM/QEMU QCOW2 Hypervisor. They are running great.
However I would like to reduce or extend my ZFS (virtual) disk.
I know how to extend it with XFS and using GPARTED and LVM. But have no idea howto on ZFS

How can I achieve this?
Thanks for your answers indeed,

Martin
 
Use gpart resize ... to enlarge the partition, if there is one. Then use ZFS's autoexpand feature.

Don't reduce the size though, that's not going to work. You can only expand.
 
Back
Top