在Centos使用helm及nfs安装elastic/elasticsearch一直报如下的错:
MountVolume.SetUp failed for volume "pvc-b5e1e5d9-8904-4020-831e-77248792e0e2" : mount failed: exit status 32 Mounting command: mount Mounting arguments: -t nfs 10.1.1.5:/data/nfs-storage-gy-prod-103/gy-prod-elasticsearch-master-elasticsearch-master-0-pvc-b5e1e5d9-8904-4020-831e-77248792e0e2 /var/lib/kubelet/pods/4dfbd600-6482-4d6f-a1ef-b76672a97fe3/volumes/kubernetes.io~nfs/pvc-b5e1e5d9-8904-4020-831e-77248792e0e2 Output: mount: wrong fs type, bad option, bad superblock on 10.1.1.5:/data/nfs-storage-gy-prod-103/gy-prod-elasticsearch-master-elasticsearch-master-0-pvc-b5e1e5d9-8904-4020-831e-77248792e0e2, 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.
可能是是因为没安装nfs-utils导致的
如何解决:
我们需要在所有k8s可能使用nfs的节点安装nfs-utils
yum install -y nfs-utils
service rpcbind start && chkconfig rpcbind on
评论(0)