LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant configure nfs client (https://www.linuxquestions.org/questions/linux-newbie-8/cant-configure-nfs-client-4175599349/)

haseem saeed 02-09-2017 06:44 AM

cant configure nfs client
 
hi,
i am trying to configure nfs client on my virtual machine centos 6.5
i have so far configured my server on another virual machine the domain name of which is haseem.com and the hostname is saeed .now coming back to the client side when i am mounting it is giving me the error (mount.nfs : connection timed out). my client and the server are on the same network .
i am using this : mount -t nfs saeed.haseem.com:/home /home
kindly if anyone can help me out regarding this
thanks,
haseem.

jonnybinthemix 02-09-2017 06:57 AM

Have you configure the Firewall on the server side to allow the NFS connection in?

Test by flushing the firewall (presuming it's not full of config you need)

iptables -F

Then test the mount.

If it's just a VM test environment, maybe you don't need the firewall enabled.

If you do, you'll need to open some ports;

111 for RPC
2049 for NFS
and whichever ports are configured for portmapper in /etc/sysconfig/nfs

haseem saeed 02-09-2017 10:57 PM

Quote:

Originally Posted by jonnybinthemix (Post 5667721)
Have you configure the Firewall on the server side to allow the NFS connection in?

Test by flushing the firewall (presuming it's not full of config you need)

iptables -F

Then test the mount.

If it's just a VM test environment, maybe you don't need the firewall enabled.

If you do, you'll need to open some ports;

111 for RPC
2049 for NFS
and whichever ports are configured for portmapper in /etc/sysconfig/nfs


thanks ,
but i have already disabled the firewall

jonnybinthemix 02-10-2017 04:59 AM

Okay, so I would start with the basics. You're getting the error "Connection Timed Out" - So, something is not responding on the server side. Either because the firewall is blocking it, or the service is not started and/or incorrectly configured.

I'm afraid at this point you're going to have to give us more information.

Is your /etc/exports file properly set up? Post here maybe..

Maybe before that, check that the services required look good on the server side with:

service nfs status
service rpcbind status

Make sure they're started. If not start them, chkconfig them on and try again.

chkconfig nfs on
chkconfig rpcbind on
service rpcbind start
service nfs start

Assuming all of the above is good;

showmount -e saeed.haseem.com

Do you get an error when listing the exports with the above command?

Cheers,
Jon


All times are GMT -5. The time now is 09:55 AM.