Comment 7 for bug 1276941

Revision history for this message
robi (robreg) wrote :

Guys, sorry not to agree completely with you: fstrim-all _should_ be run on mdadm devices if they are RAID1. Linux kernel support TRIMming of RAID1 md devices since Mar 11 2012. See http://lkml.iu.edu//hypermail/linux/kernel/1203.1/01772.html
This is present in Ubuntu since kernel 3.8 (raring) and I'm using it actively on my raid1 md device made up of an Intel and a Kingston SSD. I'm trimming the / mount, which is actually on /dev/md0.
One can even mound the md device in fstab with discard option, that works too:
EXT4-fs (md0): re-mounted. Opts: discard,errors=remount-ro
Using 12.04 with kernel 3.11, and plan to upgrade to 14.04 but this is a regression now...