This guide explain about to setup and NFS Server .Setting up the server will be done in two steps: Setting up the configuration files for NFS, and then starting the NFS services. Here we are going to use Configure NFS in a RHEL Server.

The first step is to configure the exports file where you need to give the details of your clients.Just edit the file shown like below

vi /etc/exports
/home/image/k 192.168.1.7(rw,no_root_squash,sync)
/home/image/k 192.168.1.116(rw,no_root_squash,sync)
/home/image/k 192.168.1.120(rw,no_root_squash,sync)
/home/image/k 192.168.1.115(rw,no_root_squash,sync)
/home/image/k 192.168.1.0(rw,no_root_squash,sync)
/home/image/k 192.168.1.5(rw,no_root_squash,sync)
/home/image/k 192.168.1.149(rw,no_root_squash,sync)

As you can see the first part is the folder which you are going to mount on the clients. (/home/image/k) The second is the ip of the client. and last section explains about the permission.(rw,no_root_squash,sync)

Once you have done the above settings just restart your nfs service

service nfs restart

Now you can go to your client machine and mount the same as shown below.

mount -t nfs 192.168.1.9:/home/image/k /home/data/i1/

I have mounted /home/image/k as /home/data/i1/ in my system

Thats all

Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive

Connect