mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Added noDelete option for volume.fix.replication
parent
56554dde88
commit
103465eeba
|
@ -84,6 +84,13 @@ If one replica is missing, there are no automatic repair right away. This is to
|
|||
|
||||
To repair the missing replicas, you can use `volume.fix.replication` in `weed shell`.
|
||||
|
||||
### Replicate without deleting
|
||||
In certain circumstances—like adding/removing/altering replication settings of volumes or servers—the best strategy is to only repair under-replicated volumes and not delete any while working on volume and server modifications, in this citation use the flag `noDelete`:
|
||||
|
||||
`volume.fix.replication -noDelete`
|
||||
|
||||
After all replications and modifications are finished, desired replication consensus can then be obtained by running `volume.fix.replication` without the 'noDelete' flag.
|
||||
|
||||
## Change replication
|
||||
|
||||
In `weed shell`, you can change a volume replication setting via `volume.configure.replication`. After that, the volume will become readonly since the replication setting is not matched. You will also need to run 'volume.fix.replication` to create missing replicas.
|
||||
|
|
Loading…
Reference in a new issue