Here is my notes on setting up the NFS server in FC6 for my home network.
Setting up the server:
For a start one need to go to System, Administration, Server Settings, NFS.
Under Basic settings.
Directory : /home/coyote/Archive
Basic Permission: Read-only/Read/Write.
1st line: means sharing /home/coyote/Archive on the server
2nd line: all pc under the subnet 188.8.131.52 are allowed acces
3rd line: Read-only or Read & Write access.
Alternatively, one can edit the file /etc/exports to enable the same
settings manually. My /etc/exports looks like this:
Create the file "/etc/sysconfig/nfs" and add the following contents:
Append the following to the file "/etc/services":
rquotad 4004/tcp # rpc.rquotad tcp port
rquotad 4004/udp # rpc.rquotad udp port
Restart the nfs services:
Run /usr/sbin/rpcinfo -p and make sure all the ports above have changed.
Next go to System, Administration, Security & Firewall
Check NFS4 as 'Trusted Services"
Under other ports, add the following ports
That pretty much sums up all the work to be done on the server.
Next, mounting the NFS volume from the client computer:
First, one need to create a mount point of your choice.
I created one under /home/username/nfsserver
using mkdir /home/username/nfsserver
To mount the volume manually, with root access,
mount -t nfs 192.168.0.9:/home/coyote/Archive home/username/nfsserver
where 192.168.0.9 is the ip address of the nfs server.
To mount the volume automatically, add the line to /etc/fstab. Mine looks like this
192.168.0.9:/home/coyote/Archive /home/username/nfsserver nfs ro 0 0
To enable the access over the internet, both the ip addresses of the nfs server & the nfs clients are to be replaced with corresponding dns names. Example above is valid only for access across a local network.
One can register domain names for the nfs server & nfs client from dyndns.org. After that, replaces the ip address of the nfs client with the new dns name. This is to be entered into the 'Host' section in the server's settings. Replaces the ip address of the nfs server with the new dns name. This is done during the mounting command or in /etc/fstab.
Note also, if your nfs server is running behind a router or a firewall, one will need to open up port 111:tcp, 111:udp, 2049:tcp & 2049:udp to the nfs server. That is done via the router's setting.
There, that concludes my learning in setting up a NFS server in FC6.