Red Hat Bugzilla – Bug 863837
TRIM requests are not passed down to the underlying md raid devices
Last modified: 2013-10-01 12:17:24 EDT
Description of problem:
TRIM requests are not passed down to the underlying MD raid devices. Even with modern SSDs, like the Vertex 4, we still see slowdowns in workstation usage after available sectors are filled up.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a mirrored md array
2. Create a partition and ext4 filesystem (let's call it /mnt/mirror) on the md array
3. fstrim /mnt/mirror
fstrim: /mnt/mirror: FITRIM ioctl failed: Operation not supported
As I understand, TRIM support for MDRAID is not yet merged in the kernel, but patches do exist.
When the patches are merged upstream, we'll pick them up via an update. Until then, this is really an upstream issue.
Now that the patches are merged upstream (https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/drivers/md/raid1.c?id=2ff8cc2c6d4e323de71a42affeb3041fa17d5b1), what's happening with this?