MooseFS metadata recovery

MooseFS chunk data is not enough without the master metadata that maps names and files to those chunks.

The MooseFS master keeps the filesystem namespace and chunk relationships in memory, periodically saves metadata, and records later changes in changelogs. Metalogger and follower copies can provide other generations when the master disk fails or fills.

Understand the symptom

Recovery needs a matching metadata checkpoint plus every usable changelog after it.

WHY

What is happening

When the master cannot store metadata because its disk is full, it searches configured and emergency locations and may exit after successfully writing metadata.mfs.emergency. An older checkpoint without later changelogs can restore old names and sizes while omitting recently created files; chunkservers may still contain those unreferenced chunks.

What you may see

Symptoms that change the recovery path.

01

Master starts with empty namespace

It may be reading the wrong data directory or a newly created metadata file.

02

metadata.mfs is short or corrupt

A failed save may have replaced the expected current checkpoint.

03

Master entered emergency mode

Storage or permission failure prevented a normal metadata save.

04

Chunks exist but files are missing

Restored metadata may predate the chunk creation or last file update.

Protect the source

Actions that can make the situation worse.

01

Starting empty metadata can mark chunks unused

Valid chunks may become candidates for cleanup when no namespace references them.

02

Skipping changelogs loses recent operations

Creates, appends, renames, and deletes after the checkpoint will not be represented.

03

Mixing versions can break replay

Metadata and changelog formats must match the compatible master software.

Do this now

Safe steps before evaluation.

01

Stop all MooseFS services

Prevent cleanup, replication, writes, and new metadata saves.

02

Copy every master generation

Preserve current, back, emergency, CRC, stats, and all changelog files.

03

Collect secondary metadata

Acquire Metalogger, follower, supervisor, and external backup copies.

04

Inventory chunkservers

Record server identity, paths, chunk counts, disks, and last-known connection times.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Generation comparison

NEPFOSYS validates checkpoints, CRCs, changelog continuity, and software versions.

02

Offline metadata reconstruction

The newest consistent namespace is built without contacting live chunkservers.

03

Chunk reconciliation

Referenced and orphaned chunks are compared before controlled filesystem export.

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.

Can chunkservers rebuild the directory tree by themselves?

No. Chunks do not contain the complete namespace and file-to-chunk mapping.

Where can emergency metadata be written?

MooseFS may try its data path, the service user's home, and several root, tmp, var, usr, or local emergency locations.

Should I delete goal-zero chunks?

Not during recovery; they may include data that newer metadata referenced before the failure.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case