Am I correct in assuming that I will need to create a cron job to run "zpool trim" on, e.g., a weekly basis?
Because the "autotrim" property doesn't appear to be set on zpools by default (neither "zfs get all" nor "zdb" show it), and I couldn't find any existing cronjob or timer that runs "zfs trim". And fstrim.timer (which can be enabled via "systemctl enable fstrim.timer") appears to be about fstrim, which I don't think works for zfs.
To clarify: This question is not about reducing the space used by thin provisioned VMs (which usually is addressed by running fstrim in VMs). I am looking to use the trim feature in zfs 0.8 for the SSDs built into the Promox host.
Thanks!
Because the "autotrim" property doesn't appear to be set on zpools by default (neither "zfs get all" nor "zdb" show it), and I couldn't find any existing cronjob or timer that runs "zfs trim". And fstrim.timer (which can be enabled via "systemctl enable fstrim.timer") appears to be about fstrim, which I don't think works for zfs.
To clarify: This question is not about reducing the space used by thin provisioned VMs (which usually is addressed by running fstrim in VMs). I am looking to use the trim feature in zfs 0.8 for the SSDs built into the Promox host.
Thanks!