Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm using the softwareraid (mdraid) RAID1 on 2 Intel SSD DC S3500 and I found there's a fstrim job on cron.weekly. Does it mean Ubuntu supports it?

I could not find any article saying that SSD mdraid and fstrim is supported for RAID1. And this bug on launchpad is confusing: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1276941

I tried to run fstrim manually and it works:

sudo fstrim -v /
/: somerandomnumber bytes were trimmed

No luck with the fstrim-all as used in the cron.weekly since there's no verbose option to run that command. https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1303199

share|improve this question

marked as duplicate by Eric Carvalho, karel, bain, mniess, Danatela Jun 18 at 4:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
See this and this (this is for 11.04, but probably still applies). –  saiarcot895 May 6 at 15:08
    
Thanks, all search results show me about discard mount option while I'm aiming for fstrim instead of discard. :) –  chrone May 6 at 15:18
1  
I'm not sure about the RAID part, but if you read the cron job, you'll see that fstrim only runs for Intel and Samsung SSDs. More info here, too. –  Sparhawk May 6 at 15:32
1  
@chrone You can't! (Also, please put @Sparhawk in your reply, otherwise I don't get notified.) –  Sparhawk May 7 at 4:08
1  
@chrone No worries. Perhaps I wasn't explicit enough. There's a bug link in my comment about. The weekly cron job uses fstrim-all, which creates no output. So unless you change the cron job to use fstrim instead (manually specifying paths), there's no way to tell if it works correctly or not. –  Sparhawk May 7 at 5:11

Browse other questions tagged or ask your own question.