返回到文章

采纳

编辑于 1年前

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

kubernetes ceph

我的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

请问我该怎么解决?