<p>I've just installed OpenShift-Okd 3.11, and am trying out a persistent Postgres database.</p>

<p>After attempting to create the database, I get the following error:</p>

<pre><code>MountVolume.SetUp failed for volume "postgresql" : 
mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: --description=Kubernetes transient mount for /var/lib/origin/openshift.local.volumes/pods/b76a314a-d59a-11e8-a502-6c626d58b24d/volumes/kubernetes.io~nfs/postgresql --scope -- mount -t nfs apps.mydomain.com:/pg-data /var/lib/origin/openshift.local.volumes/pods/b76a314a-d59a-11e8-a502-6c626d58b24d/volumes/kubernetes.io~nfs/postgresql Output: 
Running scope as unit run-7329.scope. mount.nfs: Protocol not supported
</code></pre>

<p>I have also create the following persistent volume:</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: postgresql 
spec:
  capacity:
    storage: 5Gi 
  accessModes:
  - ReadWriteOnce 
  nfs: 
    path: /pg-data 
    server: apps.mydomain.com 
  persistentVolumeReclaimPolicy: Retain
</code></pre>

<p>Even after creating the PV (using <code>oc create -f pv.yml</code>) I still get the above error.</p>

<p>Looks like you don't have an NFS server running on <code>apps.mydomain.com</code>, you need to have an NFS server exporting directories that can be mounted remotely an NFS client, in this case your Postgres pod.</p>

<p>If you not sure how to setup an NFS server, you can follow <a href="https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs" rel="nofollow noreferrer">this guide</a> to install it in Kubernetes.</p>

<p>You can also run an <a href="http://nfs.sourceforge.net/nfs-howto/ar01s03.html" rel="nofollow noreferrer">NFS server</a> outside Kubernetes if you'd like to. Here's another guide to setup and <a href="https://www.howtoforge.com/tutorial/setting-up-an-nfs-server-and-client-on-centos-7/" rel="nofollow noreferrer">NFS server</a> on RHEL 7.</p>
