Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have several front-end servers and a NFS server. Front-end servers all mounted the same NFS server.

Unfortunately the NFS server died today, and the weird thing is I can't log into any front-end server remotely through ssh. SSH hangs after I entered the password.

After I brought up another NFS server to use the same ip address of the NFS server, I can login successfully.

I'm wondering why ssh hanged before. Thanks

share|improve this question

I assume your have your homedirs on the NFS server. The SSH server probably tries to open the ssh private key in the user's .ssh dir and the OS fails to return any information. It also depends if your mount is done with the "hard" option or "soft" option. Usualy you only use "hard" if you are sure of the availability of the server, since a down server could hang your session:


Whether you hard- or soft-mount a volume depends partly on taste but also on the type of information you want to access from a volume. For example, if you mount your X programs by NFS, you certainly would not want your X session to go berserk just because someone brought the network to a grinding halt by firing up seven copies of Doom at the same time or by pulling the Ethernet plug for a moment. By hard-mounting the directory containing these programs, you make sure that your computer waits until it is able to re-establish contact with your NFS server. On the other hand, non-critical data such as NFS-mounted news partitions or FTP archives may also be soft-mounted, so if the remote machine is temporarily unreachable or down, it doesn't hang your session. If your network connection to the server is flaky or goes through a loaded router, you may either increase the initial timeout using the timeo option or hard-mount the volumes. NFS volumes are hard-mounted by default.

It's always safer to keep a local (non-root) login to avoid this kind of problem that would require you to physically move to the server to reboot it.

share|improve this answer
Hard mount is a PITA. Stuff hangs and your only recourse is a power cycle. Never got why this was the default. – itsadok Sep 27 '10 at 11:28
OTOH, soft mounts flake out unnecessarily under load and seem not to recover properly. hard+intr is the least worst solution. – pjc50 Sep 27 '10 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.