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

Solution Verified - Updated -

Issue

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

Environment

Red Hat OpenStack Platform 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In