NFS Config
Edit /etc/exports
:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/media/jack/Jack 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash,insecure)
insecure
had to be selected for me to connect via my Macbook.
In Bash:
sudo systemctl restart nfs-kernel-server
Firewall
In Server:
ufw allow from 192.168.2.0/24 to any port 111
ufw allow from 192.168.2.0/24 to any port 2049
Mounts
In Finder, press cmd + k and enter the path to the NFS server/share:
Or from Terminal:
# To Mount
sudo mount -t nfs xps.internal.itsltns.io:/media/jack/Jack /Volumes/xps-media
# To Test
df -h
# To Unmount
sudo umount /Volumes/xps-media
Test Speed
The definition of slow as defined by MW:
(3) moving, flowing, or proceeding without speed or at less than usual speed
I AM SPEED!
time dd if=/dev/zero of=/Volumes/xps-media/testfile bs=16k count=128k
# 3309+0 records in
# 3308+0 records out
# 54198272 bytes transferred in 52.577148 secs (1030833 bytes/sec)
# dd if=/dev/zero of=/Volumes/xps-media/testfile bs=16k count=128k 0.01s user 0.59s system 1% cpu 53.630 total
time dd if=/Volumes/xps-media/testfile of=/dev/null bs=16k
# 609+0 records in
# 609+0 records out
# 9977856 bytes transferred in 13.486037 secs (739866 bytes/sec)
# dd if=/Volumes/xps-media/testfile of=/dev/null bs=16k 0.00s user 0.04s system 0% cpu 13.856 total
What does this mean? - It means when I am at home, I need a direct connection to the other workstation and routes setup to bypass the VPN to access the Media.