Browse Source

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

* [weed] update volume.fix.replication description

* Update master-cloud.toml

* Update master.toml
pull/7355/head
nightcoffee 3 weeks ago
committed by GitHub
parent
commit
aed91baa2e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docker/compose/master-cloud.toml
  2. 2
      weed/command/scaffold/master.toml
  3. 4
      weed/shell/command_volume_fix_replication.go

2
docker/compose/master-cloud.toml

@ -13,7 +13,7 @@ scripts = """
ec.rebuild -force ec.rebuild -force
ec.balance -force ec.balance -force
volume.balance -force volume.balance -force
volume.fix.replication
volume.fix.replication -force
unlock unlock
""" """
sleep_minutes = 17 # sleep minutes between each script execution sleep_minutes = 17 # sleep minutes between each script execution

2
weed/command/scaffold/master.toml

@ -13,7 +13,7 @@ scripts = """
ec.balance -force ec.balance -force
volume.deleteEmpty -quietFor=24h -force volume.deleteEmpty -quietFor=24h -force
volume.balance -force volume.balance -force
volume.fix.replication
volume.fix.replication -force
s3.clean.uploads -timeAgo=24h s3.clean.uploads -timeAgo=24h
unlock unlock
""" """

4
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. 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. 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" volume.fix.replication -collectionPattern=important* # fix any collections with prefix "important"
Note: Note:

Loading…
Cancel
Save