seaweedfs / seaweedfs-csi-driver

SeaweedFS CSI Driver https://github.com/seaweedfs/seaweedfs
Apache License 2.0
210 stars 50 forks source link

CSI creating too many volumes #138

Closed bck01215 closed 12 months ago

bck01215 commented 12 months ago

From volume list I see

Topology volumeSizeLimit:30000 MB hdd(volume:9/9 active:9 free:0 remote:0)
  DataCenter DefaultDataCenter hdd(volume:9/9 active:9 free:0 remote:0)
    Rack DefaultRack hdd(volume:9/9 active:9 free:0 remote:0)
      DataNode 192.168.56.34:8080 hdd(volume:3/3 active:3 free:0 remote:0)
        Disk hdd(volume:3/3 active:3 free:0 remote:0)
          volume id:4  size:5416  file_count:2  version:3  modified_at_second:1694707244 
          volume id:8  size:43136  collection:"gitlab-config"  file_count:3  version:3  compact_revision:1  modified_at_second:1694694334 
          volume id:9  size:17776  collection:"gitlab-config"  file_count:6  version:3  compact_revision:1  modified_at_second:1694694334 
        Disk hdd total size:66328 file_count:11 
      DataNode 192.168.56.34:8080 total size:66328 file_count:11 
      DataNode 192.168.56.35:8080 hdd(volume:3/3 active:3 free:0 remote:0)
        Disk hdd(volume:3/3 active:3 free:0 remote:0)
          volume id:1  size:2872  file_count:4  version:3  modified_at_second:1694693983 
          volume id:2  size:2304  file_count:3  version:3  modified_at_second:1694693803 
          volume id:5  size:408  file_count:2  version:3  modified_at_second:1694693743 
        Disk hdd total size:5584 file_count:9 
      DataNode 192.168.56.35:8080 total size:5584 file_count:9 
      DataNode 192.168.56.56:8080 hdd(volume:3/3 active:3 free:0 remote:0)
        Disk hdd(volume:3/3 active:3 free:0 remote:0)
          volume id:3  size:5144  file_count:4  version:3  modified_at_second:1694707304 
          volume id:6  size:2696  file_count:3  version:3  modified_at_second:1694693803 
          volume id:7  size:376  file_count:2  version:3  modified_at_second:1694694223 
        Disk hdd total size:8216 file_count:9 
      DataNode 192.168.56.56:8080 total size:8216 file_count:9 
    Rack DefaultRack total size:80128 file_count:29 

I am using a gitlab deployment with just three storage volumes created. After starting the deployment I am unable to create files

2023-09-14T16:01:10.050762974+00:00 stderr F E0914 16:01:10.050739 weedfs_file_sync.go:103 /buckets/gitlab-data-vol/h1 doFlush: flush data: upload data: filerGrpcAddress assign volume: assign volume failure count:1 collection:"gitlab-data" replication:"000" path:"/buckets/gitlab-data-vol/h1": assign volume: rpc error: code = Unknown desc = no free volumes left for {"collection":"gitlab-data","replication":{},"ttl":{"Count":0,"Unit":0}}

chrislusf commented 12 months ago

https://github.com/seaweedfs/seaweedfs/wiki/S3-API-FAQ#can-not-upload-due-to-no-free-volumes-left