Configure the NFS persistent volume locations

If you decide to use a Network File System (NFS) server for storage, you must perform the following operations.

About this task

Note: If you changed the value of PA_KUBE_STORAGE_ROOT, replace /opt/ibm/planninganalytics/paw in these commands with the new value.

Procedure

  1. Add the following lines to config/paw.env:
    export PA_KUBE_STORAGE_TYPE=shared
    export PA_KUBE_VOLUME_TYPE=nfs
    
  2. 2. Add the IP address of the NFS server to config/paw.env.
  3. 3. Configure the storage folders on the NFS server.
  4. If the OpenShift® cluster does not support dynamic provisioning for NFS persistent volumes, log on to the NFS server and execute the following commands:
    sudo mkdir -p /opt/ibm/planninganalytics/paw/storage-node1
    sudo mkdir -p /opt/ibm/planninganalytics/paw/storage-node2
    sudo mkdir -p /opt/ibm/planninganalytics/paw/storage-node3
    
  5. Configure your NFS server to export the following location:
    /opt/ibm/planninganalytics/paw
  6. On each of the three storage nodes, mount the following NFS directory:
    /opt/ibm/planninganalytics/paw