The following procedure demonstrates how to make a macOS client automatically connect to a database server via NFS on boot. The instructions are based on a server named harmonyserver with the shares USA_DB and USADATA. You should adjust your client's configuration according to your server's name and, if applicable, the name of the additional scene data servers as well as the name of their respective share points.
- Open the Terminal.
sudo vi /etc/fstab
- Add the following lines to automatically mount your database server's shares on boot. Make sure to replace harmonyserver with the hostname of your database server.
harmonyserver:/USA_DB /mnt/USA_DB nfs rw,soft,intr,resvport 0 0
harmonyserver:/USADATA /mnt/USADATA nfs rw,soft,intr,resvport 0 0
- Create the mount points:
sudo mkdir -p /mnt/USA_DB /mnt/USADATA
- Attempt to mount them:
sudo mount -a
- Open a new Terminal window.
- Verify that the
/USADATAshared points have been mounted properly:
- Create symbolic links to the USA_DB and USADATA directories at the root level /
sudo ln -s /mnt/USA_DB /USA_DB
sudo ln -s /mnt/USADATA /USADATA
- Verify that the symbolic links are pointing to the right directories:
ls -l /USA_DB /USADATA
The symbolic links for the /USA_DB and /USADATA should look like the following:
USA_DB -> /mnt/USA_DB
USADATA -> /mnt/USADATA