Sharing the Harmony Database Files Using NFS on macOS
Once you have a database file structure and the Harmony database server daemon, you can access the database from the machine on which it was created. To allow other client machines on your network to access the database, you must share its folders using NFS.
-
In a terminal, enter the following command:
$ sudo vi /etc/exports
-
Add the following line to allow clients to access the database files:
-
On macOS Catalina (10.15) and later:
/System/Volumes/Data/USA_DB -maproot=nobody
-
On macOS Mojave (10.14) and earlier:
/USA_DB -maproot=nobody
-
-
If your database server also has a scene data storage space, add a line with a similar syntax to share it.
-
On macOS Catalina (10.15) and later:
/System/Volumes/Data/usadata000 -maproot=nobody
-
On macOS Mojave (10.14) and earlier:
/usadata000 -maproot=nobody
-
- Save and exit.
-
Verify that the NFS exports are properly configured with the following command:
$ sudo nfsd checkexports
The command will not return anything if the exports file is properly configured.
-
Make sure the NFS sharing service is enabled with the following command:
$ sudo nfsd enable
-
If the service was already started, terminate it to force it to load your configuration changes.
$ sudo kill -1 `cat /var/run/mountd.pid`
NOTE The back quote (`) character is located at the top-left of the macOS keyboard on the same key as the tilde (~) character. Or simply reboot the computer.
-
Verify that the folders are shared:
$ showmount -e
The command should output a line for each directory you are sharing using the NFS protocol. For example:
-
On macOS Catalina (10.15) and later:
/System/Volumes/Data/USA_DB Everyone
/System/Volumes/Data/usadata000 Everyone -
On macOS Mojave (10.14) and earlier:
/USA_DB Everyone
/usadata000 Everyone
-
You should now be able to mount the shared folders from any macOS or GNU/Linux-based machine on your local network.