Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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.

share|improve this question

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

This question was marked as an exact duplicate of an existing question.

See this and this (this is for 11.04, but probably still applies). – saiarcot895 May 6 '14 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 '14 at 15:18
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 '14 at 15:32
@chrone You can't! (Also, please put @Sparhawk in your reply, otherwise I don't get notified.) – Sparhawk May 7 '14 at 4:08
@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 '14 at 5:11

Browse other questions tagged or ask your own question.