glusterfs:无法从服务器获取“卷文件”

2023-12-24

我在 pod 日志中看到以下错误:

, the following error information was pulled from the glusterfs log to help diagnose this issue: 
[2020-01-10 20:57:47.132637] E [glusterfsd-mgmt.c:1804:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file' from server
[2020-01-10 20:57:47.132690] E [glusterfsd-mgmt.c:1940:mgmt_getspec_cbk] 0-mgmt: failed to fetch volume file (key:vol_32dd7b246275)

我在三台服务器上安装了 glusterfs - 服务器 1、2 和 3。我使用 heketi 来动态配置 PVC。 PVC 创建成功,但当我尝试在此卷上安装某些内容时,Pod 创建显示以下状态:

kubectl get pods
NAME       READY   STATUS              RESTARTS   AGE
test-pod   0/2     ContainerCreating   0          4m22s

不是 Heketi 问题的答案,而是引入一种替代解决方案,在基于 Gluster 的 Kubernetes 中提供持久存储。

卡达鲁项目(https://kadalu.io https://kadalu.io)是一个基于 Gluster 的解决方案,它与 Kubernetes 原生集成,无需使用 Glusterd(Gluster 的管理层)。

Kadalu 只需两步即可提供 Kubernetes 存储。

使用以下命令安装 Kadalu Operator:

$ kubectl create -f https://kadalu.io/operator-latest.yaml

注册您的存储设备,通过它您可以为 Kubernetes 中运行的应用程序提供持久卷。(在主节点中安装 Kubectl 插件使用pip3 install kubectl-kadalu)

$ kubectl kadalu storage-add storage-pool1 --type Replica3 \
    --device node1:/dev/vdc \
    --device node2:/dev/vdc \
    --device node3:/dev/vdc

就是这样!现在准备好光伏索赔。请参阅此链接以获取快速入门https://kadalu.io/docs/quick-start https://kadalu.io/docs/quick-start

最新博文(https://kadalu.io/blog/kadalu-kubernetes-storage https://kadalu.io/blog/kadalu-kubernetes-storage)解释了 Kadalu 可用的不同配置。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

glusterfs:无法从服务器获取“卷文件” 的相关文章

随机推荐