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
- 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.
On the server, create an
/opt/kie/datashare with therw,sync,no_root_squashoptions by adding the following line to the/etc/exportsfile:/opt/kie/data *(rw,sync,no_root_squash)
In this example,
/opt/kie/datais 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.
On each client node, mount the shared folder in an existing directory:
# mount <SERVER_IP>:/opt/kie/data /opt/kie/data/niogit
Add the following properties to the
standalone-full-ha.xmlfile to bind the.niogitandmaven-repositorydirectories 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"/>