Thin provisioning - Advantages and Disadvantages for use in ZFS ?

bitblue.lab

Member
Oct 7, 2015
75
0
6
I was thinking is there any disadvantages using Thin provisioning in ZFS storage pools? ZFS has many features including compression so I was thinking if compression is turned on and Thin provisioning used can it help to save space and use more VM-s or data in Drives.

Any experience with that in production ?


 
I use ZFS overprovisioning with or without compression for years. No issues, except you don't want to fill the VM disks.
I do that to use a big disk template for VMs. Some use the big disk size, some don't, so they all fit inside the bigger storage pool.
 
so if a disk of 200GB gets used only 130 GB and after using to 130GB it removes files and goes to 20GB ( does in storage pool this works I mean does it go again to 20GB or stays full as where it was before )
 
It depends.

For zvols, using VIRTIO-SCSI as the disk driver will pass-through UNMAP requests from the guest and the underlying volume will honor them.