Raja's Exocortex

NFS Server Setup

NFS Server Setup

apt-get install nfs-kernel-server
# /etc/exports

# Export data volume to all local and tailscale networks
/data/bile 192.168.1.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check) 10.8.0.0/255.255.255.0(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/255.192.0.0(rw,sync,no_subtree_check,no_root_squash)

# Hyphen in the mount point /data/1-bile needs to be escaped in systemd mount
/data/1-bile 192.168.1.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check) 10.8.0.0/255.255.255.0(rw,sync,no_subtree_check,no_root_squash) 100.64.0.0/255.192.0.0(rw,sync,no_subtree_check,no_root_squash)
systemctl restart nfs-kernel-server
exportfs

References:

  1. nfs-client-automount