Trim
-
Does anyone know how to run trim on a SG-2100MAX?
I ran zfs scrub and it shows 46% fragmented I want to trim it for the first time
-
Like:
[23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status pool: pfSense state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. config: NAME STATE READ WRITE CKSUM pfSense ONLINE 0 0 0 ada0s3a ONLINE 0 0 0 errors: No known data errors [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool trim pfSense [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status pool: pfSense state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. config: NAME STATE READ WRITE CKSUM pfSense ONLINE 0 0 0 ada0s3a ONLINE 0 0 0 (trimming) errors: No known data errors
-
But you probably don't need to because:
[23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool get autotrim NAME PROPERTY VALUE SOURCE pfSense autotrim on local
-
What do you think about this github?
https://github.com/clara-j/pfsense_zfs_check
It has a bash program to auto run zfs scrub on every pool
-
I wouldn't expect to need to scrub at every boot. Though I probably reboot more often than most!
You can also see if trim is required using:
[23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status -t pool: pfSense state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. config: NAME STATE READ WRITE CKSUM pfSense ONLINE 0 0 0 ada0s3a ONLINE 0 0 0 (100% trimmed, completed at Mon Dec 11 19:41:30 2023) errors: No known data errors
-
@stephenw10 I have the cron job for it set to scrub once a month.