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.

do not move cloud tier volumes

chrisludc4ed2cd9b66
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 3a9e7dea04..5380d5e633 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -329,6 +329,10 @@ func maybeMoveOneVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*Vol
return false, fmt.Errorf("lock is lost")
}
+ if candidateVolume.RemoteStorageName != "" {
+ return false, nil
+ }
+
if candidateVolume.ReplicaPlacement > 0 {
replicaPlacement, _ := super_block.NewReplicaPlacementFromByte(byte(candidateVolume.ReplicaPlacement))
if !isGoodMove(replicaPlacement, volumeReplicas[candidateVolume.Id], fullNode, emptyNode) {