From aed91baa2ec28e282c108daf5303f3bdc620a7ba Mon Sep 17 00:00:00 2001 From: nightcoffee Date: Wed, 22 Oct 2025 03:38:40 +0800 Subject: [PATCH] [weed] update volume.fix.replication description (#7340) * [weed] update volume.fix.replication description * Update master-cloud.toml * Update master.toml --- docker/compose/master-cloud.toml | 2 +- weed/command/scaffold/master.toml | 2 +- weed/shell/command_volume_fix_replication.go | 4 ++-- 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: