mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
docs: the snapshot list's answer, and snapshot-delete's
ops chunk snapshots answers a JSON array of {name, root[, dependents]} in
name order; an entry has no state or cut position. snapshot-delete answers
{"volume":"<name>-<id8>","name":...,"state":"absent"}.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4177679e1
commit
1995f39f1d
2 files changed
+8
-1
No files matched your search
@@ -525,6 +525,8 @@ sw-block ops chunk snapshots --master MASTER --volume v1 --chunk-filer FILER
|
||||
sw-block ops chunk snapshot --volume v1 --name before-upgrade --status-addr STATUS # take one now
|
||||
```
|
||||
|
||||
The list is a JSON array, one entry per published snapshot in name order: `[{"name":"sched-20261120T031204Z","root":"<64 hex>"}]`, with `"dependents":["v2-<id8>"]` on a snapshot that restore targets depend on.
|
||||
|
||||
### Deleting snapshots and getting space back
|
||||
|
||||
Space comes back in two steps. Neither is immediate.
|
||||
|
||||
@@ -420,7 +420,12 @@ sw-block ops chunk snapshots --master MASTER --volume v1 --chunk-filer FIL
|
||||
sw-block ops chunk snapshot-delete --master MASTER --volume v1 --chunk-filer FILER --name s1
|
||||
```
|
||||
|
||||
Each delete answers `{"volumeID":"v1","name":"s1","state":"deleting"}`.
|
||||
`snapshots` answers a JSON array with one entry per published snapshot, in name
|
||||
order: `[{"name":"s1","root":"<64 hex>"}]`. An entry also lists
|
||||
`"dependents":["v2-<id8>"]` while restore targets depend on that snapshot. An
|
||||
entry has no state or cut position: a listed snapshot is published. Each delete
|
||||
answers `{"volume":"v1-<id8>","name":"s1","state":"absent"}`. Here `v1-<id8>` is
|
||||
the volume's store directory: its name and the first 8 hex digits of its layout id.
|
||||
|
||||
**4. Delete the volume:**
|
||||
|
||||
|
||||
Reference in new issue
Block a user