NFS over TCP on 5.4: client stucks

Valerio daelli valerio.daelli at gmail.com
Fri Dec 2 06:58:50 PST 2005


Hello everybody
I am trying to mount via NFS a directory exported from FreeBSD 5.4 on a
FreeBSD 5.4.
The server has these settings:

nfs_server_enable="YES"          # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 8"   # Flags to nfsd (if enabled).
nfs_reserved_port_only="YES"     # Provide NFS only on secure port (or NO).
nfs_bufpackets="8"               # bufspace (in packets) for client
mountd_enable="YES"              # Run mountd (or NO).
rpcbind_enable="YES"             # Run the portmapper service (YES/NO).
rpcbind_program="/usr/sbin/rpcbind"     # path to rpcbind, if you want a
different one.
rpc_lockd_enable="YES"           # Run NFS rpc.lockd needed for
client/server.
rpc_statd_enable="YES"

and the client has these:

nfs_client_enable="YES"
nfs_access_cache="30"
nfs_bufpackets="8"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_enable="YES"

The client can mount the server via UDP, but not via TCP, it just stucks.
This is an extract from a tcpdump on the server


15:48:33.516995 IP client.991 > server.sunrpc: UDP, length: 56
15:48:33.517159 IP server.sunrpc > client.991: UDP, length: 28
15:48:33.518029 IP client.896 > server.nfsd: S 2110009721:2110009721(0) win
65535 <mss 1460,nop,nop,sackOK,nop,wscale 1,nop,nop,timestamp 190860 0>
15:48:33.518060 IP server.nfsd > client.896: S 3833266037:3833266037(0) ack
2110009722 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 84789431
190860,nop,nop,sackOK>
15:48:33.518458 IP client.896 > server.nfsd: . ack 1 win 33304
<nop,nop,timestamp 190861 84789431>
15:48:33.519193 IP client.1365672366 > server.nfs: 44 null
15:48:33.519230 IP server.nfs > client.1365672366: reply ok 28 null
15:48:33.519630 IP client.896 > server.nfsd: F 45:45(0) ack 29 win 33304
<nop,nop,timestamp 190862 84789431>
15:48:33.519649 IP server.nfsd > client.896: . ack 46 win 32745
<nop,nop,timestamp 84789431 190862>
15:48:33.519668 IP server.nfsd > client.896: F 29:29(0) ack 46 win 32745
<nop,nop,timestamp 84789431 190862>
15:48:33.519924 IP client.896 > server.nfsd: . ack 30 win 33303
<nop,nop,timestamp 190862 84789431>
15:48:33.520366 IP client.device > server.sunrpc: UDP, length: 56
15:48:33.520469 IP server.sunrpc > client.device: UDP, length: 28
15:48:33.539400 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK,nop,wscale 1,nop,nop,timestamp 190882 0>
15:48:36.538776 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK,nop,wscale 1,nop,nop,timestamp 193954 0>
15:48:39.737960 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK,nop,wscale 1,nop,nop,timestamp 197230 0>
15:48:42.937178 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>
15:48:46.136461 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>
15:48:49.335703 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>
15:48:55.534778 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>
15:49:07.733942 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>
15:49:31.933007 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 <mss 1460,nop,nop,sackOK>


Could anyone please help me?
Thank you

Valerio Daelli


More information about the freebsd-questions mailing list