TRIM(Discard) Debian 10 system with RAID 1 SSD

New to Debian (Or Linux in general)? Ask your questions here!

TRIM(Discard) Debian 10 system with RAID 1 SSD

Postby Radjin » 2019-08-25 14:25

I built a system with two identical 1TB SSD’s in a raid 1 using ext4. Recently, reading articles I find that trim(discard) may not be activated. I tried the command “findmnt -O discard” and received nothing. Reading a number of articles, mostly older, I am having trouble understanding if TRIM is supported in Debian 10, RAID 1. If it is supported, I understand that running it intermittently is better than continuously, again most articles on the subject are old. Assuming it is supported, how do I activate it and run it intermittently?


Radjin~
Radjin
 
Posts: 11
Joined: 2019-08-10 12:09

Re: TRIM(Discard) Debian 10 system with RAID 1 SSD

Postby Head_on_a_Stick » 2019-08-25 15:12

Radjin wrote:I understand that running it intermittently is better than continuously

Yes, enabling discard as an fstab option slows down your drive, makes undelete operations more difficult and has been known to cause data loss.

Radjin wrote:how do I activate it and run it intermittently?

Code: Select all
# apt install util-linux
# systemctl enable --now fstrim.timer

Check with
Code: Select all
systemctl list-timers
User avatar
Head_on_a_Stick
 
Posts: 10382
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: TRIM(Discard) Debian 10 system with RAID 1 SSD

Postby Radjin » 2019-08-25 18:07

Thanks for that. I had come across that command and found it was already installed, but was hesitant to use it as I could find no references to a RAID 1 setup; well no recent references. Any information on if it’s ok to run on a RAID 1?
Radjin
 
Posts: 11
Joined: 2019-08-10 12:09

Re: TRIM(Discard) Debian 10 system with RAID 1 SSD

Postby Head_on_a_Stick » 2019-08-26 05:24

Radjin wrote:Any information on if it’s ok to run on a RAID 1?

I don't know, ask a search engine.
User avatar
Head_on_a_Stick
 
Posts: 10382
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable
cron