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

 

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

wrong fs type,

Events:
  Type     Reason       Age                  From               Message
  ----     ------       ----                 ----               -------
  Normal   Scheduled    2m54s                default-scheduler  Successfully assigned kube-system/nfs-subdir-external-provisioner-7d6dd967f8-p86dr to node02
  Warning  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 condition
  Warning  FailedMount  46s (x9 over 2m54s)  kubelet            MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 32
Mounting command: mount
Mounting 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-root
Output: 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 might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

wrong fs type, bad option ??

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

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

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

解决:

安装nfs的客户端即可

yum install nfs-utils -y 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值