From dea5e6a6dc63fb67ee7660cea91f1484b1d7f5e1 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 23 Nov 2026 12:10:37 -0800 Subject: [PATCH 1/3] docs: operator guide: the cure for a start with the wrong --durable-blocks, guard first Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index b43e7ffc7e..e4dc205846 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -52,6 +52,11 @@ one live blockvolume per volume ([one process per volume](releases/one-process-p - **Geometry:** a volume's size is `--durable-blocks` x `--durable-blocksize` on `blockvolume`. It must equal `size_bytes` in the cluster spec (for example 65536 x 4096 = 268435456). + If a blockvolume was started with the wrong `--durable-blocks` and its log repeats `geometry_mismatch`, first + confirm the volume never served: `sw-block ops chunk show --volume --chunk-filer --chunk-path ` + prints `"epoch":0` and `"holder":""` in its head. Only then stop the unit, remove `.bin`, `.bin.chunkfresh`, + `.bin.chunkmap` and `.replica-floor` from `--durable-root`, and start it with the right flags. Never remove + these files for a volume whose head shows an epoch above 0 or a holder: they hold its acknowledged writes. - **Memory:** plan for about 32-36 MiB per running volume. That was measured with 150-200 volumes on one host. - **Measured throughput on one host** (16 cores, 23.7 GB RAM, one consumer NVMe drive, fsync on every volume): @@ -189,6 +194,7 @@ Every command on the pages above, and the test that runs it. | `systemctl enable`, `stop`, `disable`, `reset-failed`, `systemd-tmpfiles --create` as written on these pages | not run: the tests above start transient units, not the installed ones | not run | | Headroom refusal at create, and both ways out (free space; `--durable-root` on a file system with room) | `TestHeadroomRefusesARestoreAndAForkTargetThenServesThem`, `TestHeadroomRefusedTargetBlastRadiusAndAnotherRoot`, `TestHeadroomRefusedRestoreTargetSurvivesItsSourceDeleteAndGC` (`cmd/blockvolume`, root, loop-mounted file systems) | binary | | Full local disk; full `--host-limit-dir` | `TestProcedureLocalDiskFull` (`cmd/blockvolume`, root, `testdata/diskfull.sh`); what a Linux guest sees: `TestProcedureLocalDiskFullKernelInitiator` (kernel NVMe/TCP host) | binary | +| A start with the wrong `--durable-blocks` (`geometry_mismatch`): the guard (`sw-block ops chunk show`), removing the local files, a start with the right flags | `TestWrongGeometryCureAsWritten` (`cmd/blockvolume`) | binary | | SeaweedFS (filer or volume server) down during a cut | `TestProcedureStoreDownDuringACut` (`cmd/blockvolume`) | binary | | `blockmaster` refuses a `--workspace-max-clock-skew` whose half does not exceed its fence-exit budget (at or below 10.1 s) | `TestBlockmasterRefusesASkewBoundAtOrBelowTheFenceExit` (`cmd/blockvolume`, tag `subprocess`) | binary | | The missing lock directory (`host volume lock directory unavailable`) and its cure (tmpfiles entry or chown) | not run in 1.0 | not run | From d565e7e140773910718c460a752d79ee8de3b073 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 23 Nov 2026 12:11:10 -0800 Subject: [PATCH 2/3] docs: stop first, then the guard, then remove; name the message; what the guard does not cover Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index e4dc205846..3b2cbba80a 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -52,11 +52,14 @@ one live blockvolume per volume ([one process per volume](releases/one-process-p - **Geometry:** a volume's size is `--durable-blocks` x `--durable-blocksize` on `blockvolume`. It must equal `size_bytes` in the cluster spec (for example 65536 x 4096 = 268435456). - If a blockvolume was started with the wrong `--durable-blocks` and its log repeats `geometry_mismatch`, first - confirm the volume never served: `sw-block ops chunk show --volume --chunk-filer --chunk-path ` - prints `"epoch":0` and `"holder":""` in its head. Only then stop the unit, remove `.bin`, `.bin.chunkfresh`, - `.bin.chunkmap` and `.replica-floor` from `--durable-root`, and start it with the right flags. Never remove - these files for a volume whose head shows an epoch above 0 or a holder: they hold its acknowledged writes. + If a blockvolume was started with the wrong `--durable-blocks`, its log repeats `chunk attach check: chunkstore: + geometry_mismatch` and it exits; waiting or restarting with the right flags does not help, because its local store + was created at the wrong size. In one sitting: stop the unit first; then check that the volume never served: + `sw-block ops chunk show --volume --chunk-filer --chunk-path ` prints `"epoch":0` and + `"holder":""` in its head; only then remove `.bin`, `.bin.chunkfresh`, `.bin.chunkmap` and + `.replica-floor` from `--durable-root`, and start it with the right flags. If the head shows an epoch above 0 or + a holder, do not remove these files, even if this host never served the volume (for example after a forced move): + they may hold acknowledged writes; use the normal move or delete procedure instead. - **Memory:** plan for about 32-36 MiB per running volume. That was measured with 150-200 volumes on one host. - **Measured throughput on one host** (16 cores, 23.7 GB RAM, one consumer NVMe drive, fsync on every volume): From 8877cc6d3e3f229666100bd1cb9b80d7042f4315 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 23 Nov 2026 12:14:22 -0800 Subject: [PATCH 3/3] docs: scope the wrong-geometry cure to a volume's first start Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index 3b2cbba80a..f06075caa1 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -52,14 +52,14 @@ one live blockvolume per volume ([one process per volume](releases/one-process-p - **Geometry:** a volume's size is `--durable-blocks` x `--durable-blocksize` on `blockvolume`. It must equal `size_bytes` in the cluster spec (for example 65536 x 4096 = 268435456). - If a blockvolume was started with the wrong `--durable-blocks`, its log repeats `chunk attach check: chunkstore: + If a blockvolume's first start for a volume used the wrong `--durable-blocks`, its log repeats `chunk attach check: chunkstore: geometry_mismatch` and it exits; waiting or restarting with the right flags does not help, because its local store was created at the wrong size. In one sitting: stop the unit first; then check that the volume never served: `sw-block ops chunk show --volume --chunk-filer --chunk-path ` prints `"epoch":0` and `"holder":""` in its head; only then remove `.bin`, `.bin.chunkfresh`, `.bin.chunkmap` and `.replica-floor` from `--durable-root`, and start it with the right flags. If the head shows an epoch above 0 or - a holder, do not remove these files, even if this host never served the volume (for example after a forced move): - they may hold acknowledged writes; use the normal move or delete procedure instead. + a holder, do not remove these files; if the volume served before, its local store has its original size: correct the + flag and start it again (not run as a test in this release). - **Memory:** plan for about 32-36 MiB per running volume. That was measured with 150-200 volumes on one host. - **Measured throughput on one host** (16 cores, 23.7 GB RAM, one consumer NVMe drive, fsync on every volume):