ZFS How do I shrink or extend my ZFS filesystem?

Martin Garcia

Member

Reaction score: 1
Messages: 24

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
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,114
Messages: 33,671

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.
 
Top