Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

[weed] update volume.fix.replication description (#7340)

nightcoffeeaed91baa2ec2
diff --git a/docker/compose/master-cloud.toml b/docker/compose/master-cloud.toml
index 6ddb14e122..ef7796f04f 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 d2843d5405..5b58992c8b 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 de0bc93a7b..7fa6e5ed85 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: