how to enable trim but not on the boot device?

Status
Not open for further replies.

Spirch

Cadet
Joined
Jun 18, 2017
Messages
3
my usb key was faulty so i found an old vertex ssd (like the first gen, 30 gig) that i had and it is working perfectly but it doesnt support trim

i keep getting ata error status related to trim in the console, after a little of googling i found out that it was because of the trim on that ssd.

setting vfs.zfs.trim.enabled=0 fix that issue but this is system wide and i dont want that

is there a way (could you provide step by step) to disable trim only on the boot device?

i looked into /conf/base/etc/ix.rc.d fstab but i'm really not comfortable or i dont know how to change it
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Realistically, you'll want a boot device that doesn't throw errors simply because it was told to TRIM.
 

rs225

Guru
Joined
Jun 28, 2014
Messages
878
There's a lot of defective SSDs out there, and the kernel has proper blacklists for a lot of them.

There is a way to turn off TRIM on a device, but unless it was done before the boot pool was running (impossible?) it would pass I/O errors back, which could be just as bad.
 
Status
Not open for further replies.
Top