https://man.liquidfiles.com
LiquidFiles Documentation
This article assumes you're using LiquidFiles v3.0.1 or newer.

To use an external NFS server with LiquidFiles, please follow the following steps.

First, to enable running NFS, please run the following commands:

ft nfs_enable

All file data is stored in /data, and you need to move this data to the NFS server. Please stop the LiquidFiles appliance web application and web server:

god stop sfta
systemctl stop nginx

Continue to move the existing data and create a new NFS mount point and mount the NFS server:

mv /data /data.old
mkdir /data
chown _sfta:_sfta /data
mount server:/mount/point /data

All files will be owned by the _sfta user which has the user id (uid) and group id (gid) of 900. If you setup any form of user or group restrictions on the NFS server, make sure that they match these requirements (when you're done, please run `ls -l /data` and everything should show up as _sfta owner and _sfta group or the application won't run properly).

After this you are ready to copy all the data across to the NFS server:

cp -rp /data.old/* /data
chown -R _sfta:_sfta /data

This is likely going to take a while, depending on how much data you have stored.

When this has completed, you can start the server again with:

god start sfta
systemctl start nginx

If everything is working as expected, make sure that the NFS mount is setup at boot with:

echo "server:/mount/point /data nfs rw,nodev,nosuid 0 0" >> /etc/fstab

And that completes the setup of the NFS storage for the LiquidFiles appliance. When you're comfortable that all is well, you can delete the previous files with `rm -r /data.old`.