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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-09-2017, 07:44 AM
|
#1
|
Member
Registered: Jan 2017
Location: karachi,Pakistan
Distribution: Centos,Ubuntu
Posts: 34
Rep:
|
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.
|
|
|
02-09-2017, 07:57 AM
|
#2
|
Member
Registered: May 2014
Location: Bristol, United Kingdom
Distribution: RHEL 5 & 6
Posts: 169
Rep:
|
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
|
|
|
02-09-2017, 11:57 PM
|
#3
|
Member
Registered: Jan 2017
Location: karachi,Pakistan
Distribution: Centos,Ubuntu
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by jonnybinthemix
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
|
|
|
02-10-2017, 05:59 AM
|
#4
|
Member
Registered: May 2014
Location: Bristol, United Kingdom
Distribution: RHEL 5 & 6
Posts: 169
Rep:
|
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.
|
All times are GMT -5. The time now is 10:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|