docs(upgrade): conditional snapshot, conditional restart timing, a successful empty pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-28 12:55:03 -08:00
1 parent 4555c61547
commit aacaff3a55
1 file changed
+14 -8
+14 -8
View File
@@ -12,8 +12,10 @@ in its log. There is no conversion step and no flag to set.
2. **Then each volume host, one at a time.** Each volume on the host serves again before you start on the next host.
3. **The `sw-block` CLI last.**
Before you start: take a snapshot of each volume (`sw-block ops chunk snapshot`), so that every volume has a recent
restore point whatever happens during the upgrade.
Before you start: for each volume that runs with `--chunk-control-endpoint`, take a snapshot
(`sw-block ops chunk snapshot`), so that it has a recent restore point whatever happens during the upgrade. A volume
without the endpoint cannot be asked for a snapshot or a cut; its recovery point during the upgrade stays its last
scheduled snapshot.
## 1. blockmaster
@@ -58,11 +60,13 @@ every acknowledged write is kept; no seal and no move are needed.
The cut needs the volume's `--chunk-control-endpoint`; without it, skip this step. If the cut answers a
retryable error or an unknown outcome, go on: the restart keeps every acknowledged write in the local WAL
either way.
2. Restart its unit: `systemctl restart <the volume's blockvolume unit>`. The new process renews within the
30-second lease and serves again from its local WAL (see
[restart without a hand-over](volume-lifecycle.md#same-host)).
2. Restart its unit: `systemctl restart <the volume's blockvolume unit>`. If the new process renews before its
lease ends, it serves again at once from its local WAL (see
[restart without a hand-over](volume-lifecycle.md#same-host)). If not, it waits for the re-grant described in
[after a crash](volume-lifecycle.md#after-a-crash) (with the default flags, up to 65 seconds after it stopped)
and then serves.
3. Check that it serves: its status shows `"Healthy":true` and `"AuthorityRole":"primary"`
(`curl -s 'http://STATUS/status?volume=v1'`). Then go on to the next volume.
(`curl -s 'http://STATUS/status?volume=v1'`). Wait for it to serve before you go on to the next volume.
**The guest during the restart:** the restart stops the NVMe/TCP target the guest is connected to. The guest's I/O
on the device pauses and continues when the holder serves again, if it connected with the options in
@@ -94,8 +98,10 @@ Replace `sw-block` on every machine that runs it.
`--chunk-maintenance-interval` (hourly by default); each pass logs `maintenance volume=<v> ... planned=N removed=N`
on the volume's host. A pass is bounded in time and the next one continues, so this can take several passes. Until
then, the same verify with `--orphans` lists those roots and segments: that is expected after an upgrade, not
damage. Run the `--orphans` check once a pass has nothing left to remove: its log line shows `removed=0` (a pass
that stops early logs an error instead).
damage. Run the `--orphans` check once a pass has completed without an error and removed nothing: its count line
shows `removed=0` and no `durable: maintenance volume=<v>: ...` error follows it. (The count line is printed for
every pass, also one that failed; `planned=` counts every chunk name the pass read, so it is not 0 on a volume with
data.)
## If a step is interrupted