The above Ubuntu guide is pretty thorough. The following is a summary of the parts that were relative to me.
Firstly, servers must install the package nfs-kernel-server and clients must install nfs-client.
Some best practices to follow are to export nfs shares from /export, and shares in here are mounted bound to other file systems, like so:
# mount --bind /home/users /export/usersor, in fstab:
/media/maxtor/apt-mirror /export/apt-mirror none bind 0 0Also, a line has to be added to /etc/exports corresponding to the export path, like so:
/export/apt-mirror 10.1.10.0/24(rw,nohide,insecure,no_subtree_check,async)Restart the nfs service, and the server is all set up. To set up the client, add a line to /etc/fstab like so:
10.1.10.94:/export/apt-mirror /var/spool/apt-mirror/mirror nfs rw 0 0
No comments:
Post a Comment