Pcornel
Storage · Filesystems

CephFS

Cheat sheet · https://pcornel.dk/topic.php?topic=3957

Back to the Topic

Answer

CephFS clients contact MDS services for namespace/metadata and access file data through RADOS objects on OSDs. Availability therefore depends on client connectivity, MDS state, pool/PG/OSD health and the underlying cluster network/storage.

Remember

  • CephFS MDS healthy ≠ OSD/data path healthy.
  • Mounted client ≠ cluster HEALTH_OK.
  • CephFS ≠ Ceph RBD.
  • Replication in Ceph ≠ backup.

First checks

  • ceph fs status — CephFS status
  • ceph mds stat — MDS state
  • findmnt -t ceph — mounted clients

Commands

mount -t ceph

Verify in this order

client → MDS (metadata) + OSDs (data)

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Filesystems → CephFS filesystem map

Filesystem boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryA mounted CephFS client proves it reached enough control/data services for tested operations; it does not prove all MDS/OSD redundancy, cluster health or backup coverage.Correlate filesystem evidence with the backing volume/path/backend before repair
AcceptanceHealthy evidence: filesystem and MDS state are expected, pools/PGs/OSDs are healthy, client mount is stable and representative file operations complete with normal latency.Close only after the original path/workload and read-back check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3957

Confirmation

Confirm action

Continue?