Jump to content

Trim SSD's on 6.9


Recommended Posts

Posted

I think I remember seeing somewhere that the trim plugin, and scheduling trim is no longer necessary or recommended after upgrading to 6.9. I am not sure if I actually read this, or not. Hoping someone could verify this info for me. 

  • Upvote 1
Posted
1 minute ago, JorgeB said:

It's not necessary for btrfs pools, still is if you use XFS.

 

That is the fastest response I have ever gotten. Has the recommendation changed on what filesystem to use for cache/pool drives? I was always told btrfs only for multiple drives, otherwise XFS due to stability.

Posted
3 minutes ago, JorgeB said:

XFS is the best choice for most users using single device cache, unless you need the btrfs features.

 

Thank you sir. It occurs to me that I had read before that the primary hang up with using SSD's in the array was something to do with the way it handled trim. Is this possibly foreshadowing for this feature being made more possible in the near future?

  • 3 weeks later...
Posted (edited)

Not only is the TRIM utility not useful for btrfs formatted SSDs (because TRIM is built in to btrfs) but it appears to be positively dangerous. My recently destroyed btrfs SSD cache drive was using the UnRAID TRIM utility (on advice from other UnRAID users)  and succumbed after a couple of months, turning read-only with the error:

 

cache and super generation don't match, space cache will be invalidated

 

If I'm reading this aright (always a big IF) and the current UnRAID implementation of TRIM is destructive on btrfs-formatted SSDs, shouldn't the utility be updated to detect btrfs, warn the user, and render itself inactive?

 

The good news is that only the btrfs formatting was destroyed. Reformatted as xfs, the SSD lives on. But if I can get confirmation of my assertions here, I'm inclined to return the SSD to btrfs.

 

-- 

Chris

Edited by bidmead
spelling correction
Posted
1 minute ago, bidmead said:

Not only is the TRIM utility not useful for btrfs formatted SSDs (because TRIM is built in to btrfs) but it appears to be positively dangerous.

It's perfectly fine to run trim on btrfs filesystems.

 

1 minute ago, bidmead said:

cache and super generation don't match, space cache will be invalidated

This is just a warning, unrelated to trim, and not a reason to make a filesystem read-only, something else must have happened.

Posted (edited)

I've raised a query with the vendor about this, @JorgeB. I'm continuing to run the cache xfs-formatted with a weekly TRIM. I'll report back here if I find out more.

 

-- 

Chris

Edited by bidmead
s/monthly/weekly
Posted
8 minutes ago, bidmead said:

I've raised a query with the vendor

 

What's the device in question? Other people might have them too so would be useful to know, in case it does have buggy firmware.

Posted (edited)

Good question, @John_M. It's all set out in the UnRAID story. The SSD in question uses RAISE and I did ask the forum earlier whether this made an external TRIM utility redundant but the response seemed to be to go ahead with TRIM anyway.

 

I still have my doubts about whether the combination of btrfs, TRIM and RAISE may not be asking for trouble. I understand that OWC, the manufacturer, is currently investigating this. Meanwhile, I'm running the SSD, now happily formatted as xfs. TRIMmed weekly, uneventfully.

 

-- 

Chris

Edited by bidmead
adding links
  • Thanks 1
  • 2 months later...
  • 4 months later...
Posted
On 5/8/2021 at 2:46 AM, JorgeB said:

XFS is the best choice for most users using single device cache, unless you need the btrfs features.

 

I have one XFS cache SSD. If I want to add another, I should go back to btrfs?

Posted

If you add another pool (a cache pool, and say a downloads pool), then XFS is still the way to go.  BTRFS is really only used if you have a multi-device pool (2 SSDs for redundancy in a pool named "cache")

Posted

Redundancy was the plan... I'm refreshing my server, so maybe I'll see how it handles without cache. Is this topic documented anywhere? Is it as simple as adding a second btrfs SSD, moving files over, then switching the current SSD to btrfs and adding it back?

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...