Skip to content

raid1 seeded rebuild — monotonic reintegration (SPEC-74 M6, stacked on #13)#17

Open
rducom wants to merge 2 commits into
feat/spec-73-tieringfrom
feat/seeded-rebuild
Open

raid1 seeded rebuild — monotonic reintegration (SPEC-74 M6, stacked on #13)#17
rducom wants to merge 2 commits into
feat/spec-73-tieringfrom
feat/seeded-rebuild

Conversation

@rducom

@rducom rducom commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Stacked on #13. First commit is the DESIGN + P5b RPC contract (docs/SEEDED-REBUILD-DESIGN.md): the joining member attaches write-replicated/read-excluded, an epoch freeze taken AFTER the attach fixes the delta (H1 folds the interstice), and the in-raid rebuild engine backfills seeded with CBT dirty ranges — fast-advance across clean gaps, per-window quiesce_range unchanged, NO admission pause anywhere on the path.

Implementation commits follow on this branch: raid1 read_excluded decoupling, seeded raid_bdev_process, the two RPCs (add_base_bdev{write_only} + start_seeded_rebuild), tests. Gate: SPEC-74 C4 bench (p99-under-roll A/B vs today's ~4s pause window) — burden of proof on the window.

…ion, no pause

Design for SPEC-74 M6 (spdk-csi): the joining raid1 member enters the write
path immediately (write-only attach: write-replicated, read-excluded) and the
historical delta — FIXED by an epoch freeze taken AFTER the attach (H1 folds
the interstice) — is backfilled by the in-raid rebuild engine seeded with CBT
dirty ranges (fast-advance across clean gaps, per-window quiesce_range region
lock unchanged). Correctness argument in the doc: clean-gap skipping is safe
only BECAUSE the member is already write-replicated everywhere; the copy reads
current healthy-leg content under the window quiesce, so no external-copy
clobbering path exists.

Grounded on verified mechanics: whole-range watermark process (bdev_raid.c),
ch_processed split routing, raid1 read/write both keyed on channel presence
(the one extension needed: per-member read_excluded), CBT frozen-epoch range
export, patch-0001 skip_rebuild promotion/unwind discipline, patch-0008 range
shapes, SEC1 audit.

RPC surface (two-phase): bdev_raid_add_base_bdev {write_only} +
bdev_raid_start_seeded_rebuild {name, base_bdev, ranges[]}. RPC-CONTRACT gains
P5b; P5 (pause window) remains until the C4 bench decides — burden of proof on
the window.
@rducom
rducom requested a review from a team as a code owner July 7, 2026 01:56
…eded backfill)

Implements docs/SEEDED-REBUILD-DESIGN.md (SPEC-74 M6 / P5b): add_base_bdev
gains write_only (member wired into all channels for WRITES, read_excluded
until completion, SB flip deferred); bdev_raid_start_seeded_rebuild starts the
in-raid rebuild seeded with CBT dirty ranges — clean windows complete without
copy (per-window quiesce kept, V1), dirty windows copy exactly as vanilla.
Completion clears read-exclusion and flips the SB slot (0001 discipline).
Failure follows the vanilla member-removal path; ranges freed on every
teardown. SEC1-audited RPC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant