Jump to content
SavellM

BTRFS TRIM doesnt work

12 posts in this topic Last Reply

Recommended Posts

I have a LSI 9201-16i.

I noticed that my TRIM command doesnt work.

I read some stuff about some controllers not supporting TRIM but not sure what the work around is for it.

Nov 28 02:00:12 unRAID kernel: print_req_error: critical target error, dev sdl, sector 1950351263

Nov 28 02:00:12 unRAID kernel: BTRFS warning (device sdl1): failed to trim 1 device(s), last error -121

Nov 28 02:00:12 unRAID root: /var/lib/docker: 31.9 GiB (34268774400 bytes) trimmed on /dev/loop2

I am using 2x Samsung 860 Evo 1tb drives as my cache.

 

Is there anything I can do, or do I really need to get this working? IF I dont will I see issues down the line?

unraid-diagnostics-20191128-1021.zip

Edited by SavellM

Share this post


Link to post

It's a known issue, it only works with SAS3 models, SAS2008 based models work with firmware downgraded to p16, it might also work for SAS2016 models, but a better solution would be to use the onboard Intel SATA ports if possible.

 

 

Share this post


Link to post

Hey Johnnie, 

I could in theory use onboard SATA, but I have my 2 cache drives in the front of my case using the backplane.

It would be so much better/easier to keep them there as they run a lot cooler. 

 

I have a SAS3008 (which you probably noticed in the logs) but I cant remember which firmware its running.

How come you have to downgrade firmware for it to work?

Edited by SavellM

Share this post


Link to post

I didn't noticed at first, you also have one LSI 9300-8i or similar, connect the SSDs there, that one will trim them.

Share this post


Link to post

Ok I just looked at the diagram for my backplane BPN-SAS-846A and where I connected the SAS3008 to.

I'll move my drives around tonight hopefully. 

 

I have 8 ports running of this controller and the rest off the 9201-16i.

 

It wont matter the mix match of controllers to the backplane will it?

 

Share this post


Link to post
1 minute ago, SavellM said:

It wont matter the mix match of controllers to the backplane will it?

That's not a problem.

Share this post


Link to post

Also note that LSI requires SSDs with determinist trim support, or trim won't work, 860 EVO that you are using supports it, but if for example you were using the 850 EVO it wouldn't' work.

Share this post


Link to post

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.