Skip to content

Commit

Permalink
nfs-utils: README: add brief description how to setup client/server
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Feb 12, 2024
1 parent 2d9b217 commit a4eaa02
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions nfs-utils/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
README nfs-utils


KERNEL CONFIGURATION

Enable the following options in the kernel configuration (choose
Expand All @@ -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.

0 comments on commit a4eaa02

Please sign in to comment.