From 5aa8ce1c7b76e697cae7356a199e4da6192b3367 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 28 Nov 2026 03:40:41 -0800 Subject: [PATCH] docs: replica wipe needs a dedicated root; figures bound to their records The untested replica wipe needs a --durable-root that holds that volume only: the data files' names can match another volume's in a shared root. It removes the data files and the epoch table and keeps the replica floor. Exit 75's causes are examples, assignment_timeout added. The blocked reads with kernel defaults are 552 s and 614 s as recorded; the slowest guest answer during a store outage was measured once and its record not kept. The cut's ~30 s answer is the chunk upload deadline. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 16 ++++++++++------ .../docs/releases/replicated-volumes-preview.md | 2 +- seaweed-block/docs/releases/v1.0.0.md | 5 +++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index 10d0ef824a..b191930eb8 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -190,8 +190,10 @@ default) can expire the host's slots; keep host clocks synchronized. - **What does not publish:** a stop, a lease revocation and a lease expiry publish nothing. Only a cut, a snapshot or a seal (`ops chunk detach --plain`) does. - **When SeaweedFS is unavailable** (the filer or a volume server is down): - - Guest I/O continues from the local disk; in the tests no guest command failed and the slowest answered in about 2 s. - - A cut in progress answers `remote_unavailable` (retryable) after about 30 s; no write the guest flushed is lost. + - Guest I/O continues from the local disk; in the tests no guest command failed, and every answer came within the + test's 20 s bound (about 2 s at the slowest in the one measured run; that run's record was not kept). + - A cut in progress answers `remote_unavailable` (retryable) after about 30 s, the deadline of each chunk upload; no + write the guest flushed is lost. - The next cut after the store returns commits normally and publishes everything written meanwhile. - A cut holds copy-on-write data on the local disk up to at most half of `--host-limit-cow-bytes` (1 GiB by default). A larger dirty set is uploaded before the cut point is fixed, so during a store outage such a cut fails @@ -301,9 +303,11 @@ acts. The limits, as they show on a running system: needed a rebuild. - **Wipe and add again (not a tested procedure in this preview):** first confirm from the primary's status which server is the left-out replica; never run this on the primary's host. On the replica's host, stop its `blockvolume` - unit, remove only that volume's own files from its `--durable-root` (`.bin`, every `.bin.*`, - `.replica-floor` and `.epoch-table`, where `` is the volume id; other files there may belong to other - volumes), and start the unit again with the same flags. It then + unit, and remove that volume's data files from its `--durable-root`: `.bin`, every `.bin.*` and + `.epoch-table`, where `` is the volume id. This needs a `--durable-root` that holds this volume only (a + dedicated directory per replica): in a shared root those names can match another volume's files, so do not use + this repair there. Keep `.replica-floor` (an authority fence; keeping it only refuses more). Then start the + unit again with the same flags. It then starts empty and takes a full rebuild from the primary; until that ends, the primary's status lists it as not healthy, and the volume keeps serving while the remaining replicas meet the ack mode. - **If the re-add stops midway** (the rebuild is interrupted), the replica refuses every later rebuild: wipe it @@ -388,7 +392,7 @@ What the guest sees: after 464 s, about kato + 90 × (2 s + the connect timeout). - **Kernel defaults** (`ctrl_loss_tmo` 600 s, `reconnect_delay` 10 s: 60 attempts; every connect command shipped today, including the CSI node): a target that does not come back holds I/O for about 600 s when its host refuses - the connection (a 9-minute blocked read was observed in a fault run), and for about 60 × (10 s + 3 s), some 13 + the connection (in one fault run two reads blocked for 552 s and 614 s, about 9 and 10 minutes, then failed with `EIO`), and for about 60 × (10 s + 3 s), some 13 minutes, when its host is unreachable (derived from the attempt count and the per-attempt connect timeout measured above; not run). - **Too short** (`--ctrl-loss-tmo` or `--fast_io_fail_tmo` below the wait): I/O errors reach the filesystem before diff --git a/seaweed-block/docs/releases/replicated-volumes-preview.md b/seaweed-block/docs/releases/replicated-volumes-preview.md index 666689ab77..a53f391031 100644 --- a/seaweed-block/docs/releases/replicated-volumes-preview.md +++ b/seaweed-block/docs/releases/replicated-volumes-preview.md @@ -13,7 +13,7 @@ writing guest: 1. **A replica that misses writes is not caught up by itself.** Under steady writes the primary retains only a few log entries beyond its checkpoint; a replica that falls behind (restarted, or fenced by a failover) needs a rebuild, and a rebuild onto its retained data is refused in v1. It stays degraded until the operator removes that - volume's own files from its data directory (not the whole directory: see the operator guide) and re-adds it, after confirming from the primary's status which server it is; never on the + volume's own files from its data directory (in a data directory that holds this volume only: see the operator guide) and re-adds it, after confirming from the primary's status which server it is; never on the primary's host (not a tested procedure in this preview; an interrupted re-add needs another wipe). `--wal-retention-lsns` does not help in this release. On Kubernetes there is no remedy in this preview. 2. **A durability shortfall reaches the guest as an immediate I/O error.** When the required replicas cannot diff --git a/seaweed-block/docs/releases/v1.0.0.md b/seaweed-block/docs/releases/v1.0.0.md index 9ff261dc93..309320473f 100644 --- a/seaweed-block/docs/releases/v1.0.0.md +++ b/seaweed-block/docs/releases/v1.0.0.md @@ -46,8 +46,9 @@ derived from the reconnect count; not run). restored volume's chunk, and restores); a damaged object is refused with a typed error, never served or installed. - Extents are flushed only up to the acknowledged log position. - blockvolume waits in-process while blockmaster is unreachable at start, and serves once blockmaster is back and its - barrier has passed. A volume that was moved away or deleted exits 78; 75 is a retry exit: blockmaster could not be - reached, the volume's record could not be read from the filer, or a revocation's acknowledgement was not confirmed. + barrier has passed. A volume that was moved away or deleted exits 78; 75 is a retry exit, for example: blockmaster + could not be reached or gave no assignment in time (`assignment_timeout`), the volume's record could not be read + from the filer, or a revocation's acknowledgement was not confirmed. - A failed directory fsync after an authority record's rename stops blockmaster with exit 74; the restart reloads what is on disk. - Empty local data at the holder's own epoch (a wrong or unmounted data directory) is refused with the cure named; a