aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/compose/master-cloud.toml2
-rw-r--r--weed/command/scaffold/master.toml2
-rw-r--r--weed/shell/command_volume_fix_replication.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/docker/compose/master-cloud.toml b/docker/compose/master-cloud.toml
index 6ddb14e12..ef7796f04 100644
--- a/docker/compose/master-cloud.toml
+++ b/docker/compose/master-cloud.toml
@@ -13,7 +13,7 @@ scripts = """
ec.rebuild -force
ec.balance -force
volume.balance -force
- volume.fix.replication
+ volume.fix.replication -force
unlock
"""
sleep_minutes = 17 # sleep minutes between each script execution
diff --git a/weed/command/scaffold/master.toml b/weed/command/scaffold/master.toml
index d2843d540..5b58992c8 100644
--- a/weed/command/scaffold/master.toml
+++ b/weed/command/scaffold/master.toml
@@ -13,7 +13,7 @@ scripts = """
ec.balance -force
volume.deleteEmpty -quietFor=24h -force
volume.balance -force
- volume.fix.replication
+ volume.fix.replication -force
s3.clean.uploads -timeAgo=24h
unlock
"""
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index de0bc93a7..7fa6e5ed8 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -45,8 +45,8 @@ func (c *commandVolumeFixReplication) Help() string {
This command also finds all under-replicated volumes, and finds volume servers with free slots.
If the free slots satisfy the replication requirement, the volume content is copied over and mounted.
- volume.fix.replication -n # do not take action
- volume.fix.replication # actually deleting or copying the volume files and mount the volume
+ volume.fix.replication # do not take action
+ volume.fix.replication -force # actually deleting or copying the volume files and mount the volume
volume.fix.replication -collectionPattern=important* # fix any collections with prefix "important"
Note: