The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The primary attests, in its heartbeat, the store id (superblock UUID) of
each replica counted toward its write ACKs. A probe round answer carries
the replica's store id; a candidate is ready only when that id is the one
its primary attested (a replaced or never-attested store is not a
survivor). The promotion line carries the probed store id, and the target
refuses a promotion whose store id is missing or is not its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host owns the startup wait's one bound: it keeps the wait's start and
opens the window at the first reply at or after it; the run of replies
(and the window) ends on a transport, credentials or identity refusal;
/status shows the same bound. The provider asks the host for the bound
given its own start, and checks it on the attach retry path too: a
granted attach that keeps failing no longer holds the lease for ever
without serving. An identity refusal ends on an accepted identity-checked
call (the run of replies restarts there) or after 30 s of replies with no
new identity refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApplyFreshKnownZero now records the count in Stats.KnownZeroChunks and
logs it; when some sampled chunks stay unknown (a failed map publication
or a raced write) the log says the first cut will scan them, so a lab
run that sees a full first scan has the reason in the status and log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cut's PayloadNs now counts its staging rounds even when they uploaded
nothing (every staged chunk was zero), so a first cut that spent its time
reading and hashing shows it. The layer status gains StagedChunks: the
chunks staged by every cut attempt, failed ones included, so a cut retried
after its deadline shows the progress its earlier attempts made.
DirtyChunks is documented as the next cut's candidates, not its progress.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A workspace primary whose lease guard is missing or holds no granted lease
now reports NotReadyReason=lease_not_held first (the guard decides, through
the new WorkspaceLeaseGuard.Held, the lease term permits already used). The
guard logs its first grant once, as "re-granted after N refused renewal(s)"
when renewals were refused first (a restart before the forced-move barrier),
with the request-start time in unix_ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restarted old holder (G-O2 r8) started its NVMe target unconditionally
at startup and reported FrontendPrimaryReady=true from the authority view
alone, before and after its chunk-layer claim was refused ("fenced, not
serving"). The admit gate refused every command with Namespace Not Ready,
but that status is retried on the same path and then fails to the guest,
and the path advertised ANA optimized, so a listening, ready-looking but
fenced target is not safe.
- status: FrontendPrimaryReady is false while the volume's local durable
backend admits no I/O (attach pending, fenced, detached), with the
backend's evidence in the new NotReadyReason; Healthy stays the authority
view.
- blockvolume: the iSCSI, NVMe and ublk targets start only once the backend
first admits I/O (awaitBackendAdmitsIO, 10 ms); signals and the workspace
lease guard now start before that wait, and a stop requested during it
skips the frontends and goes straight to shutdown.
INV-FE-PRIMARY-READY-OPERATIONAL-001 (304 rows, 218 ACTIVE); M1 Recovering
-> Serving names the guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A per-volume worker takes a named snapshot of class scheduled once per
period, through the same seal path as an explicit snapshot (resolve the
request, one urgent cut, record that cut's HEAD). A restoring volume
(chunks its HEAD names still absent) is skipped and counted; a failure
keeps the control endpoint's code and is retried with a backoff doubling
from 1m to 1h; status carries the schedule state and snapshot_overdue.
Retention keeps the newest N scheduled snapshots (N from the newest one's
swb.schedule.keep label) separately from other snapshots.
--chunk-snapshot-schedule=daily:N|weekly:N|off, default daily:7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/status-schema.md is generated from the Go field comments (#341);
#338 rewrote the StageRounds comment group, so the composed train needs
the page regenerated (STATUS_SCHEMA_UPDATE=1). Docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>