Can't mount nfs volume - time out
Solution 1
So, NFS is weird in the it relys on portmapper to be running, so it can map a specific port to an RPC port. (I guess it's not weird. It's just the way it works.) If NFS is up before portmapper, NFS doesn't know how to route requests, because it checks portmapper for this at the start of the process. If portmapper is not up before NFS, NFS doesn't know how to map port to rpc.
Here's more documentation about the process (even though its for CentOS, it's still relevant): http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s2-nfs-methodology-portmap.html
As for your new error message, reboot the box you're mounting with and remount to see if the error comes back.
Solution 2
to summarize the solution from given answers, following steps below directed me to the right direction to fixing NFS mount issue without restating the box.
-
run a tcpdump in client side to the NFS server IP address (assuming it's 1.2.3.4)
tcpdump -i <replace-with-correct-INTERFACE_name -n host 1.2.3.4
-
keep running tcpdump and try mounting the NFS share path.
-
lookup for the ports NFS is communicating with the server to mounting the path (in your case [tcpdump result in edit revision], shows those are ports: 880, 2049 only).
-
do telnet on NFS server IP and all the ports you got from tcpdump output in step3 and make sure you have telnet and ports are open from server side to client (for your case, only below two ports found).
telnet 1.2.3.4 880 telnet 1.2.3.4 2049
-
if you don't have telnet on any of those ports captured in step3, you need to open those ports at netwrok level (server side and/or firewall if you have)
-
try to mount the NFS again now.
Solution 3
tcpdump -i $LAN_IF -n host 10.10.10.2
should show you which of the NFS components fails.
Solution 4
Well i used to get the same error. I realized the only reason for there to be a timeout is because the connection has not been established properly. Digging deeper into the problem, I checked my firewall, and damnn NFS4 service was blocked !!
Solutiion:- Use the below command to configure your firewall settings and add * next to NFS4 service to enable it.
$ sudo system-config-firewall-tui
Related videos on Youtube
Gleb
Updated on September 18, 2022Comments
-
Gleb over 1 year
How can i find coordinate of point "C", when i know only:
1) Distance from "A" to "B";
2) Angle
3) Start point
In JS that look's like:
let A = {x: 50, y: 30}, B = {x: 50, y: 80}, C = {x: null, y: null}; let angle = 345; let distanceBetweenAB = (B.x - A.x) + (B.y - A.y); C = ?
Detailed in the picture:
-
CIA about 11 yearsIs selinux enabled/disabled?
-
Nathan about 11 years@CIA to the best of my knowledge, selinux is neither installed nor supported on OpenSUSE.
-
CIA about 11 yearsAre you sure? As of version 11.1, openSUSE contains SELinux “basic enablement”. news.opensuse.org/2008/08/20/…
-
Nathan about 11 yearsThe fileserver is running OpenSuSE 11.0
-
CIA about 11 yearsI can see you are able to ping to your nfs box. Are you able to ping your server from the nfs box? Also, were you trying to mount to ~/root/raid or did you mean to mount to /raid? And for your /etc/exports, have you tried explicitly defining the IP instead of using "*"?
-
Nathan about 11 years1: Yes. 2: ~/raid is a symlink to /mnt/raid. Specifying the full path doesn't change the behavior. This is how I have always mounted the export. 3: * should be more permissive than explicitly defining the IP, and it's how the server has always been configured. DHCP clients sometimes access this export, so explicit IP assignment won't work in the long term.
-
CIA about 11 yearsYou have multiple systems connecting to this nfs? Are any of them having problems mounting as well?
-
Bob__ over 6 yearsWhat do you mean with
a = 345*
? -
High Performance Mark over 6 yearsI'm voting to close this question as off-topic because it is not about programming.
-
Gleb over 6 years@Bob__ 345* - it is degrees
-
Bob__ over 6 yearsIn your drawing, a seems to be the measure of an inner angle of a triangle. 345 degrees seems a bit too much. It's the heading of AC relative to some coordinate system, a random value or a typo for 34.5?
-
Gleb over 6 years@High Performance Mark sorry, that common question in various programming languages. Now i write it in javascript.
-
-
Nathan about 11 yearsI can connect to 111 and 2049. I think the other ports may be randomly assigned, since they're different on my server (check my edit to the post above).
-
Nathan about 11 yearsI have added tcpdump information to the question. Let me know if you find it helpful.
-
Hauke Laging about 11 yearsI don't understand the entries like 10.10.10.10.316725468. But it's obvious that you use NFS4 and that communication with the server is possible in general. I didn't know that tcpdump understands NFS. I just read that you get more NFS related information by giving -vv as an argument. It seems that your client calls the NFS "command" "176 getattr fh 0,0/35" and shortly after that finishes the connection. Even more strange: The server continues sending data after that and gets a connection reset. There's no need to print lines after the first "Flags [R.]".
-
Nathan about 11 yearsI don't think I'm actually using NFSv4. I believe I have it set up with v3. Could this be the source of the problem?
-
Hauke Laging about 11 yearsOK, I am not familiar enough with NFS. TCP on port 2049 was possible with NFSv3. I thought that nonetheless connections to portmapper and mountd were necessary (which are not necessary in NFSv4).
-
Nathan about 11 yearsI think I've seen the "new" error message before, and it doesn't appear to actually matter when it comes to being able to mount the export. It's quite possibly related to the ancient version of OpenSUSE we're running. One day maybe I'll get an intern to upgrade it :). Anyway, thanks for the help.
-
Gleb over 6 yearsThank's, how to find distance between BC, i don't now: distanceBC = tan(angle) ?
-
Gleb over 6 yearsThank. Direction from A to B, that can be write like: distanceBetweenAB = (B.x - A.x) + (B.y - A.y) ?
-
Nico Schertler over 6 yearsIt is supposed to be a vector:
dir = (B.x - A.x, B.y - A.y)
. -
pgoetz about 2 yearsFor NFSv4 you only need port 2049. rpcbind runs on port 111 and isn't needed by NFSv4. In fact, because rpcbind can be used to amplify DDOS attacks, having an open 111 port could get you quarantined by your information security office.