cephFS使用ReadWriteMany模式报multi node access modes are only supported on rbd `block` type volumes

what 发表于: 2023-11-16   最后更新时间: 2023-11-16 22:56:34   391 游览

我的pvc一直处于Pending状态:

# kubectl get pvc -n my-space
NAME              STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
csi-cephfs-pvc    Pending                                                                        fs             4m55s

describe了一下,发现一个警告:

kubectl describe pvc csi-cephfs-pvc -n my-space

返回:

Warning  ProvisioningFailed    11s (x9 over 2m19s)   rbd.csi.ceph.com_csi-rbdplugin-provisioner-86b6cb5559-cb6vh_dab2e893-3479-41d3-bd89-2efdacd50f2b  failed to provision volume with StorageClass "fs": rpc error: code = InvalidArgument desc = multi node access modes are only supported on rbd `block` type volumes

pvc.yaml:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: csi-cephfs-pvc
  namespace: my-space
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Gi
  storageClassName: fs

请问我该怎么解决?

添加评论
你的答案

查看kubernetes相关的其他问题或提一个您自己的问题