﻿# A Lustre mirror can exist without being current

FLR mirror count is not a count of usable current copies. Inspect stale and nosync components, resync outcomes and verification before accepting a recovery mirror.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/lustre-flr-stale-mirror-resync-state/
Language: en

## Counting mirrors overstates recovery choices

A checkpoint file has several Lustre mirrors, and an inventory counts each as a usable recovery copy. Some components are stale, while another mirror is deliberately excluded from normal resynchronization. The file's layout therefore describes more copies than are currently eligible to supply the intended contents.

The [layout inspection manual](https://raw.githubusercontent.com/lustre/lustre-release/master/Documentation/man1/lfs-getstripe.1) defines stale components as not up to date and unavailable for ordinary reads and writes until resynchronized. Mirror presence, synchronization state and verified data agreement are separate claims.

## Preserve mirror and component identity

Capture the file identity, mirror identifiers, component extents and flags. A mirror can contain several components, so a single summary count can conceal stale ranges. Keep the layout observation with the checkpoint generation being evaluated rather than attaching it to a pathname indefinitely.

Record whether writers remain active. A comparison of mirror contents during a changing publication needs a supported consistency boundary. File-level replication does not by itself make an entire multi-file checkpoint an application transaction.

## Understand what resync actually selects

The [resync manual](https://raw.githubusercontent.com/lustre/lustre-release/master/Documentation/man1/lfs-mirror-resync.1) states that normal resynchronization copies from a synchronized mirror to stale mirrors. If none are stale, the command can do no work. Mirrors marked nosync are excluded from ordinary resynchronization unless explicitly selected by the documented option.

Consequently, successful completion is not proof that every listed mirror was refreshed. Preserve the selected mirror identifiers, flags and outcome. An intentionally frozen mirror should not silently become part of the current-copy count, nor should an operator overwrite it without understanding why it was excluded.

## Verification and repair answer different questions

The [mirror verification manual](https://raw.githubusercontent.com/lustre/lustre-release/master/Documentation/man1/lfs-mirror-verify.1) compares synchronized mirrors for identical data. Its ordinary verification does not repair differing contents. If mirrors disagree, choosing the correct source requires additional evidence about the intended checkpoint, not merely a majority of filenames.

The resync reference also distinguishes inconsistency without stale markers from normal stale-copy repair. Forced resynchronization requires explicit target selection. Treat that as a decision to overwrite selected contents, preserving the original evidence and approved source before proceeding.

## Accept the recovery mirror explicitly

Acceptance should identify the exact mirror and covered extents, establish the intended freshness state and validate contents against the application's known checkpoint manifest. Where supported, compare mirrors after completing synchronization, then restore the checkpoint through the intended recovery path.

[Checkpoint copy selection](/journal/google-multi-tier-checkpoints-failure-domains-restore-overrides/) explains why the recovery path must name the intended complete copy. [Checksum scope](/journal/guide-storage-object-checksum/) explains why agreement on checked data does not authenticate an unverified application manifest.

## Limits of synchronized copies

Synchronized mirrors may still share failure dependencies or contain the same logically invalid checkpoint. Data agreement does not establish independent backup retention, provenance or protection from an erroneous writer. This article reports no recovery experiment. It defines why a mirror inventory must include freshness, exclusions and verification outcomes before presenting copy count as usable recovery redundancy.
