From 9e32722bb4714fbe5b21ddb49b3848eb98cd1662 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 26 Nov 2026 00:45:49 -0800 Subject: [PATCH] docs: distinguish restore volume names from store directory results --- seaweed-block/docs/standalone-deployment.md | 2 ++ seaweed-block/docs/volume-lifecycle.md | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/seaweed-block/docs/standalone-deployment.md b/seaweed-block/docs/standalone-deployment.md index cd5e464b7d..79561cf5ee 100644 --- a/seaweed-block/docs/standalone-deployment.md +++ b/seaweed-block/docs/standalone-deployment.md @@ -618,6 +618,8 @@ A restore makes a new volume from a snapshot. The new volume reads every chunk i ``` This creates `v2` from the snapshot and prints one JSON document. It is idempotent by `--request-id` (a generated id is printed when you omit it); reuse it to retry an uncertain result. `--master` is required: it resolves each volume's layout id. + + The JSON `target` is the store directory, `"target":"v2-"`, where `` is the first eight hex digits of v2's layout id. The public volume name remains `v2`: keep using `--volume v2`, `--source v2`, `blockvolume --volume-id v2` and status queries with `volume=v2`. The directory printed in the result is not a replacement name for those arguments. Resolve v2's full layout id through the master for `blockvolume --layout-id` as described [above](#resolve-the-local-volumes-layout-id). 3. **Start v2's blockvolume** with the normal standalone command, its own volume id, endpoints and local root, and the same chunk settings as the source (`--chunk-filer`, `--chunk-path`, `--chunk-control-endpoint`). v2 serves at once. 4. **Reads fill v2.** A block in a chunk that v2 does not hold yet is read from the source's snapshot; the read waits for that chunk, which is then kept locally. There is no background copy: a chunk that is never read stays in the source's snapshot. - Progress is the volume's count of chunks still absent: `Chunk.Stats.AbsentChunks` in `GET http://STATUS_OF_V2/status/durable?volume=v2` (0 means every chunk is local). diff --git a/seaweed-block/docs/volume-lifecycle.md b/seaweed-block/docs/volume-lifecycle.md index bb59650b4f..8dc10a3899 100644 --- a/seaweed-block/docs/volume-lifecycle.md +++ b/seaweed-block/docs/volume-lifecycle.md @@ -433,10 +433,17 @@ the volume's store directory: its name and the first 8 hex digits of its layout sw-block ops chunk volume-delete --volume v1 --chunk-filer FILER --master MASTER --request-id del-v1 ``` -It answers with `"admitted":true,"committed":true,"headMarked":true,"completed":true`. +On completion it answers `{"volume":"v1-","state":"deleted"}`, where +`` is the first eight hex digits of the volume's layout id. `volume` in +this result is the store directory; subsequent commands still use the public +name `--volume v1`. Keep the `--request-id` and use the same one if you have to run the command again. Afterwards `sw-block ops chunk show --master MASTER --volume v1 --chunk-filer FILER` shows -`"state": "deleted"` and `"chunkCount": 0`. +a JSON object containing `volume` (the volume record) and `head` (the typed +HEAD). The HEAD fields use capitalized names: `head.State` is `"deleted"`, +`head.Epoch` is its epoch and `head.Holder` is its holder. A fresh unclaimed +target has epoch 0 and an empty holder. This output is an inspection object; +the on-filer HEAD uses the layout's canonical encoding instead. **If you sealed and then stopped `blockvolume` with a signal,** the ACK was skipped and step 4 is refused with `live authority requires clean revocation ACK`. Nothing