NFS

From Wiki

Revision as of 22:49, 2 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Network File Share

Install on Server

apt-get install nfs-kernel-server nfs-common portmap

Install on Client

apt-get install nfs-common portmap

Config on the server:

vi /etc/exports
/home 195.12.32.2(rw,no_root_squash) www.first.com(ro)
/usr 195.12.32.2/24(ro,insecure)

exportfs -a   //read in /etc/exports file

Config on the Client:

vi /etc/fstab
195.12.32.1:/home /home nfs rw,rsize=4096,wsize=4096,hard,intr,async,nodev,nosuid 0 0
195.12.32.2:/usr /usr nfs ro,rsize=8192,hard,intr,nfsvers=3,tcp,noatime,nodev,async 0 0

nfs.host.com:/home             /home   nfs     hard,intr,rsize=16384,wsize=16384,posix,tcp 0 2
//the above is the line used on compsoc nfs. async is default!

To mount a nfs drive with the options in /etc/fstab:

mount /home
//or mount /nfsname
//or better yet - after making a change to /etc/fstab etc.:
mount -oremount /home

Tips

showmount -e ip_or_server_name
#shows what mounts a server is exporting.

http://www.debian-administration.org/users/colabus/weblog/1

http://www.debianhelp.co.uk/nfs.htm

Personal tools