diff --git a/nfs-utils/README b/nfs-utils/README index 9fa2280..0cef89d 100644 --- a/nfs-utils/README +++ b/nfs-utils/README @@ -1,5 +1,6 @@ README nfs-utils + KERNEL CONFIGURATION Enable the following options in the kernel configuration (choose @@ -14,4 +15,63 @@ KERNEL CONFIGURATION Select the appropriate sub-options that appear when the above options are selected. + +SETUP NFS (Client and Server) + + This is a very brief description of how to setup the NFS client and + server. It is not intended to be a "Guide", but rather to show the + things specific to Zeppe-Lin. + + + On Server + ~~~~~~~~~ + + Start the required services: + + /etc/rc.d/rpcbind start + /etc/rc.d/nfs start + /etc/rc.d/nfsserver start + + To enable NFS server at boot time, add the following services to + /etc/rc.conf: + + SERVICES='... rpcbind nfs nfsserver' + + Create shared directory (if not existing one), i.e. /data: + + mkdir -p /data + + Export it, add the appropriate line to /etc/exports: + + /data 192.168.1.0/24(ro,no_root_squash,no_subtree_check,insecure) + + Note that your settings may (and should) differ. + See exports(5) for more information. + + Finally, apply changes to this file and restart the NFS server: + + exportfs -ra + /etc/rc.d/nfsserver restart + + + On Client + ~~~~~~~~~ + + Create the mount directory (if not existing one), i.e. /mnt/data: + + mkdir -p /mnt/data + + Add server's exports to /etc/fstab, replace SRV_IPADDR with + server's IP address accordingly: + + SRV_IPADDR:/data /mnt/data /nfs timeo=14,intr + + Run the required services: + + /etc/rc.d/rpcbind start + /etc/rc.d/nfs start + /etc/rc.d/nfsclient start + + Add them to /etc/rc.conf to run NFS client at boot time. + End of file.