[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Running a NFS Pod in Openshift


I'm trying to run a NFS pod in Openshift in order to use a NFS volume mount. However so far was unsuccessful in connecting to the NFS server from the client pod. The client container creation fails with error [1]. Did some research on the same error, and according to [2] verified that I do have /sbin/mount.nfs and /sbin/mount.cifs files in the pod. Am using the NFS docker images from [3].

Tried the same in the local Docker setup and mounting worked successfully. Has anyone successfully run NFS in a Openshift pod?

MountVolume.SetUp failed for volume "kubernetes.io/nfs/664f6c68-7390-11e7-8921-7e69231caeb8-nfs-pv" (spec.Name: "nfs-pv") pod "664f6c68-7390-11e7-8921-7e69231caeb8" (UID: "664f6c68-7390-11e7-8921-7e69231caeb8") with: mount failed: exit status 32 Mounting command: mount Mounting arguments: nfs-server:/exports /var/lib/minishift/openshift.local.volumes/pods/664f6c68-7390-11e7-8921-7e69231caeb8/volumes/kubernetes.io~nfs/nfs-pv nfs [] Output: mount: wrong fs type, bad option, bad superblock on nfs-server:/exports, 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 | ltai or so.

[2]. https://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error

[3]. https://github.com/ErezHorev/dockerized_nfs_server

Thanks and Regards,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]