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 eabbde7772..bf0e971758 100644 --- a/seaweed-block/docs/volume-lifecycle.md +++ b/seaweed-block/docs/volume-lifecycle.md @@ -443,7 +443,10 @@ 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 `head.State` `deleted`. The HEAD view has no `chunkCount` field; use the