2.3. Configuring an NFS server

A shared file system is required for a Business Central clustered environment and each client node must have access to the shared file system.

You must deploy and configure an NFS version 4 server.

Procedure

  1. Configure a server to export NFS version 4 shares. For instructions about exporting NFS shares on Red Hat Enterprise Linux, see Exporting NFS shares in Managing file systems. For more information about creating the NFS server, see How to configure NFS in RHEL 7.
  2. On the server, create an /opt/kie/data share with the rw,sync,no_root_squash options by adding the following line to the /etc/exports file:

    /opt/kie/data *(rw,sync,no_root_squash)

    In this example, /opt/kie/data is the shared folder, * are the IP addresses allowed to connect to the NFS server, and (rw,sync,no_root_squash) are the minimum options required for NFS. For example:

    /opt/kie/data 192.268.1.0/24(rw,sync,no_root_squash)
    注記

    You can use another share name instead of '/opt/kie/data'. In this case, you must use this name when configuring all nodes that run Business Central.

  3. On each client node, mount the shared folder in an existing directory:

    # mount <SERVER_IP>:/opt/kie/data /opt/kie/data/niogit
  4. Add the following properties to the standalone-full-ha.xml file to bind the .niogit and maven-repository directories as nfs shared folders:

    <property name="org.uberfire.nio.git.dir" value="/opt/kie/data/niogit"/>
    <property name="org.guvnor.m2repo.dir" value="/opt/kie/data/maven-repository"/>