Chapter 5. Troubleshooting NFS Issues

Ensure that the NFS server and shares are configured according to the OpenShift documentation for configuring NFS PersistentVolumes.

Consider the following when reviewing your NFS configuration:

  1. Ensure the NFS mounts are accessible to the OpenShift nodes

    Check this by manually mounting an NFS share to an OpenShift node. If the mount is unsuccessful, ensure that the correct ports are open on the NFS server. More information on the ports required for either NFSv3 or NFSv4 can be found in the NFS section of the OpenShift guide.

  2. Ensure SELinux allows Pods to write to a remote NFS server

    There are SELinux settings that must be configured to allow writing. For more information, see the NFS section of the OpenShift guide

  3. Check the NFS export options

    The NFS export options in the /etc/exports file on the NFS server must be set to rw,root_squash,no_wdelay. If this file is changed, the NFS server may need to be restarted.

  4. Ensure the exported directories are writable

    The directories exported from the NFS server which are used by the Pods in OpenShift should be writable. The easiest way to achieve this is to use the chmod command to set the directory permissions to 777:

    chmod 777 /var/export/export1

    The NFS Volume Security section of the NFS OpenShift guide has more information on other options.