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.

ensure 2 volume space since actual need 1.4x volume size empty space

chrislu089d4316ef3a
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go
index d66bbdba90..84ce4ad685 100644
--- a/weed/shell/command_ec_encode.go
+++ b/weed/shell/command_ec_encode.go
@@ -317,13 +317,13 @@ func collectVolumeIdsForEcEncode(commandEnv *CommandEnv, selectedCollection stri
if float64(v.Size) > fullPercentage/100*float64(volumeSizeLimitMb)*1024*1024 {
if good, found := vidMap[v.Id]; found {
if good {
- if diskInfo.FreeVolumeCount < 1 {
+ if diskInfo.FreeVolumeCount < 2 {
glog.V(0).Infof("skip %d.%d on %s, no free disk", v.Id, v.Collection, dn.Id)
vidMap[v.Id] = false
}
}
} else {
- if diskInfo.FreeVolumeCount < 1 {
+ if diskInfo.FreeVolumeCount < 2 {
glog.V(0).Infof("skip %d.%d on %s, no free disk", v.Id, v.Collection, dn.Id)
vidMap[v.Id] = false
} else {