fstrim fails for md-raid0 devices with 'the discard operation is not supported' in RHEL7

Solution Unverified - Updated -

Issue

  • 'fstrim' fails for md-raid0 devices with the discard operation is not supported in RHEL7.
fstrim -v /mount_point
fstrim: /mount_point: the discard operation is not supported

Environment

  • Red Hat Enterprise Linux 7.2
    • kernel higher than 3.10.0-229.el7.x86_64.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content