Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Newbie wondering about Autotrim on all-NVMe ZFS mirror

Featured Replies

Hello everyone, first time posting here.

I've got one of those Beelink Mini MEs that were popular this summer, and I'm just about ready to start the array. I've got a 4TB mirror ready to go, but I'm wondering about the Autotrim setting. Default is On, but my AI helper says that I should turn it off:

⚠️ Autotrim: No, Do Not Enable This

Suggestion: Disable autotrim at the pool level.

This seems wrong, but it's the right move. autotrim=on tells ZFS to run a TRIM command every single time you delete a file. If you delete 10,000 small files, it runs 10,000 TRIM operations. This can cause massive performance stalls and slow down your pool during heavy use.

The Correct Solution:

  1. Disable autotrim in the pool settings.

  2. Install the "User Scripts" plugin from the Community Apps.

  3. Create a new script that runs a weekly zpool trim your_pool_name.

  4. Schedule this script to run at an idle time, like 3:00 AM on a Sunday.

This gives you the best of both worlds: your SSDs get trimmed (which is essential for their health and speed), but it happens in one efficient batch operation during off-hours, not as a constant performance-killing interruption.

I'm totally new to this, so I figured I'd ask here before blindly following algorithmic advice. What would you recommend?

My setup:

  • Unraid 7.2

  • two 4TB WD Red NVMes

  • ZFS mirror

  • Scrub schedule set to monthly (maybe not relevant to this issue?)

Thanks for any help you can give🙏

Solved by JorgeB

  • Community Expert
  • Solution

Leave it on, but it's still recommended to run the scheduled trim as well.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.