aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornightcoffee <nightcoffee@users.noreply.github.com>2025-10-22 03:38:40 +0800
committerGitHub <noreply@github.com>2025-10-21 12:38:40 -0700
commitaed91baa2ec28e282c108daf5303f3bdc620a7ba (patch)
tree5cb436b3fcc85c6e81efc3b1582b5c0479ab83f9
parentad46d80f490866d0ba6e0d079eeac36d624b22e4 (diff)
downloadseaweedfs-aed91baa2ec28e282c108daf5303f3bdc620a7ba.tar.xz
seaweedfs-aed91baa2ec28e282c108daf5303f3bdc620a7ba.zip
[weed] update volume.fix.replication description (#7340)
* [weed] update volume.fix.replication description * Update master-cloud.toml * Update master.toml
-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: