Monday, January 22, 2007

NFS

Debian/Ubuntu:
Ok nfs is fairly simple yet a bit of a pain... I am serving up NFS using nfs-kernel-server... First of all the NFS service control is kept in the /etc/init.d/ as normal, and it's of course called nfs-kernel-server.

Some simple things to know is that the nfs shares are configured in the /etc/exports file which also contains some access control and more specific access control is kept in the etc/hosts.allow and etc/hosts.deny can have an effect on it too...

One thing to note is that the mountd command is in /usr/sbin/rpc.mountd which is helpful because you can run "rpc.mountd -F" and get a foreground view of whats going on with the mountd service so you can see what messages you get when other boxes try to mount something from your server... Great for troubleshooting...

Simple mount command is "mount -t nfs ipaddress:/share /whereto"
Oh and the "/whereto" has to exist before hand, so create the directory first and then you can mount something to it...

No comments: