qinxue722 2025-05-31 15:47 采纳率: 0%
浏览 15

关于#kubernetes#的问题:Type Reason Age From Message

k8s对接cephfs文件系统,pvc创建不成功

Waiting for a volume to be created either by the external provisioner 'cephfs.csi.ceph.com' or manually by the system administrator.

[root@k8sm1 ~]# kubectl describe pvc test-pvc-2
Name:          test-pvc-2
Namespace:     default
StorageClass:  csi-cephfs-sc
Status:        Pending
Volume:        
Labels:        <none>
Annotations:   volume.beta.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
               volume.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       <none>
Events:
  Type    Reason                Age                   From                                                                                                    Message
  ----    ------                ----                  ----                                                                                                    -------
  Normal  Provisioning          3m17s                 cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-55fccddbfd-qnjwx_a1629f33-e1d2-4c41-910f-a704c0f5673c  External provisioner is provisioning volume for claim "default/test-pvc-2"
  Normal  ExternalProvisioning  10s (x15 over 3m17s)  persistentvolume-controller                                                                             Waiting for a volume to be created either by the external provisioner 'cephfs.csi.ceph.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.
[root@k8sm1 ~]# kubectl describe pvc test-pvc-2
Name:          test-pvc-2
Namespace:     default
StorageClass:  csi-cephfs-sc
Status:        Pending
Volume:        
Labels:        <none>
Annotations:   volume.beta.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
               volume.kubernetes.io/storage-provisioner: cephfs.csi.ceph.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       <none>
Events:
  Type    Reason                Age                   From                                                                                                    Message
  ----    ------                ----                  ----                                                                                                    -------
  Normal  Provisioning          3m47s                 cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-55fccddbfd-qnjwx_a1629f33-e1d2-4c41-910f-a704c0f5673c  External provisioner is provisioning volume for claim "default/test-pvc-2"
  Normal  ExternalProvisioning  10s (x17 over 3m47s)  persistentvolume-controller                                                                             Waiting for a volume to be created either by the external provisioner 'cephfs.csi.ceph.com' or manually by the system administrator. If volume creation is delayed, please verify that the provisioner is running and correctly registered.


  • 写回答

4条回答 默认 最新

  • 阿里嘎多学长 2025-05-31 15:47
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    问题解答

    你遇到了Kubernetes对接CephFS文件系统时,Persistent Volume Claim(PVC)创建不成功的问题。

    可能的原因是CephFS provisioner还没有成功创建卷。可以尝试以下解决方案:

    1. 检查CephFS provisioner是否正确安装和配置。如果你使用的是CephFS CSI Driver,可以检查driver的日志和状态。
    2. 检查PVC的spec中是否正确配置了volume的大小和访问模式。
    3. 使用kubectl describe pvc <pvc_name>命令来检查PVC的状态和错误信息。
    4. 如果问题仍然存在,可以尝试使用kubectl delete pvc <pvc_name>命令删除PVC,然后重新创建。

    如果你需要更多帮助,可以提供更多的日志和配置信息。

    评论

报告相同问题?

问题事件

  • 创建了问题 5月31日