Page 1 of 1

Trim support - automatically enabled?

PostPosted: Fri Sep 06, 2019 5:33 pm
by Sharko
Hi, just wondering if TRIM support, which landed in 1.9.0 according to the changelog, is automatically enabled? Or do we need to turn on a setting? Does it only work on whole SSD situations, or will it work on a partition of an SSD that is encrypted with the old FileVault encryption methond (non-native ZFS encryption)? Thank you for your response!

Kurt

Re: Trim support - automatically enabled?

PostPosted: Mon Sep 09, 2019 3:47 pm
by lundman
You either do it manually, using:

zpool trim [−d] [−r rate] [−c | −s] pool [device...]

Ie, either "zpool trim pool" for the entire pool, or "zpool trim pool device" for just one device in the pool.

For autotrimming, you use:

zpool autotrim=on|off pool

and you use "zpool status -t" to see the trim status.

https://fossies.org/linux/zfs/man/man8/zpool.8