Is there DISCARD support for md/raid0 devices in RHEL 7?

Solution Unverified - Updated -

Issue

In some RHEL7 versions the fstrim command on md/raid0 reports following.

cmd: fstrim /mountpoint
fstrim: /mountpoint: the discard operation is not supported

And there are these logs in /var/log/messages file with messages like below.

md/raid0: discard support disabled due to performance uncertainty.
Set raid0.devices_discard_performance=Y to override. 

Environment

  • Red Hat Enterprise Linux 7

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