XFS recovery planning

XFS metadata corruption should be evaluated from a protected copy before repair clears evidence.

XFS can shut down a filesystem after detecting inconsistent metadata, checksum errors, I/O failures, or an unreplayable log. The safest path depends on both the filesystem state and the storage underneath it.

Understand the symptom

An XFS mount failure can involve the log, allocation trees, directories, inodes, or failing storage.

WHY

What is happening

XFS uses a journal to replay recent metadata operations and checksums to detect invalid structures. A forced shutdown message may protect the filesystem from further writes. Repair utilities can rebuild consistency, but consistency is not the same as preserving every original name, path, or transaction. When XFS sits on LVM, RAID, SAN, or virtual storage, the entire stack and correct offsets must be mapped before repair.

What you may see

Symptoms that change the recovery path.

01

Metadata CRC error

Kernel logs may name a directory, inode, btree, or buffer verifier that rejected stored metadata.

02

Filesystem forced shutdown

XFS can stop access after detecting corruption or persistent I/O errors.

03

Log needs recovery

The filesystem may require the original device to replay a valid journal before ordinary repair can proceed.

04

xfs_repair stops on I/O

Underlying media or thin-pool problems can prevent a filesystem-only tool from completing safely.

Protect the source

Actions that can make the situation worse.

01

Log zeroing discards transactions

The -L option can remove metadata changes that have not been committed to the main structures.

02

Repair rewrites the source

A partially successful repair can make later reconstruction harder if no image exists.

03

Wrong LVM mapping shifts offsets

Operating on an incorrectly assembled logical volume can interpret unrelated sectors as XFS data.

Do this now

Safe steps before evaluation.

01

Unmount and stop dependent services

Prevent databases, containers, shares, and virtual machines from writing through the damaged filesystem.

02

Save diagnostic output

Preserve dmesg, journal logs, mount errors, xfs_info output, and commands already attempted.

03

Document the storage stack

Record RAID, multipath, LVM, encryption, partitions, snapshots, and device identifiers.

04

Image unstable media first

Perform repair analysis on a copy whenever disks report resets, timeouts, or unreadable sectors.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Stack and log assessment

NEPFOSYS maps the complete block path and evaluates whether the XFS log and geometry are coherent.

02

Controlled acquisition

Readable source regions are preserved with errors and missing areas documented.

03

Metadata reconstruction

Allocation trees, directories, inodes, extents, and file content are evaluated away from the originals.

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 xfs_repair preserve every file?

No repair tool can promise that. It prioritizes a consistent filesystem and may reconnect, rename, or discard structures it cannot validate.

Why can XFS corruption be a hardware problem?

Media errors, controller resets, thin-pool exhaustion, bad memory, and interrupted writes can all produce invalid metadata.

Should the filesystem be mounted read-only?

A read-only test may still trigger journal behavior depending on state and options. Preserve logs and use a controlled copy when the data is important.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case