ZFS trim and scrub

Started by kevindd992002, January 02, 2025, 11:11:24 AM

Previous topic - Next topic
The short answer to that is no. The long answer you will find here.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

Quote from: meyergru on January 19, 2025, 04:37:14 PMFor the default zroot pool, autotrim is on. While you could scrub, it would only be useful if you had multiple disks.
I tend to disagree: a scrub will check the checksums and therefore
show if the file system is corrupted.

It won't be able to self-heal with just one disk, but it will be able to tell you that you need to pay attention to that pool (e.g. replace the disk and restore from backup).

Quote from: EricPerl on January 20, 2025, 09:53:30 PMIt's in your HOWTO ;-)
QuoteThat is, if the ZFS "autotrim" feature is not set manually. You can either set this via the OpnSense CLI with "zpool set autotrim=on zroot" or, better, add a daily cron job to to this (System: Settings: Cron) with "zroot" as parameter.
You can trim your zpool once via CLI with "zpool trim zroot".


Oh nice, I didn't know meyergru had a How To guide. Good to use for my environment then.

Quote from: meyergru on January 21, 2025, 12:54:00 PMThe short answer to that is no. The long answer you will find here.
Thanks for letting me know and I'm glad I asked - I saw your feature request and will wait to see if something official gets added.