From 6fb4dccca69f721d960fc6d8efd8196a44d08a25 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 5 Dec 2026 16:52:28 -0800 Subject: [PATCH] docs(block): verify the lifecycle store only when one is configured The shipped blockmaster.env leaves --lifecycle-store unset, so an installation on it has only the authority store; the migration's verification step required a lifecycle store it could not find. Check the authority store, and the lifecycle store when --lifecycle-store is set. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operations-manual.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 3fd57073cd..e8763b5d05 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -118,16 +118,16 @@ systemd and root access. ## 1. Install the binaries and units **Plan blockmaster's state storage before starting it.** Keep the holders' local data off blockmaster's state -filesystem. With the shipped unit, the state directory is `/var/lib/sw-block-master`, including the authority and -lifecycle stores. A different directory on the same filesystem is not enough. +filesystem. With the shipped unit, the state directory is `/var/lib/sw-block-master`, including the authority +store and any lifecycle store. A different directory on the same filesystem is not enough. v1.1.2 stops the startup's ancestor sync at the state filesystem's boundary, so a dedicated state filesystem isolates the startup syncs; run `sync` after creating and mounting it. This commits the installer's mount-point entry on its parent filesystem. A failed device lookup logs a fallback to the full ancestor walk. See [directory recovery](design/lifecycle-directory-sync.md). -**Do not mount an empty filesystem over existing blockmaster state.** It hides the authority and lifecycle -stores beneath the mount, and starting blockmaster there can create a separate state history. For a new install, +**Do not mount an empty filesystem over existing blockmaster state.** It hides the existing stores +beneath the mount, and starting blockmaster there can create a separate state history. For a new install, install the units (step 2 below), then create and mount the state filesystem and configure its persistent mount and the unit's mount dependency as migration step 5 shows, all before the first start in [section 2](#2-cluster-spec-and-blockmaster). @@ -161,7 +161,7 @@ To migrate an existing installation: The dependency orders the service after its mount; the assertion refuses startup if the mount is absent, including if its configuration is lost. Keep these protections installed after the migration. 6. Mount the copied filesystem at the configured state directory, verify that it contains the copied authority - and lifecycle stores and their permissions, and run `sync`. + store, the lifecycle store if `--lifecycle-store` is set, and their permissions, and run `sync`. 7. Enable and start blockmaster with `sudo systemctl enable --now sw-blockmaster` and verify that it opens the copied stores and reloads the existing records before considering the migration complete. If verification fails, stop it with `sudo systemctl disable --now sw-blockmaster`, keep it stopped, and correct