Data Networking/Spring 2015/GROUP4/NFS
Configuration of NFS
editCONFIGURATION STEPS FOR NFS SERVER=
edit1.Install the NFS server by using below command:
sudo apt-get install nfs-kernel-server
2.create a directory that can be shared.provide the permissions
sudo mkdir /home/sravani/dn
3.create somefiles in the shared directory and createuser and group
sudo chown sravani:mvrs /home/sravani/dn
4.Edit the /etc/exports file and enter the details of the directory which should be shared and provide permissions accordingly and modify as shown below
/home/sravani/dn client-ip (rw,sync,no_root_bquash,no_subtree_check)
5.Restart the server by using the following commmand
sudo /etc/init.d/nfs-kernel-server restart
6.To see the directories or files
sudo show mount -e
CONFIGURATION AT CLIENT SIDE
edit1.Install nfs common
sudo apt-get install nfs-common
2.Now create a directory
sudo mkdir -p /home/rajesh/NFS
3.Now connect both client and server and mount the files
sudo mount 192.168.5.9:/home/sravani/dn/home/rajesh/NFS
4. To check the mounted fiiles
mount -t NFS
To test NFS
In client;
1.To see mounted file:
sudo touch /home/rajesh/NFS/test.txt