Tuesday, November 22, 2011

HowTo - NFS


Installation




Setting up IP addresses



# ifconfig eth0 192.168.0.x

Server : 192.168.0.8

Client1: 192.168.0.7


Server


1. Install the nfs-kernel-server packet

I used synaptic package manager in Ubuntu 10.04 to install it.


2. Change
/etc/exports file [1]

/home/synrg/server 192.168.0.7(rw,no_root_squash,async)

I also changed /etc/hosts.allow file for permission concern (I don't know whether it is necessary.)

portmap:ALL

3. Start nfs server
You might need to stop and start again if it's already running.

# bash /etc/init.d/nfs-kernel-server start

Client


1. Mount from server
# mount 192.168.0.8:/home/synrg/server /mnt/synrg/

Files written into /mnt/synrg folder on the client machine will simultaneously transferred to the /home/synrg/server folder on the server machine.

References


[1]http://nfs.sourceforge.net/nfs-howto/ar01s03.html

No comments:

Post a Comment