Retired > 2.3-RC Snapshot Feedback and Issues - ARCHIVED

2.3 RC Trim and alignment?

(1/3) > >>

Koenig:
Got me some new hardware to replace my old pfsense machine:
5257U
16GB RAM
250GB Samsung 850 EVO

Me beeing very new to pfsense (had help with my old installation + it has "grown" over the years) I have a lot of questions.

To start with I'm wondering if the installer from the memstick image aligns the partitions and enables trim if you have a SSD?

Keyser Soze:

I don't have that hardware, but FWIW, I had to manually enable trim on my Samsung SSD.

You can check to see if trim is already enabled by doing:


--- Code: ---tunefs -p /

--- End code ---

If trim is on, one of the lines of output will show enabled as below:


--- Code: ---tunefs: trim: (-t)                   enabled

--- End code ---


If it's not enabled, you have to manually enable it once while running in single user mode. I used the following tutorial to set mine.

https://gist.github.com/mdouchement/853fbd4185743689f58c

Koenig:

--- Quote from: Keyser Soze on April 06, 2016, 06:58:22 pm ---
I don't have that hardware, but FWIW, I had to manually enable trim on my Samsung SSD.

You can check to see if trim is already enabled by doing:


--- Code: ---tunefs -p /

--- End code ---

If trim is on, one of the lines of output will show enabled as below:


--- Code: ---tunefs: trim: (-t)                   enabled

--- End code ---


If it's not enabled, you have to manually enable it once while running in single user mode. I used the following tutorial to set mine.

https://gist.github.com/mdouchement/853fbd4185743689f58c

--- End quote ---

So I followed the instructions from the link but when verifying that TRIM really was enabled I get this:

On command: "tunefs -p /" I get "tunefs: trim: (-t)                                         enabled"
But with : "tunefs -p /var" I get "tunefs: trim: (-t)                                         disabled"

EDIT: Just realized why I got different results, I have enabled "/var" as RAM-disk in the WEB-GUI

Then there's the question of partition alignment, does the installer do it properly?

betatest:
Do not enable TRIM on Samsung SSDs!

I am serious! They have a very strange TRIM bug under Linux based machines!
It will destroy all your data. I had one in a QNAP NAS.

After a lot of configuration and setting up VMs on that QNAP, TRIM did not start instantly but after some days and destroyed everything  >:(

And do not make the same mistake as me and think that will not happen to the PRO series. It also happens to them. Have fun explaining that bug to your reseller  :P
Buy a intel SSD and you can save a lot of headache! They are not that much more expensive anymore and way more reliable.

Koenig:

--- Quote from: betatest on April 07, 2016, 08:00:21 am ---Do not enable TRIM on Samsung SSDs!

I am serious! They have a very strange TRIM bug under Linux based machines!
It will destroy all your data. I had one in a QNAP NAS.

After a lot of configuration and setting up VMs on that QNAP, TRIM did not start instantly but after some days and destroyed everything  >:(

And do not make the same mistake as me and think that will not happen to the PRO series. It also happens to them. Have fun explaining that bug to your reseller  :P
Buy a intel SSD and you can save a lot of headache! They are not that much more expensive anymore and way more reliable.

--- End quote ---

Perhaps related to this: https://linux.slashdot.org/story/15/07/30/1814200/samsung-finds-fixes-bug-in-linux-trim-code

It should be fixed now anyway.

Navigation

[0] Message Index

[#] Next page

Go to full version