Ceph: MDS(s) are read only after logging "failed to commit dir 0x1 object, errno -22"

Solution Verified - Updated -

Issue

  • MDS(s) in the Ceph cluster are read only state.
$ ceph health detail
HEALTH_WARN 1 MDSs are read only; 1 MDSs behind on trimming
[WRN] MDS_READ_ONLY: 1 MDSs are read only
    mds.ocs-storagecluster-cephfilesystem-a(mds.0): MDS in read-only mode
  • MDS(s) are read only, after commit error on cache.dir(0x1)
2023-01-10T14:13:44.740+0000 7ff49bbd6700 -1 log_channel(cluster) log [ERR] : failed to commit dir 0x1 object, errno -22
2023-01-10T14:13:44.740+0000 7ff49bbd6700 -1 mds.0.12345 unhandled write error (22) Invalid argument, force readonly...
2023-01-10T14:13:44.740+0000 7ff49bbd6700  1 mds.0.cache force file system read-only
2023-01-10T14:13:44.740+0000 7ff49bbd6700  0 log_channel(cluster) log [WRN] : force file system read-only
2023-01-10T14:13:44.740+0000 7ff49bbd6700 10 mds.0.server force_clients_readonly

Environment

  • Red Hat OpenShift Data Foundation 4.10
  • Red Hat OpenShift Data Foundation 4.11
  • Red Hat OpenShift Data Foundation 4.12
  • Red Hat Ceph Storage (RHCS) 5.0.x
  • Red Hat Ceph Storage (RHCS) 5.1.x
  • Red Hat Ceph Storage (RHCS) 5.2.x
  • Red Hat Ceph Storage (RHCS) 5.3.0
  • Red Hat Ceph Storage (RHCS) 5.3.1
  • Red Hat Ceph Storage (RHCS) 6.0.x

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