Skip to contentSkip to conversation

NFS client hangs...

DISCUSSION Ryan Mak 2 participants 8 messages Dec 14, 2004

Subsystems (2)
lore
Share & tools
lore

Ryan Mak

author
#0 lore raw

Hi.

I am currently experiencing a hanging problem when I try to either 'ls' or 'vi' on a successfully mounted directory. I am using redhat 8.0, kernel version 2.4.20-28.8, nfs-utils version nfs-utils-1.0.1-2.

enclosed is a tcpdump which shows retries from the client despite an immediate ACK from the server. I am not familiar with NFS messages so I would appreciate it if someone skillfull in this particular artform could decipher this. after about 5 minutes of retries, the client eventually succeeds...both client and server are idle so loading or cpu consumption is not an issue. thanx.

08:17:52.119651 192.168.1.18.4263549657 > 192.168.1.120.nfs: 176 create [|nfs] (DF) 08:17:52.119929 192.168.1.120.nfs > 192.168.1.18.4263549657: reply ok 264 create [|nfs] (DF)
08:17:54.919634 192.168.1.18.4263549657 > 192.168.1.120.nfs: 176 create [|nfs] (DF) 08:17:54.919991 192.168.1.120.nfs > 192.168.1.18.4263549657: reply ok 264 create [|nfs] (DF)
08:18:00.519658 192.168.1.18.4263549657 > 192.168.1.120.nfs: 176 create [|nfs] (DF) 08:18:00.519940 192.168.1.120.nfs > 192.168.1.18.4263549657: reply ok 264 create [|nfs] (DF)
08:18:11.719763 192.168.1.18.4263549657 > 192.168.1.120.nfs: 176 create [|nfs] (DF) 08:18:11.720092 192.168.1.120.nfs > 192.168.1.18.4263549657: reply ok 264 create [|nfs] (DF)
08:18:34.119793 192.168.1.18.4263549657 > 192.168.1.120.nfs: 176 create [|nfs] (DF) 08:18:34.120152 192.168.1.120.nfs > 192.168.1.18.4263549657: reply ok 264 create [|nfs] (DF)

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

m=E5 den 13.12.2004 Klokka 16:50 (-0800) skreiv Ryan Mak:

Quoted 9 lines

Hi.
=20
I am currently experiencing a hanging problem when I try to either 'ls' or 'vi' on a successfully mounted directory. I am using redhat 8.0, kernel version 2.4.20-28.8, nfs-utils version nfs-utils-1.0.1-2. =20
enclosed is a tcpdump which shows retries from the client despite an immediate ACK from the server.=20

Was that tcpdump taken on the server or the client?

Cheers,
Trond
--=20
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

author
#2 lore raw

oops. the tcpdump was taken on the client.

--- Trond Myklebust <[email protected]>

Quoted 11 lines · wrote:

må den 13.12.2004 Klokka 16:50 (-0800) skreiv Ryan Mak:

Quoted 3 lines

Hi.

I am currently experiencing a hanging problem when

I

Quoted 1 line

try to either 'ls' or 'vi' on a successfully

mounted

Quoted 3 lines

directory. I am using redhat 8.0, kernel version
2.4.20-28.8, nfs-utils version nfs-utils-1.0.1-2.

Quoted 11 lines
Quoted 2 lines

enclosed is a tcpdump which shows retries from the client despite an immediate ACK from the server.

Was that tcpdump taken on the server or the client?

Cheers,
Trond

Signature · 1 line
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

m=E5 den 13.12.2004 Klokka 17:05 (-0800) skreiv Ryan Mak:

Quoted 1 line

oops. the tcpdump was taken on the client.

You sure it wasn't taken on the server?

The pattern indicates that the RPC client is retrying and backing off exponentially because it is not seeing replies from the server. If indeed the tcpdump was taken on the client, then something funny is going on, because that would mean that the networking layer is seeing the packets, but the RPC layer is not receiving them.

Cheers,
Trond

Quoted 26 lines

=20
--- Trond Myklebust <[email protected]>
wrote:
=20

Quoted 13 lines

m den 13.12.2004 Klokka 16:50 (-0800) skreiv Ryan
Mak:

Quoted 3 lines

Hi.
=20
I am currently experiencing a hanging problem when

I

Quoted 1 line

try to either 'ls' or 'vi' on a successfully

mounted

Quoted 5 lines

directory. I am using redhat 8.0, kernel version 2.4.20-28.8, nfs-utils version nfs-utils-1.0.1-2. =20
enclosed is a tcpdump which shows retries from the client despite an immediate ACK from the server.=20

Quoted 9 lines

=20
Was that tcpdump taken on the server or the client? =20
Cheers,
Trond
--=20
Trond Myklebust <[email protected]> =20
=20

Quoted 1 line

=20

--=20
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

author
#4 lore raw

yes, i am absolutely sure that the tcpdump was not taken on the server...it was indeed taken on the client. does anyone know what possible reasons that these ACKs are not received by the RPC layer on the client side or know of a way that I could debug further? thanx.

--- Trond Myklebust <[email protected]>

Quoted 47 lines · wrote:

må den 13.12.2004 Klokka 17:05 (-0800) skreiv Ryan Mak:

Quoted 1 line

oops. the tcpdump was taken on the client.

You sure it wasn't taken on the server?

The pattern indicates that the RPC client is retrying and backing off
exponentially because it is not seeing replies from the server. If
indeed the tcpdump was taken on the client, then something funny is
going on, because that would mean that the networking layer is seeing
the packets, but the RPC layer is not receiving them.

Cheers,
Trond

Quoted 5 lines

--- Trond Myklebust <[email protected]>

Quoted 1 line · wrote:

m den 13.12.2004 Klokka 16:50 (-0800) skreiv

Ryan

Quoted 4 lines
Quoted 4 lines

Mak:

Quoted 3 lines

Hi.

I am currently experiencing a hanging problem

when

Quoted 4 lines
Quoted 4 lines

I

Quoted 1 line

try to either 'ls' or 'vi' on a successfully

mounted

Quoted 1 line

directory. I am using redhat 8.0, kernel

version

Quoted 1 line
Quoted 1 line
Quoted 1 line

2.4.20-28.8, nfs-utils version

nfs-utils-1.0.1-2.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

enclosed is a tcpdump which shows retries from

the

Quoted 1 line
Quoted 1 line
Quoted 1 line

client despite an immediate ACK from the

server.

Quoted 2 lines
Quoted 2 lines

Was that tcpdump taken on the server or the

client?

Quoted 1 line
Quoted 1 line
Quoted 11 lines
Quoted 7 lines
Quoted 6 lines

Cheers,
Trond

Signature · 1 line
Trond Myklebust <[email protected]>
Signature · 1 line
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#5 lore raw

m=E5 den 13.12.2004 Klokka 17:18 (-0800) skreiv Ryan Mak:

Quoted 6 lines

yes, i am absolutely sure that the tcpdump was not taken on the server...it was indeed taken on the client. does anyone know what possible reasons that these ACKs are not received by the RPC layer on the client side or know of a way that I could debug further? thanx.

There are several reasons why the RPC layer might reject those packets. For instance their UDP checksums may fail to verify.

In addition 2.4.20 is old enough that it may still have had timing problems in the transport layer.

I would start by turning on the RPC debugging:
Try
sysctl -w sunrpc.rpc_debug=3D3

(or "echo 3 >/proc/sys/sunrpc/rpc_debug" - which does the same thing).

Cheers,
Trond

--=20
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

author
#6 lore raw

thanx for your help.
what exactly should i look for since the RPC debug is logging tons of data?

what are the other possible debug settings besides '3' ??

--- Trond Myklebust <[email protected]>

Quoted 23 lines · wrote:

må den 13.12.2004 Klokka 17:18 (-0800) skreiv Ryan Mak:

Quoted 3 lines

yes, i am absolutely sure that the tcpdump was not taken on the server...it was indeed taken on the client. does anyone know what possible reasons

that

Quoted 1 line

these ACKs are not received by the RPC layer on

the

Quoted 2 lines

client side or know of a way that I could debug
further? thanx.

There are several reasons why the RPC layer might reject those packets.
For instance their UDP checksums may fail to verify.

In addition 2.4.20 is old enough that it may still have had timing
problems in the transport layer.

I would start by turning on the RPC debugging:
Try
sysctl -w sunrpc.rpc_debug=3

Quoted 12 lines

(or "echo 3 >/proc/sys/sunrpc/rpc_debug" - which does the same thing).

Cheers,
Trond

Signature · 1 line
Trond Myklebust <[email protected]>

-------------------------------------------------------

Quoted 10 lines

SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#7 lore raw

m=E5 den 13.12.2004 Klokka 17:41 (-0800) skreiv Ryan Mak:

Quoted 3 lines

thanx for your help.
what exactly should i look for since the RPC debug is logging tons of data?

The first thing to do is to look for "RPC: %4d received reply" and try to match the pid to the request pid. Also look for timeouts.

Quoted 2 lines

what are the other possible debug settings besides '3' ??

See the RPCDBG_* values in include/linux/sunrpc/debug.h: they define the bitmask of "dprintk()"s that can be turned on.

Cheers,
Trond
--=20
Trond Myklebust <[email protected]>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs