Friday, March 25, 2011

Install NFS

1. NFS server install

$ sudo apt-get install nfs-kernel-server
$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#      to NFS clients.  See exports(5).
/data/work     *(rw,sync)
$ cd /etc/init.d
$ sudo ./nfs-kernel-server restart

2. NFS client install

$ sudo apt-get install nfs-common
$ showmount -e 192.168.0.105
Export list for 192.168.0.105:
/data/work    *
$ mkdir /work
$ sudo mount -o soft,intr,rsize=8192,wsize=8192 192.168.0.105:/data/work /work

No comments: