Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mounting nfs server which is down blocks all other nfs mounts on same machine #1309

Closed
alex-vmw opened this issue May 15, 2021 · 1 comment
Closed

Comments

@alex-vmw
Copy link

alex-vmw commented May 15, 2021

mounting nfs server which is down blocks all other nfs mounts on same machine. The default timeout seems to be set at 3mins, but for those 3 minutes all other mount commands for any other nfs servers just hang. Why does a single hanging NFS mount blocking all other nfs mounts on the same machine?

How to re-create:

  1. Try to mount some NFS Server at an IP that you know is down. For example, if you know that 10.10.10.10 IP is down, run mkdir /tmp/test; mount 10.10.10.10:/test /tmp/test.
  2. At this point the mount command will hang for 3 minutes.
  3. Open a second terminal on your machine and try to mount an NFS server which you know 100% works. For example, if you know that NFS mount for 10.10.20.20:/test2 should succeed, run mkdir /tmp/test2; mount 10.10.20.20:/test2 /tmp/test2.
  4. At this point the second mount command will also hang until the first mount command in another terminal will timeout.

P.S. This issue, combined with Kubernetes, where you can easily have multiple pods constantly trying to mount down NFS servers, results in linux nodes that can't mount anything because mount commands are just constantly hanging.

@karelzak
Copy link
Collaborator

In this case, mount(8) from util-linux is just a stupid wrapper for kernel and mount.nfs (from nfs-utils) functionality. I do not see a way how to improve it. It would be better to talk to NFS developers. Please, see https://linux-nfs.org/wiki/index.php/Main_Page.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants