LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2017, 07:44 AM   #1
haseem saeed
Member
 
Registered: Jan 2017
Location: karachi,Pakistan
Distribution: Centos,Ubuntu
Posts: 34

Rep: Reputation: Disabled
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.
 
Old 02-09-2017, 07:57 AM   #2
jonnybinthemix
Member
 
Registered: May 2014
Location: Bristol, United Kingdom
Distribution: RHEL 5 & 6
Posts: 169

Rep: Reputation: Disabled
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
 
Old 02-09-2017, 11:57 PM   #3
haseem saeed
Member
 
Registered: Jan 2017
Location: karachi,Pakistan
Distribution: Centos,Ubuntu
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jonnybinthemix View Post
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
 
Old 02-10-2017, 05:59 AM   #4
jonnybinthemix
Member
 
Registered: May 2014
Location: Bristol, United Kingdom
Distribution: RHEL 5 & 6
Posts: 169

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
  


Reply

Tags
centos6, nfs mount network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to configure NFS Server and Client Configuration on Ubuntu 15.10 LXer Syndicated Linux News 0 01-18-2016 05:21 PM
LXer: How to configure NFS Server and Client Configuration on Ubuntu 15.04 LXer Syndicated Linux News 0 09-29-2015 02:30 PM
Clarifications needed to configure NFS client bzlaskar Linux - Server 3 07-21-2010 08:36 AM
How to Configure the Damn Small NFS client HellesAngel DamnSmallLinux 4 08-28-2009 05:22 AM
how to configure nfs client rmuhammad Linux - Software 2 05-22-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration