Trim support - automatically enabled?

All your general support questions for OpenZFS on OS X.

Trim support - automatically enabled?

Postby Sharko » Fri Sep 06, 2019 5:33 pm

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
Sharko
 
Posts: 230
Joined: Thu May 12, 2016 12:19 pm

Re: Trim support - automatically enabled?

Postby lundman » Mon Sep 09, 2019 3:47 pm

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
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 18 guests

cron