← Back to team overview

aims team mailing list archive

[Bug 1276941] Re: fstrim-all should not be run on mdadm devices

 

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...

-- 
You received this bug notification because you are a member of AIMS,
which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1276941

Title:
  fstrim-all should not be run on mdadm devices

Status in “util-linux” package in Ubuntu:
  Fix Released

Bug description:
  I see that fstrim-all checks for devmapper,  but I'm using mdadm and
  get this:

  Subject: Anacron job 'cron.weekly' on eldon
  From: Anacron <root@eldon>
  Date: 06.02.2014 09:43
  To: root@eldon

  /etc/cron.weekly/fstrim:
   HDIO_DRIVE_CMD(identify) failed: Invalid argument
  device /dev/md127 is not an Intel or Samsung drive

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: util-linux 2.20.1-5.1ubuntu14
  ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
  Uname: Linux 3.13.0-5-generic x86_64
  ApportVersion: 2.13.2-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Feb  6 09:44:42 2014
  InstallationDate: Installed on 2012-11-07 (455 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  SourcePackage: util-linux
  UpgradeStatus: Upgraded to trusty on 2014-01-07 (29 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1276941/+subscriptions