mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
* Stop lifecycle ancestor sync at the state filesystem boundary
* docs(block): preserve existing master state when changing filesystems
* docs(block): sync the migrated master state before remounting
* docs(block): require the migrated state mount before master startup
* docs(block): keep blockmaster from starting during the state migration
A stopped but enabled blockmaster starts at the next boot, and a v1.1.0
volume unit's restart pulls it in through Wants=. Either can start it
against the source being copied or the empty state path. Disable it for
the migration, stop v1.1.0 volume units first, and enable it with the
final start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): keep an old state filesystem as the migration backup
When the old state directory is itself a mount point, moving it aside
moves only the empty mount-point directory; the stores stay on the old
filesystem. Unmount it, keep it intact as the backup, and drop its
persistent mount so it does not come back over the new one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): unmount a dedicated master state filesystem before removal
rm -rf on the mounted state path deletes its contents, then fails on the
mount root, and the && chain never removes the units, binaries or user.
Empty and unmount it first, drop its persistent mount, and remove the
blockmaster drop-in with the other unit overrides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): disable stopped v1.1.0 volume units during the state migration
A v1.1.0 volume stop only stops the unit, and the v1.1.0 unit Wants=
blockmaster, so a reboot mid-migration started the volume and with it
the disabled blockmaster before the mount guard was installed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): move aside the directory an old state mount uncovers
Unmounting an old state filesystem can expose older files that the
mount hid, so that directory is not empty; leaving it at the state path
would put stale stores beneath the new mount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): install the units before a new install's state mount drop-in
The new-install sentence sent the operator to the mount drop-in before the
units were installed, and `systemctl edit` refuses a unit that does not
exist yet. Install the units first, then mount the state filesystem and
configure its persistent mount and drop-in, before the first start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* 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>
* docs(block): keep the sw-block removal off filesystems mounted below it
find and rm -rf both descend into a filesystem mounted below the state
or volume directories and delete its contents before failing on the
mount point. Unmount such filesystems first, and run the removal with
-xdev and --one-file-system so a missed one stops it with its data kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): refuse the sw-block removal while a bind mount sits below it
-xdev and --one-file-system compare device numbers, so a bind mount from the
same filesystem looks like a plain directory to them and the removal deletes
its source's contents. Both removal commands now list mounts below the
sw-block directories and remove nothing while one remains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): require removal of same-device nested mounts
* docs(block): scope state isolation to measured directory syncs
* docs(block): refuse mounts at removal operand roots
* docs(block): name the state filesystem where 'it' lost its antecedent
911890f385 moved the measurements in front of "Run sync after creating and
mounting it", so in the release note "it" followed "a start-time promise",
and in the manual it followed "the shared filesystem". Both now say the state
filesystem, as does the release note's "keep holders' data off" sentence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): match removal mount guards against resolved paths
findmnt reports a mount made through a symlinked ancestor under the
resolved path, so the literal patterns let a bind mount through the alias
pass both guards. Build the patterns from realpath -m of each directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): guard every directory the final removal deletes
The final removal also deletes the systemd drop-in directories and
/run/sw-block, but its mount check covered only the three data roots.
Include them in the same resolved-path check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): keep grants the copied stores took during a failed migration check
Step 7 starts blockmaster before the reload is verified, so reconnecting
holders can already have grants in the copied stores. The failure path now
says to keep them and correct the copy in place rather than recopy from the
retained original.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): compare removal mount guards literally
Resolved paths went into grep -E as a pattern: a path with a regex
metacharacter such as an unmatched [ made grep fail, and the leading !
turned that failure into a pass. Compare each mount against the resolved
directories with awk index(), so an awk error stops the command too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): decode escaped mount targets before removal
---------
Co-authored-by: pingqiu <pingqiu@users.noreply.github.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>