<div dir="ltr"><div>Adam,</div><div><br></div><div>Is NFS a must in this case, or can you use other file systems?</div><div><br></div><div>The reason I suggest this is that historically NFS have had a problematic <br></div><div>legacy in certain use cases. These include caching inconsistencies in some</div><div>use cases. <br></div><div><br></div><div>About a decade ago I investigated how to share file systems across two web <br></div><div>hosts. That was for a web site to share the code and static files on two web <br></div><div>servers.  NFS was the most problematic, and not practical. <br></div><div><br></div><div>There was GFS (not GFS2) and GlusterFS which showed promise last I looked <br></div><div>at filesystems for the above use case. <br></div><div><br></div><div>For certain types of use, sshfs may be all you need (e.g. mounting server shares <br></div><div>to my laptop). Have been using it for years without issues. It even transparently</div><div>reconnects after the laptop wakes up from sleep. It does not need a daemon on</div><div>the server (openssh server does it all), which means great security. <br></div><div><br></div><div>All you need is install the sshfs package on the client, and run the following command:</div><div><br></div><div>sudo sshfs -o $OPTS user@host:/remote/file/system /local/mount</div><div><br></div><div>The OPTS variable is where all the magic is</div><div><br></div><div>IdentityFile=~myname/.ssh/id_ed25519,port=22,follow_symlinks,allow_other,noatime,</div><div>idmap=file,uidfile=/etc/sshfs-uids,gidfile=/etc/sshfs-gids,nomap=ignore,</div><div>workaround=rename,nonempty,reconnect,ServerAliveInterval=3,</div><div>ServerAliveCountMax=10</div><div><br></div><div>Besides your ssh private key, two files are needed to map the uid and gid to what they <br></div><div>are on the server:</div><div><br></div><div>user1:1001</div><div>user2:1002</div><div><br></div><div>users:100</div><div>user1:1001</div><div>user2:1002</div><div><br></div><div>And that is all there is to it.</div><div><br></div><div>SSHFS would not work in a high load scenario though. <br></div></div>