ZFS thin provision not enabled by default (Proxmox 7.1)

kariboo92

Member
Apr 12, 2021
5
0
6
50
Hi
when creating a new zfs volume, compress is on by default, but storage is configured with thin provision disabled.

Is there a reason why thin provision is not enabled ?
Does compression on makes thin provision useless ?

Should we create the zfs volume manually instead of using proxmox UI ?

Thanks
 
ZFS is not inherently thin or not. When creating a ZFS pool, you don't have to choose between the two upon creation as it can be turned on and off whenever you like in the Storage settings (after which it will be used for newly created virtual disks).
I assume that it is not enabled by default when you select Add Storage when creating a new ZFS pool just because there is no such option in that screen (because you do not have to choose at the time of creation of the pool). This might be an oversight or intentional, I cannot say. Some other Storage options (blocksize, nodes, content) can also only be set afterwards,

I may have misunderstood your questions, but I think you can do all this via the GUI and you don't need to do it manually or that it's related to compression.
 
Thanks,
in fact the real question is:
is there an advantage enabling thin provision ( manually or within promox UI ) when ZFS compress is on ?
 
Thanks,
in fact the real question is:
is there an advantage enabling thin provision ( manually or within promox UI ) when ZFS compress is on ?
It doesn't matter if compression is enabled or not. Those wont effect each other. If you want to make use of thin-provisioning then enable it, if not then not.
ZFS is a Copy-on-Write filesystem so you want to use discard/TRIM anyway. The difference when not checking the "thin" checkbox in GUI for your ZFS pool is that then the "refreservation" ZFS option will be set for the zvols.
 
Last edited:
  • Like
Reactions: leesteken

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!