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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
feat(volume.fix): show all replica locations for misplaced volumes (#7560)
steve.wei5c25df20f254
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.goindex f4dd0239ab..96bd417117 100644--- a/weed/shell/command_volume_fix_replication.go+++ b/weed/shell/command_volume_fix_replication.go@@ -7,6 +7,7 @@ import ("io""path/filepath""strconv"+ "strings""time""slices"@@ -116,7 +117,11 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv,fmt.Fprintf(writer, "volume %d replication %s, but under replicated %+d\n", replica.info.Id, replicaPlacement, len(replicas))case isMisplaced(replicas, replicaPlacement):misplacedVolumeIds = append(misplacedVolumeIds, vid)- fmt.Fprintf(writer, "volume %d replication %s is not well placed %s\n", replica.info.Id, replicaPlacement, replica.location.dataNode.Id)+ locations := make([]string, 0, len(replicas))+ for _, r := range replicas {+ locations = append(locations, r.location.String())+ }+ fmt.Fprintf(writer, "volume %d replication %s is not well placed [%s]\n", replica.info.Id, replicaPlacement, strings.Join(locations, ", "))case replicaPlacement.GetCopyCount() < len(replicas):overReplicatedVolumeIds = append(overReplicatedVolumeIds, vid)fmt.Fprintf(writer, "volume %d replication %s, but over replicated %+d\n", replica.info.Id, replicaPlacement, len(replicas))