NFS notes

basic NFS notes

server: 192.0.2.29
client : 192.0.2.13

server
server# cat /etc/issue /etc/debian_version 
Debian GNU/Linux 7 \n \l

7.6


client
client# cat /etc/issue /etc/debian_version
Debian GNU/Linux 7 \n \l

7.5


Install the kernel space NFS server
server# apt-get install nfs-kernel-server


Allow read only access from 192.0.2.13 to the /insigdato/movies directory
server# echo "/insigdato/movies/  192.0.2.13(ro,sync,no_subtree_check)" >> /etc/exports


Restart nfsd
server# /etc/init.d/nfs-kernel-server restart


Install nfs support files in the client
client# apt-get install nfs-common


Mount the server directory /insigdato/movies in the client
client# mkdir /movies
client# mount 192.0.2.29:/insigdato/movies /movies


adjust fstab in the client
client# echo "192.0.2.29:/insigdato/movies /movies nfs  ro,sync,hard,intr  0  0" >> /etc/fstab
test client fstab
client# umount /movies
client# mount -a




basic NFS debian wheezy