At start, the leader master listed this filer and no other. A filer
added within about 15 seconds before the start, or at any time after, is
not detected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the bound-classification fix with a rule without a clock. A
round passes only when every master answered, none refused, and at least
one listed exactly the configured filer. A master that does not answer,
for any reason and at any time (it stalls, answers DeadlineExceeded
before its deadline, is down, or its address does not parse), leaves the
round unconfirmed, and the masters are asked again. The bound only ends
the asking. Then the start is refused, naming the masters that did not
answer, with "rerun when they answer". The two time tests are replaced
by one rule test with no timing assertion, in both master orders. Price,
stated on the standalone page: a chunk volume does not start while any
master of the filer's group is unreachable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The placement step reads the publisher's line (QueryVolumeStatus), which
exists before any lease is granted on it, with the bindings
(QueryWorkspace). A placement refused because the line was published in
between is read again: this exact placement counts as done.
- --abort also checks this host's settings for the target (volume, master,
layout id) before any change; another installation, or a running unit
without settings, refuses with nothing changed.
- volume backup requires --name: a name the command chose would be lost
with its terminal, and the same command could not resume it.
- The fake master answers a deleting or tombstoned target as the master
does (FailedPrecondition, not_admitted) and grants no lease, so every
re-run test runs in the published-before-lease interval.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GetVolume reports a restore target's recorded restore tuple (source
volume, snapshot, create request id): three additive read-only fields
filled from the lifecycle record. --abort reads it before any change
and refuses another restore's target, a plain volume, or a record with
no tuple (a blockmaster before v1.0.1) with nothing changed.
- restore reads the placement (QueryWorkspace) before placing: once the
authority line is published the master refuses any placement, so a
line for this replica with this binding is this restore's placement,
and a line for anything else refuses naming the abort.
- backup labels its snapshot with its request and accepts only an answer
carrying that label (the holder answers an existing name with the
snapshot already there); every printed fact must be present.
- Tests run the production volume-delete and release against the layout
catalog: dependent removal, the tombstone refusal, interrupted aborts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release fallback keys on volume_not_found, which also names a volume
the master does not know; the abort resolves the target at the master
first, so the code that follows is the layout's (no HEAD). After the
release path the master keeps the restore's not-ready record; the abort
prints that, the page says it, and the crash table checks the text on
the no-HEAD rows only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Whole-job commands over existing calls, with no state of their own:
- volume backup: the holder's snapshot, request id derived from the
volume and the name; the same command resumes the same request.
- volume restore: the master's restore create (request id derived from
target, source and snapshot), then binding and placement once the
target is store-ready, then volume start's steps.
- volume restore --abort: stop and disable the target's unit, remove its
settings, then delete it (volume-delete with HEAD, release which
tombstones without HEAD); the dependent is released only after the
target can no longer serve.
Every failure names the exact command to rerun or to abort. bindAndPlace
moves out of ops volume create so both use the same two calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restore page now names restore_source_not_own for a snapshot of a
restore target; a v1.0.1 release note lists both codes and calls out that
an unknown volume moves from bad_request (exit 2) to volume_not_found
(exit 1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page said the refused request still binds the target's name; a restore
refused for good removes its pending record, so the name stays free and a
restore from the source's own snapshot may use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The quick start said snapshots and restore work at once with weed; a
restore into a new volume needs the standalone setup, as the README says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. activating, deactivating and reloading may have a live
holder (reloading is an active unit): the guest read and the cut stay,
refusing when the holder is down, and --force --no-cut stops the unit. A
cut's success answer must carry cutLSN and headGen (LSN 0 is an empty
volume's); without them the outcome is unknown. The lost-answer fake now
records its publication, and the refusal reports that confirmed cut.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. Only an inactive or failed unit is nothing to stop; a
unit systemd is restarting (activating, deactivating, reloading) is
stopped without a guest read or a cut, and the output says no cut was
taken. The time in the closing sentence is read before the cut's
request, so the cut covers every write before it. A timed-out cut's
refusal says its progress is kept; the help and the page say how to add
a new volume until volume start can create one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
volume start runs an existing volume as sw-blockvolume@<volume>: it
writes the unit's settings file, resolves the layout id, enables and
starts the unit, waits until it serves, and prints the connect command.
volume stop refuses while a guest is connected (unless --force), takes a
cut, refuses when the cut failed or its outcome is unknown (unless
--no-cut, giving the recovery point's age), stops the unit, and ends
with what it promises: the recovery point in the object store is the
cut; writes after it are on this host only.
mini and the unit share one blockvolume settings builder; a test renders
the settings through the shipped unit and compares them with mini's
flags. A second supervisor on one durable root is refused (guard test).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>