You are not logged in.
It has been a while since I set up nfs.
So:
I install nfs-kernel-server on the server and nfs-common on the server and client.
Normally I would put the nfs-mount in the clients /etc/fstab, but IIRC that will make the startup of the client very slow (waiting for the timeout), when not in that network (like a notebook on the road).
Or did I get that wrong all together?
Offline
Yeah, I'm pretty sure you're right about the delay. You can also run into problems if the server goes down while the client still has the share mounted. (I just did that to myself about an hour ago.)
I find it better to use autofs, which will mount the share when you try to use it.
Offline
I have a file server in the basement supporting nfs. The clients mount the nfs shares via a cron job @reboot. If the server is unavailable the cron job never finishes, but the clients do boot up without delay. This setup works for more than 15 years now.
Offline
You can also run into problems if the server goes down while the client still has the share mounted.
...
I find it better to use autofs, which will mount the share when you try to use it.
And autofs will unmount the nfs share at a preferred and configured timeout period.
Offline
autofs does not play well if a user tries to access a directory under its control.
Another way is to put "noauto" in /etc/fstab and have a script in /etc/rc.local that would ping a known IP and then do a "mount -a" on success.
Offline