Install NFS server in Debian|ubuntu|LinuxmintNovember 16, 2010 by: upa_kid
Network File System (NFS) is a network file system protocol originally developed by Sun Microsystems in 1984,
it was developed to allow machines to mount a disk partition on a remote machine as if it were a local disk. It allows for fast, seamless sharing of files across a network.
It also gives the potential for unwanted people to access your hard drive over the network (and thereby possibly read your email and delete all your files as well as break into your system) if you set it up incorrectly. Now we will show you how
to install NFS server .
3 important packages are needed: nfs-kernel-server nfs-common portmap
First install them using the command
#sudo apt-get install nfs-kernel-server nfs-common portmap
NFS Server Configuration
NFS exports from a server are controlled by the file /etc/exports. Each line begins with the absolute path of a directory to be exported, followed by a space-seperated list of allowed clients.
to export /unixdata directory add this to /etc/export .
youb cam change the Ip adress with hostname of hostname of nfs-clients
- rw : Allow clients to read as well as write access
- ro : Read only access
- insecure : Tells the NFS server to use unpriveledged ports (ports > 1024).
- no_subtree_check : If the entire volume (/users) is exported, disabling this check will speed up transfers.
- async : async will speed up transfers.
If you make changes to /etc/exports on a running NFS server, you can make these changes effective by issuing the command:
now back to NFS linux client
#mkdir /unixdata #mount 192.168.0.100:/unixdata /unixdata
now with df -h of mount command , you can see the partition add
you can see from the client all shared directroy with
- Setting Up An NFS Server And Client On Debian Etch
- Setting Up An NFS Server And Client On Debian Lenny
- Setting Up An NFS Server And Client On Ubuntu 10.04
- [Debian-Sarge] Tunneling NFS over SSH
- Setting Up An NFS Server And Client On CentOS 5.5
- CentOS / Redhat: Setup NFS v4.0 File Server
- Managing Multiple KVM Hosts With Enomalism2 [Ubuntu 8.10]
- Highly Available NFS Server Using DRBD And Heartbeat On Debian 5.0 (Lenny)
- Linux mount remote filesystems automatically at boot time
- Creating An NFS-Like Standalone Storage Server With GlusterFS On Fedora 12