How to run FSTRIM on RBD devices which acts as the backend for OpenStack VM?

Solution Unverified - Updated -

Issue

  • How to run fstrim on rbd devices which acts as the backend for OpenStack VM?
  • When trying to mount an RBD image it shows unknown filesystem type error.
# mount /dev/rbd0 /mnt/image
mount: /dev/rbd0 is write-protected, mounting read-only
mount: unknown filesystem type '(null)'

Environment

  • Red Hat OpenStack 13.
  • Red Hat Ceph Storage 3,4.
  • RBD

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