MountVolume.setup failed for volume “…”: mount failed: exit status 32

My OS is Ubuntu, using openshift, and one pod keep pending, because nfs server cannot be mounted (nfs server is able to be mounted by mannually using command line, but cannot be mounted from the Pod)

I have installed nfs-common, so it's not the root cause. I trying to install nfs-utils, but I was failed, the error message is:

E: Unable to locate package: nfs-utils.

I also tried libnfs12 and libnfs-utils, they were the same as nfs-utils. I also used apt-get install upgade and update to solve the package locating problem, but they were useless.

I'm going to show the yaml file for connecting the nfs server

apiVersion: v1
kind: PersistentVolume
metadata: name: pv-test01 lables: disktype: baas
spec: capacity: storage: 1Gi accessModes: - ReadWriteMany nfs: path: /baas server: 9.111.140.47 readOnly: false persistentVolumeReclaimPolicy: Recycle

after using "oc describe pod/mypod" for the pending Pod, below is the feedback:

Warning FailedMount 14s kubelet, localhost MountVolume.SetUp failed for volume "pv-test01" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/origin/cluster-up/root/ --scope -- mount -t nfs 9.111.140.47:/baas /var/lib/origin/cluster-up/root/
Output: Running scope as unit run-28094.scope.
mount: wrong fs type, bad option, bad superblock on 9.111.140.47:/baas, 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.

so how can I mount to nfs server from the Pod?

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like