Kunde21 / moosefs-csi

Kubernetes CSI driver backed by moosefs
MIT License
10 stars 4 forks source link

csi-moosefs-controller mount failed: No such device #16

Open sunnylua opened 2 years ago

sunnylua commented 2 years ago
Defaulted container "moosefs-csi-plugin" out of: moosefs-csi-plugin, csi-provisioner, csi-attacher, csi-resizer
2022/09/09 10:10:35 cleanup error: unmount failed: exit status 1
Unmounting arguments: /opt/mfs/kubernetes/kubedata
Output: umount: can't unmount /opt/mfs/kubernetes/kubedata: Invalid argument
E0909 10:10:35.155671       1 mount_linux.go:150] Mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t moosefs mfsmaster:/kubedata /opt/mfs/kubernetes/kubedata
Output: mount: mounting mfsmaster:/kubedata on /opt/mfs/kubernetes/kubedata failed: No such device

Error: failed to mount root directory: mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t moosefs mfsmaster:/kubedata /opt/mfs/kubernetes/kubedata
Output: mount: mounting mfsmaster:/kubedata on /opt/mfs/kubernetes/kubedata failed: No such device

moosefs-csi: v3.0.116-v0.1.1 kubernetes: v1.24.3 system: CentOS7.8 5.4.210-1

How to fix it?

rich0 commented 1 year ago

I'm running into the same issue on: moosefs-csi: v3.0.116-v0.1.1 kubernetes: v1.24.8-2+1dda18a15eea38 (microk8s 1.24.8) system: Ubuntu 22.04.1 LTS

$ kubectl logs -n kube-system csi-moosefs-controller-0

Defaulted container "moosefs-csi-plugin" out of: moosefs-csi-plugin, csi-provisioner, csi-attacher, csi-resizer
2022/12/13 13:33:16 cleanup error: unmount failed: exit status 1
Unmounting arguments: /opt/mfs/kubernetes/kubernetes
Output: umount: can't unmount /opt/mfs/kubernetes/kubernetes: Invalid argument
E1213 13:33:16.276898       1 mount_linux.go:150] Mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t moosefs mfsmaster:/kubernetes /opt/mfs/kubernetes/kubernetes
Output: mount: mounting mfsmaster:/kubernetes on /opt/mfs/kubernetes/kubernetes failed: No such device

Error: failed to mount root directory: mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t moosefs mfsmaster:/kubernetes /opt/mfs/kubernetes/kubernetes
Output: mount: mounting mfsmaster:/kubernetes on /opt/mfs/kubernetes/kubernetes failed: No such device

Usage:
  cmd controller [flags]