I am planning to build a small computation cluster at home. I need share /usr/local and /opt directory on server machine to several computation nodes. There are compiled computation programs and library files in these directories. I hope through sharing (mounted by computation nodes), all nodes can run these programs.
My question is, can autofs be used for this purpose? I was told that with autofs the shared directories are only available when it is requested. So if a shared library file is needed for a program on the fly, will it be a problem?
I have NFS installed. Tried fstab but no luck.
1) ip:/usr/local /usr/local nfs rw,defaults 0 0 result: not mounted when the machine boots. However, it can be mounted correctly if I run "mount -a" using root account after the client machine started.
2) adding "_netdev" option did not make a difference;
3) adding "x-systemd.automount" option had a bad result: the machine cannot boot into OS (which is debian 9) from reboot: ip:/usr/local /usr/local nfs rw,auto,x-systemd.automount 0 0
After reading your suggestion, I tried "noauto", and it did not make a difference that the machine still cannot boot into os: ip:/usr/local /usr/local nfs rw,noauto,x-systemd.automount 0 0
I am using Debian 9 and it has systemd 232.
Any thought? Thanks.