docs: replicated volumes: one factor per cluster, and when they fail over

--expected-slots-per-volume is one number for the cluster: one replicated
volume with another slot count stops assignment for all of them. Single-
replica volumes can share a --cluster-spec cluster with 3-replica ones;
2- and 3-replica volumes cannot share one; a static --topology holds one
factor. A replicated volume fails over by itself only under --cluster-spec
with the lifecycle loop on; on a static --topology the operator runs
sw-block ops failover and reruns it after a refused fencing round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-26 04:05:58 -08:00
1 parent e80f046ba1
commit c10d64e71d
2 files changed
+24

No files matched your search

+4
View File
@@ -218,6 +218,10 @@ measured up to 15 s at 32 volumes with the default 3 slots.
## When a host is lost
The steps below are for a single-replica volume. For a replicated volume, see
[replicated volumes in this release](standalone-deployment.md): one replicated
factor per cluster, and when a replicated volume fails over by itself.
1. Make sure the lost host stays down for this volume. The product does not power off an old holder.
- If it comes back after the move, blockmaster refuses its lease: it does not serve, logs `exiting status=78
reason=moved` and exits 78, and the example unit does not start it again
@@ -146,6 +146,26 @@ Do these steps before you start blockvolume:
--lifecycle-product-loop-interval 100ms --listen 127.0.0.1:9180
```
**Replicated volumes in this release:**
- **One replicated factor per cluster.** `--expected-slots-per-volume` is one
number for the whole cluster, and blockmaster checks every replicated
volume against it. One volume with another slot count stops assignment
for all of them; it shows only as a controller error on every tick.
- Under `--cluster-spec`, single-replica volumes can share a cluster with
3-replica volumes (`--expected-slots-per-volume 3`).
- 2-replica and 3-replica volumes cannot share a cluster.
- A static `--topology` holds one factor only.
- **Failover.** blockmaster fails a replicated volume over by itself only
under `--cluster-spec` with the lifecycle loop on. The same loop also
continues a fencing round that did not complete.
- On a static `--topology` nothing fails over by itself: run
`sw-block ops failover`.
- It needs blockmaster started with `--failback-runtime-rpc` and an admin
client certificate (`SW_BLOCK_TLS_CERT`, `SW_BLOCK_TLS_KEY`,
`SW_BLOCK_TLS_CA`).
- If its fencing round is refused, run the command again.
`sw-block ops failover -h` describes the round and its exit codes.
3. **Start blockvolume with the identity of one slot.** `--volume-id`,
`--replica-id` and `--server-id` (`SWB_VOLUME_ID`, `SWB_REPLICA_ID`,
`SWB_SERVER_ID`) must equal one slot of the file: `v1`, `r1`, `s1` here.