How do I enable TRIM / Discard in a OpenStack KVM instance?

Solution Verified - Updated -


  • How do I enable TRIM (Discard) in a OpenStack KVM instance?

  • Mounting a file system with the option discard and running fstrim / results the error: fstrim: /: FITRIM ioctl failed: Operation not supported.


Red Hat OpenStack Platform (OSP) 7, 8, 9, 10, 11, 12, 13, 14, 15, 16

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