JSP - Johnson's Server Project
SERVER - NSF - Access Remote UNIX Directories




Problem connecting - had to add the clients IP address to the server's /etc/hosts


NFS allows you to attach to another UNIX computer merely by mounting a directory from that computer (the server) on your machine (the client).

Any and all of the UNIX computers on the network can act as servers and also as clients. The server just happens to contain the directory the client wants.


First configure the server:
edit /etc/rc.conf.local
by enabling the following options:
portmap_enable="YES"
nfs_server_enable="YES"   ;(starts nfsd and mountd)

ps -ax should show portmap mountd and nfsd
edit /etc/exports
to define the directories that are to be made available for export
For example, to export /pub/home, add the line
/pub/home
Now tell mountd to re-read the exports file either reboot
or
killall -1 mountd

Any problems will appear in /var/log/messages
(For example, symlinks cannot be used by exports)

At the client end:
To access /pub/home on the computer you were just working on (hostname = server, ip address = 192.168.1.5)

First make sure you have a directory to be used
cd /
mkdir homeplate

then mount it
mount server:/pub/home homeplate
or
mount 192.168.1.5:/pub/home homeplate

Now everythine on /pub/home on the server computer will appear on /homeplate on the client computer.

You can lose the network connection for a while, or have the server reboot, and the client will not "crash", although the server's files won't be available until the server is again available.