NFS Troubleshoot: Fixing "Hanging on Mount" Issues

  • Thread starter Thread starter dduardo
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting issues related to mounting an NFS (Network File System) share, specifically focusing on a situation where the mount process hangs. Participants explore various configurations, logs, and potential causes, including server-client communication and service status.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant notes that the NFS server appears to communicate with the client but hangs during the mount process, despite local mounting working.
  • Another participant requests the exports file and suggests that hosts.deny and hosts.allow may not affect the situation unless tcpwrappers are in use, while emphasizing the importance of the exports file and portmapper status.
  • A participant shares their exports and hosts configuration files, along with output from rpcinfo, indicating various services and their ports.
  • One suggestion is to try mounting without the 'hard' and 'intr' options and to allow all in hosts.allow, while also checking syslog for additional insights.
  • A participant reports that their dmesg and syslog logs show an authenticated mount request but no further action, indicating a potential issue with the NFS daemon not running.
  • Another participant speculates that the issue may stem from a faulty version of nfs-utils and considers trying an older version.
  • One participant mentions that the SSH daemon on the client machine has died, which may affect the troubleshooting process.

Areas of Agreement / Disagreement

Participants express various hypotheses and suggestions, but there is no consensus on the root cause of the hanging issue. Multiple competing views and potential solutions remain under discussion.

Contextual Notes

There are indications of missing assumptions regarding the configuration and status of NFS services, as well as uncertainty about the role of specific files and services in the NFS setup.

dduardo
Staff Emeritus
Science Advisor
Insights Author
Messages
1,902
Reaction score
3
I have an NFS server which seems to be talking to the client, but it just hangs during the mout process. I can see the two services exchanging data with ethereal. I'm pretty sure exports, hosts.deny, hosts.accept are all right. Anyone have a clue what might be going on?

Btw, I can mount the share locally on the server machine.
 
Computer science news on Phys.org
Can you post your exports file?

hosts.deny and hosts.accept should have no effect unless you are using tcpwrappers. The exports file manages access to NFS, however, portmapper is sometimes wrapped in tcpwrappers.

Also, make sure you have portmapper running.

I could be wrong about hosts.* actually mattering, given I haven't touched a Linux system in quite awhile, let alone mess with it's ripped off NFS implementation.
 
Last edited:
/etc/exports:
/home/share 192.168.1.192(rw,sync) 192.168.1.191(rw,sync)

/etc/hosts.deny:
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

/etc/hosts.allow
portmap:192.168.1.191, 192.168.1.192
lockd: 192.168.1.191, 192.168.1.192
rquotad: 192.168.1.191, 192.168.1.192
mountd: 192.168.1.191, 192.168.1.192
statd: 192.168.1.191, 192.168.1.192

/etc/fstab

192.168.1.191:/home/share /mnt/share nfs rw,hard,intr 0 0

This is what ethereal is capturing:

0.000000 192.168.1.191 -> 192.168.1.192 SSH Encrypted request packet len=64
0.038870 192.168.1.192 -> 192.168.1.191 TCP ssh > 32907 [ACK] Seq=0 Ack=64 Win=7904 Len=0 TSV=106662 TSER=7584188

bash-2.05b$ /usr/sbin/rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32781 status
100024 1 tcp 32906 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32782 nlockmgr
100021 3 udp 32782 nlockmgr
100021 4 udp 32782 nlockmgr
100005 1 udp 626 mountd
100005 1 tcp 629 mountd
100005 2 udp 626 mountd
100005 2 tcp 629 mountd
100005 3 udp 626 mountd
100005 3 tcp 629 mountd
 
Last edited:
Try mounting it without hard and initr.

As a precautinary, put ALL's in /etc/hosts.allow.

Also, NFS should be logging to a syslog facility. Watch dmesg and /var/log/syslog; they should give some insight into what's going wrong.
 
I tried the first two things, but they didn't work

dmesg:

IN-interface1:IN=eth0 OUT= MAC=00:00:00:00:d7:98:00:06:25:04:62:9a:08:00 SRC=192.168.1.192 DST=192.168.1.191 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=3298 DF PROTO=TCP SPT=795 DPT=111 WINDOW=5840 RES=0x00 SYN URGP=0

Syslog:

Dec 20 19:44:01 gentoo1 rpc.mountd: authenticated mount request from 192.168.1.192:829 for /home/share (/home/share)

It looks like my machine is capturing the request, but not doing anything with it.
 
dduardo said:
I tried the first two things, but they didn't work

dmesg:

IN-interface1:IN=eth0 OUT= MAC=00:00:00:00:d7:98:00:06:25:04:62:9a:08:00 SRC=192.168.1.192 DST=192.168.1.191 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=3298 DF PROTO=TCP SPT=795 DPT=111 WINDOW=5840 RES=0x00 SYN URGP=0

Syslog:

Dec 20 19:44:01 gentoo1 rpc.mountd: authenticated mount request from 192.168.1.192:829 for /home/share (/home/share)

It looks like my machine is capturing the request, but not doing anything with it.

This might be a long shot, but I don't see nfsd running. I just see nfs, and that's usually the client.

Typically, mountd just captures the RPC requests, and passes them onto nfsd. Because of my unfamiliarity with the Linux NFS implementation, I'm not sure what all mountd does, but search around for nfsd.
 
I'm pretty sure I followed the documentation to the letter. My only guess now is that the nfs-utils I'm using is borked. I'm going to try an older version
 
O great, the ssh daemon on the other computer died. I guess i'll have to try again tommorow.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K