CephFS metadata recovery

A damaged CephFS MDS rank can isolate a subtree or stop the filesystem because stored metadata cannot be replayed safely.

CephFS metadata damage can follow lost RADOS objects, MDS journal trouble, software failure, or an incomplete recovery. Clearing a damaged flag does not repair the underlying directory entries, backtraces, or journal.

Understand the symptom

The MDS turns RADOS metadata objects into paths, inodes, directory fragments, and file layouts.

WHY

What is happening

Damage may affect an individual dentry or an entire rank. Low-level data-scan and journal-reset tools can recover partial structure but may discard unreplayable history or place nameless files in lost+found.

What you may see

Symptoms that change the recovery path.

01

MDS rank is damaged

No daemon will take the rank until its underlying issue is addressed.

02

MDS_DAMAGE health warning

A dentry, dirfrag, backtrace, or related metadata object is unreadable.

03

Subtree returns I/O errors

Damage is isolated but affected paths are unavailable.

04

MDS enters read-only mode

Metadata-pool writes failed and client modifications stop.

Protect the source

Actions that can make the situation worse.

01

Clearing the flag fixes nothing

The next daemon can encounter the same damage again.

02

Journal reset discards history

Unreplayed namespace operations may be lost.

03

Data scan can create partial namespace

Recovered objects may lack original names or relationships.

Do this now

Safe steps before evaluation.

01

Stop avoidable cluster changes

Pause reweighting, pool deletion, MDS reset, and cleanup.

02

Save damage and map output

Capture health detail, fs dump, damage ls, pool IDs, and epochs.

03

Protect metadata pool members

Image unstable OSD devices and retain every replica.

04

Identify priority subtrees

Document critical paths, clients, snapshots, and application ownership.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Damage-scope review

NEPFOSYS maps ranks, pool objects, journals, and affected paths.

02

RADOS preservation

Unique metadata and unstable OSD media are protected first.

03

Controlled reconstruction

Repair candidates and extracted files are validated outside production.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

Does ceph mds repaired fix metadata?

No. It clears the damaged status only after the underlying issue has been addressed.

Can data-pool objects survive metadata loss?

Yes, but paths, names, sizes, and layouts can be incomplete without metadata.

Should I run cephfs-data-scan immediately?

No. Preserve the cluster first; some expert recovery steps are destructive or produce partial results.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case