3

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

chrone
  • 415
  • 1
  • 5
  • 18
  • 1
    See this and this (this is for 11.04, but probably still applies). – saiarcot895 May 06 '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 06 '14 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 06 '14 at 15:32
  • Hi Sparhawk, I also got this verbose when doing "fstrim -v /" "/: somerandomnumber bytes were trimmed". I guess the cron.weekly fstrim will do the job. how to check the cron fstrim log if it has been run before? – chrone May 07 '14 at 02:13
  • 1
    @chrone You can't! (Also, please put @Sparhawk in your reply, otherwise I don't get notified.) – Sparhawk May 07 '14 at 04:08
  • @Sparhawk oh okay, I'm new here, sorry. :D What do you mean by the you can't? Is it I can't see the verbose of fstrim-all or I can't see the fstrim log done by cron.weekly on my Intel SSD + mdraid RAID1? – chrone May 07 '14 at 05:07
  • 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 07 '14 at 05:11

0 Answers0