What is happening
A damaged block index can hide valid chunk bytes, while a damaged chunk segment can affect selected series. Overlapping replacement blocks, tombstones, labels, and compaction lineage must be validated before reintroduction.
Prometheus TSDB recovery
Each Prometheus block contains chunks, an index, metadata, and optional tombstones. The WAL and checkpoints protect recent samples not yet compacted into a block. Deleting either can make the service start at the cost of data loss.
Understand the symptom
A damaged block index can hide valid chunk bytes, while a damaged chunk segment can affect selected series. Overlapping replacement blocks, tombstones, labels, and compaction lineage must be validated before reintroduction.
What you may see
Startup replay stops on an invalid record or checksum.
Series postings or label references cannot be decoded.
Samples in one segment or series range are damaged.
A block or head range may be absent.
Protect the source
Back it up before any last-resort action.
Preserve chunks even if the index fails.
Keep original blocks and parent metadata.
Do this now
Prevent compaction, retention, and WAL changes.
Keep blocks, WAL, checkpoints, tombstones, and metadata.
Record flags, retention, external labels, and remote-write state.
Long-term storage or remote-write receivers may hold missing samples.
NEPFOSYS process
NEPFOSYS maps block ULIDs, time ranges, compaction lineage, WAL, and checkpoints.
Readable index, chunk, and WAL records are decoded from copies.
Labels, timestamps, samples, gaps, overlaps, and remote copies are compared.
A clear next step
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 reviewQuestions, answered
It may allow startup but discards recent data represented only in the WAL.
Potentially, though series-to-chunk relationships must be reconstructed.
Yes. A receiver may contain samples absent from local TSDB storage.
DFW local · Nationwide mail-in