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.
|
|
07-06-2012, 07:32 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Rep:
|
NFS
I'm trying to mount a filesystem from an nfs server RH (nfs-utils-0.3.3-5) on a client running Ubuntu 12.04 server.
Using command:
sudo mount -Vt nfs server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes
I get the error:
mount.nfs: Connection timed out
When I use the -V argument it responds quickly with:
mount from util-linux 2.20.1 (with libblkid and selinux support)
The /etc/fstab has the line for the filesystem in question:
server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes nfs
What should I look for? Any help appreciated.
|
|
|
07-06-2012, 07:46 AM
|
#2
|
Member
Registered: May 2008
Location: Bangalore
Posts: 31
Rep:
|
Quote:
Originally Posted by rpm081966
I'm trying to mount a filesystem from an nfs server RH (nfs-utils-0.3.3-5) on a client running Ubuntu 12.04 server.
Using command:
sudo mount -Vt nfs server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes
I get the error:
mount.nfs: Connection timed out
When I use the -V argument it responds quickly with:
mount from util-linux 2.20.1 (with libblkid and selinux support)
The /etc/fstab has the line for the filesystem in question:
server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes nfs
What should I look for? Any help appreciated.
|
The PC you are trying to mount NFS and the target should be in one tree of IP. Ex 192.168.1.xx and 92.168.1.xx
Both the IPs shd be Static.
Check the link of network while doing NFS , is it going down ???
|
|
|
07-06-2012, 08:07 AM
|
#3
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
Please make sure that following service are running on server side: rpcbind, nfslock and nfs. And on client side: rpcbind, rpcidmapd, nfslock and netfs. Then try to mount.
|
|
|
07-06-2012, 08:55 AM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
What do your /etc/hosts.allow, /etc/hosts.deny, and /etc/exports files on the server look like?
Anything in /var/log/messages on the server about the attempted connection?
|
|
|
07-06-2012, 09:25 AM
|
#5
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Original Poster
Rep:
|
Thanks....
The network is fine.
Quote:
Originally Posted by uk.engr
Please make sure that following service are running on server side: rpcbind, nfslock and nfs. And on client side: rpcbind, rpcidmapd, nfslock and netfs. Then try to mount.
|
on server side: rpcbind, nfslock and nfs = all ok
on client side: rpcbind = rpcbind -w, rpcidmapd = ok , nfslock and netfs not running but nfsiod is running.
Quote:
Originally Posted by suicidaleggroll
What do your /etc/hosts.allow, /etc/hosts.deny, and /etc/exports files on the server look like?
Anything in /var/log/messages on the server about the attempted connection?
|
/etc/hosts.allow and /etc/hosts.deny are empty. /etc/exports is correctly configured on the nfs server which is working with other clients. /var/log/messages has no reference to the mount request.
|
|
|
07-06-2012, 09:52 AM
|
#6
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Original Poster
Rep:
|
How do I start nfslock and netfs on the client?
|
|
|
07-07-2012, 01:04 AM
|
#7
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
Quote:
How do I start nfslock and netfs on the client?
|
/etc/init.d/nfslock start
/etc/init.d/netfs start
|
|
|
07-09-2012, 05:53 AM
|
#8
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by uk.engr
/etc/init.d/nfslock start
/etc/init.d/netfs start
|
I'm afraid that neither of those files exist but I have installed nfs-common. Are they required?
|
|
|
07-09-2012, 08:01 AM
|
#9
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
Try to install nfs as "yum install nfs*", * means should install all dependencies or desire files. I hope it will install nfslock and netfs it self becuase I installed nfs in this way so I had these files. One more thing disable your firewall as vim /etc/selinux/config and set SELINUX=disabled. This may also resist you to mount nfs share on both side server and client.
Please refer the following link:
http://www.server-world.info/en/note?os=Fedora_14&p=nfs
Last edited by uk.engr; 07-09-2012 at 08:03 AM.
|
|
|
07-11-2012, 09:10 AM
|
#10
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by uk.engr
Try to install nfs as "yum install nfs*", * means should install all dependencies or desire files. I hope it will install nfslock and netfs it self becuase I installed nfs in this way so I had these files. One more thing disable your firewall as vim /etc/selinux/config and set SELINUX=disabled. This may also resist you to mount nfs share on both side server and client.
Please refer the following link:
http://www.server-world.info/en/note?os=Fedora_14&p=nfs
|
Thanks. I'm afraid I still don't have a resolution. I can mount from this server to other machines on the network but not from other machines to this one. I get a 'connection timed out' message. The problem seems to be a Ubuntu specific issue so the Fedora notes aren't throwing any light on it.
|
|
|
07-12-2012, 10:24 AM
|
#11
|
LQ Newbie
Registered: Jul 2012
Posts: 6
Original Poster
Rep:
|
It worked when I did this:
sudo mount -o proto=udp server:/mnt/homedirs /mnt/homedirs
|
|
|
07-13-2012, 02:14 AM
|
#12
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
Great!
|
|
|
All times are GMT -5. The time now is 01:02 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
|
|