mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
b6072afc8a
commit
6fb4dccca6
1 file changed
+5
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user