Heteki没有空间错误

时间:2018-08-08 10:33:44

标签: kubernetes glusterfs

我正在尝试使用kubernetes设置一个glusterfs集群。 我设法在所有节点(3个节点)上启动了糊状豆荚 我也设法成功加载了拓扑,但是在运行

heketi-cli setup-openshift-heketi-storage

我收到以下错误:

  

错误:没有空格

这是

的输出
heketi-cli topology load --json=gluster-kubernetes/deploy/topology.json

        Found node vps01 on cluster 1a36667e4275773fc353f2caaaaaaa                                                                                       
                Adding device /dev/loop0 ... OK                                                                                                             
        Found node vps02 on cluster 1a36667e4275773fc353faaaaaaaa                                                                                       
                Found device /dev/loop0                                                                                                                     
        Found node vps04 on cluster 1a36667e4275773fc353faaaaaaa                                                                                      
                Adding device /dev/loop0 ... OK       

的输出
heketi-cli topology info 

Cluster Id: 1a36667e4275773fc353f2caaaaaa                                                                                                         

    File:  true                                                                                                                                             
    Block: true                                                                                                                                             

    Volumes:                                                                                                                                                

    Nodes:                                                                                                                                                  

        Node Id: 1752dcf447c8eb6eaad45aaaa                                                                                                         
        State: online                                                                                                                                       
        Cluster Id: 1a36667e4275773fc353f2caaa                                                                                                    
        Zone: 1                                                                                                                                             
        Management Hostnames: vps01                                                                                                                         
        Storage Hostnames: XX.XX.XX.219                                                                                                                    
        Devices:                                                                                                                                            
                Id:50396d72293c4723504810108bd75d41   Name:/dev/loop0          State:online    Size (GiB):12      Used (GiB):0       Free (GiB):12          
                        Bricks:                                                                                                                             

        Node Id: 56b8c1942b347a863ee73a005758cc27                                                                                                           
        State: online                                                                                                                                       
        Cluster Id: 1a36667e4275773fc353f2c8eb2dd2a3                                                                                                        
        Zone: 1                                                                                                                                             
        Management Hostnames: vps04                                                                                                                         
        Storage Hostnames: XX.XX.XX.227                                                                                                                     
        Devices:                                                                                                                                            
                Id:dc75ad8154234ebcf9174b018d0bc30a   Name:/dev/loop0          State:online    Size (GiB):9       Used (GiB):4       Free (GiB):5           
                        Bricks:                                                                                                                             

        Node Id: f82cb81a026884764d3d953c7c9b6a9f                                                                                                           
        State: online                                                                                                                                       
        Cluster Id: 1a36667e4275773fc353f2c8eb2dd2a3                                                                                                        
        Zone: 1                                                                                                                                             
        Management Hostnames: vps02                                                                                                                         
        Storage Hostnames: XX.XX.XX.157                                                                                                                     
        Devices:                                                                                                                                            
                Id:1914102b7ae395f12797981a0e3cf5a4   Name:/dev/loop0          State:online    Size (GiB):4       Used (GiB):4       Free (GiB):0           
                        Bricks:   

设备1914102b7ae395f12797981a0e3cf5a4上没有更多空间,但是我还没有在设备上存储任何东西。

有关信息,这是topology.json文件:

{
  "clusters": [
    {
      "nodes": [
        {
          "node": {
            "hostnames": {
              "manage": [
                "vps01"
              ],
              "storage": [
                "XX.XX.XX.219"
              ]
            },
            "zone": 1
          },
          "devices": [
            "/dev/loop0"
          ]
        },
        {
          "node": {
            "hostnames": {
              "manage": [
                "vps02"
              ],
              "storage": [
                "XX.XX.XX.157"
              ]
            },
            "zone": 1                                                                                                                                       
          },                                                                                                                                                
          "devices": [                                                                                                                                      
            "/dev/loop0"                                                                                                                                    
          ]                                                                                                                                                 
        },                                                                                                                                                  
        {                                                                                                                                                   
          "node": {                                                                                                                                         
            "hostnames": {                                                                                                                                  
              "manage": [                                                                                                                                   
                "vps04"                                                                                                                                     
              ],                                                                                                                                            
              "storage": [                                                                                                                                  
                "XX.XX.XX.227"                                                                                                                              
              ]                                                                                                                                             
            },                                                                                                                                              
            "zone": 1                                                                                                                                       
          },                                                                                                                                                
          "devices": [                                                                                                                                      
            "/dev/loop0"                                                                                                                                    
          ]                                                                                                                                                 
        }                                                                                                                                                   
      ]                                                                                                                                                     
    }                                                                                                                                                       
  ]                                                                                                                                                         
}   

1 个答案:

答案 0 :(得分:0)

您可以尝试以下方法:

# ./gk-deploy -g --abort 
# dmsetup remove_all   # In each server.
# dmsetup ls
# rm -fr /var/lib/glusterd/vols/* # In each server.
# rm -fr /var/lib/heketi/* # In each server.
# wipefs -a /dev/<device> # In each server.

来源:https://github.com/gluster/gluster-kubernetes/issues/369#issuecomment-383247722