1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 【已解决】 Unable to attach or mount volumes: unmounted volumes

【已解决】 Unable to attach or mount volumes: unmounted volumes

时间:2022-09-08 17:13:35

相关推荐

【已解决】 Unable to attach or mount volumes: unmounted volumes

安装nfs-provide-client的时候pod 一直不能启动,报错Unable to attach or mount volumes:

wrong fs type,

Events:TypeReason Age FromMessage---------- ---- -----------Normal Scheduled 2m54sdefault-scheduler Successfully assigned kube-system/nfs-subdir-external-provisioner-7d6dd967f8-p86dr to node02Warning FailedMount 51s kubelet Unable to attach or mount volumes: unmounted volumes=[nfs-subdir-external-provisioner-root], unattached volumes=[nfs-subdir-external-provisioner-root kube-api-access-d7p44]: timed out waiting for the conditionWarning FailedMount 46s (x9 over 2m54s) kubelet MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 32Mounting command: mountMounting arguments: -t nfs 172.16.2.131:/data/market_k8s/ /var/lib/kubelet/pods/24404fca-4a49-4f33-9cbd-326560b59d26/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-rootOutput: mount: wrong fs type, bad option, bad superblock on 172.16.2.131:/data/market_k8s/,missing codepage or helper program, or other error(for several filesystems (e.g. nfs, cifs) you mightneed a /sbin/mount.<type> helper program)In some cases useful info is found in syslog - trydmesg | tail or so.

wrong fs type, bad option ??

先找了个客户端挂载,试了下,发现是可以写入到nfs-server的挂载路径的

但是安装的nfs-provider却启动不来

然后发现是要挂载NFS的客户端【就是node 节点】 没有安装nfs-utils,被挂载的节点必须安装nfs的客户端,否则不适配

解决:

安装nfs的客户端即可

yum install nfs-utils -y

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。