All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS client hangs after server reboot
@ 2013-04-09 15:51 Bram Vandoren
  2013-04-09 19:08 ` J. Bruce Fields
  0 siblings, 1 reply; 24+ messages in thread
From: Bram Vandoren @ 2013-04-09 15:51 UTC (permalink / raw)
  To: linux-nfs

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

Hello,
we have a FreeBSD 9.1 fileserver and several clients running kernel
3.8.4-102.fc17.x86_64. Everything works fine till we reboot the
server. A fraction (1/10) of the clients don't resume the NFS session
correctly. The server sends a NFS4ERR_STALE_STATEID. The client sends
a RENEW to the server but no SETCLIENTID. (this should be the correct
action from my very quick look at RFC 3530). After that the client
continues with a few READ call and the process starts again with the
NFS4ERR_STALE_STATEID response from the server. It generates a lot of
useless network traffic.

I enclosed a log of tshark and a kernel log with NFS debugging enabled
(one iteration).

Any suggestions how to solve this problem?

Thanks,
Bram.

[-- Attachment #2: tshark.log --]
[-- Type: application/octet-stream, Size: 7987 bytes --]

  0.000478 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15007744 Len:65536
  0.000495 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15990784 Len:65536
  0.000521 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15466496 Len:65536
  0.000536 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15859712 Len:65536
  0.000552 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15532032 Len:65536
  0.000568 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16056320 Len:65536
  0.000575  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=369 Ack=577 Win=29124 Len=0 TSval=644129068 TSecr=537868994
  0.000586 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15925248 Len:65536
  0.000604  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=369 Ack=921 Win=29121 Len=0 TSval=644129068 TSecr=537868994
  0.000630 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15073280 Len:65536
  0.000650 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15204352 Len:65536
  0.000668 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15138816 Len:65536
  0.000668  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=369 Ack=1265 Win=29124 Len=0 TSval=644129068 TSecr=537868994
  0.000680  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 12) READ Status: NFS4ERR_STALE_STATEID
  0.000684 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16252928 Len:65536
  0.000686  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 13) READ Status: NFS4ERR_STALE_STATEID
  0.000704 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=2125 Ack=481 Win=8485 Len=0 TSval=537868994 TSecr=644129068
  0.000730 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15663104 Len:65536
  0.000744 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16121856 Len:65536
  0.000758 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16449536 Len:65536
  0.002932 a.b.c.120 -> a.b.c.2  NFS 238 [TCP ACKed lost segment] [TCP Previous segment lost] V4 Call READ StateID:0x0104 Offset:14942208 Len:65536
  0.002950 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16515072 Len:65536
  0.002966  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=2841 Ack=7981 Win=29124 Len=0 TSval=644129070 TSecr=537868996
  0.002967 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16449536 Len:65536
  0.003007 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15532032 Len:65536
  0.003028 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15466496 Len:65536
  0.003042 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16121856 Len:65536
  0.003057 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15269888 Len:65536
  0.003078 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15859712 Len:65536
  0.003095 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15663104 Len:65536
  0.003114 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15138816 Len:65536
  0.003118  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=2841 Ack=8325 Win=29124 Len=0 TSval=644129070 TSecr=537868996
  0.003131  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=2841 Ack=8669 Win=29124 Len=0 TSval=644129071 TSecr=537868997
  0.003140 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:14876672 Len:65536
  0.003170 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16056320 Len:65536
  0.003188 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15925248 Len:65536
  0.003206 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15007744 Len:65536
  0.003224 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15597568 Len:65536
  0.003242 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:16252928 Len:65536
  0.003247  a.b.c.2 -> a.b.c.120 RPC 122 Continuation
  0.003263  a.b.c.2 -> a.b.c.120 RPC 122 Continuation
  0.003270 a.b.c.120 -> a.b.c.2  NFS 238 V4 Call READ StateID:0x0104 Offset:15204352 Len:65536
  0.003280  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=2953 Ack=9185 Win=29124 Len=0 TSval=644129071 TSecr=537868997
  0.003288  a.b.c.2 -> a.b.c.120 RPC 122 Continuation
  0.003300 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11077 Ack=3009 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003303  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 35) READ Status: NFS4ERR_STALE_STATEID
  0.003311  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=3065 Ack=9701 Win=29127 Len=0 TSval=644129071 TSecr=537868997
  0.003318  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 36) READ Status: NFS4ERR_STALE_STATEID
  0.003329 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11077 Ack=3121 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003333  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=3121 Ack=10217 Win=29121 Len=0 TSval=644129071 TSecr=537868997
  0.003370  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 32) READ Status: NFS4ERR_STALE_STATEID
  0.003425  a.b.c.2 -> a.b.c.120 TCP 66 nfs > 725 [ACK] Seq=3177 Ack=10733 Win=29124 Len=0 TSval=644129071 TSecr=537868997
  0.003447  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 37) READ Status: NFS4ERR_STALE_STATEID
  0.003464 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11077 Ack=3233 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003468  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 41) READ Status: NFS4ERR_STALE_STATEID
  0.003479  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 42) READ Status: NFS4ERR_STALE_STATEID
  0.003495 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11077 Ack=3345 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003500  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 39) READ Status: NFS4ERR_STALE_STATEID
  0.003506  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 50) READ Status: NFS4ERR_STALE_STATEID
  0.003508 a.b.c.120 -> a.b.c.2  NFS 182 V4 Call RENEW CID: 0x5e35
  0.003571 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=3457 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003618  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 45) READ Status: NFS4ERR_STALE_STATEID
  0.003657  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 53) READ Status: NFS4ERR_STALE_STATEID
  0.003679 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=3569 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003684  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 33) READ Status: NFS4ERR_STALE_STATEID
  0.003693  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 38) READ Status: NFS4ERR_STALE_STATEID
  0.003705 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=3681 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003708  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 40) READ Status: NFS4ERR_STALE_STATEID
  0.003716  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 47) READ Status: NFS4ERR_STALE_STATEID
  0.003726 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=3793 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003730  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 46) READ Status: NFS4ERR_STALE_STATEID
  0.003737  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 48) READ Status: NFS4ERR_STALE_STATEID
  0.003751 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=3905 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003754  a.b.c.2 -> a.b.c.120 NFS 122 V4 Reply (Call In 49) READ Status: NFS4ERR_STALE_STATEID
  0.003769  a.b.c.2 -> a.b.c.120 NFS 114 V4 Reply (Call In 71) RENEW
  0.003784 a.b.c.120 -> a.b.c.2  TCP 66 725 > nfs [ACK] Seq=11193 Ack=4009 Win=8485 Len=0 TSval=537868997 TSecr=644129071
  0.003804 a.b.c.120 -> a.b.c.2  NFS 182 V4 Call RENEW CID: 0x5e35
  0.004010  a.b.c.2 -> a.b.c.120 NFS 114 V4 Reply (Call In 88) RENEW
  0.004067 a.b.c.120 -> a.b.c.2  NFS 182 V4 Call RENEW CID: 0x5e35
  0.004217  a.b.c.2 -> a.b.c.120 NFS 114 V4 Reply (Call In 90) RENEW

[-- Attachment #3: kernel.log --]
[-- Type: application/octet-stream, Size: 2536 bytes --]

Apr  9 17:22:42  kernel: [539150.077428] NFS: nfs_readpage_result: 53237, (status -10023)
Apr  9 17:22:42  kernel: [539150.077430] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.077494] NFS: nfs_readpage_result: 53248, (status -10023)
Apr  9 17:22:42  kernel: [539150.077496] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.077506] NFS: nfs_readpage_result: 53246, (status -10023)
Apr  9 17:22:42  kernel: [539150.077508] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.077815] --> nfs_put_client({2})
Apr  9 17:22:42  kernel: [539150.077821] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077842] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077861] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077875] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077888] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077901] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077923] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.077945] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078020] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078035] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078059] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078112] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078134] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078164] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078177] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078189] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078207] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078256] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078260] NFS: nfs_readpage_result: 53238, (status -10023)
Apr  9 17:22:42  kernel: [539150.078263] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.078278] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078317] <-- nfs4_setup_sequence status=0
Apr  9 17:22:42  kernel: [539150.078337] NFS: nfs_readpage_result: 53240, (status -10023)
Apr  9 17:22:42  kernel: [539150.078339] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.078346] NFS: nfs_readpage_result: 53242, (status -10023)
Apr  9 17:22:42  kernel: [539150.078353] --> nfs4_read_done
Apr  9 17:22:42  kernel: [539150.078364] NFS: nfs_readpage_result: 53241, (status -10023)


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-08-28 13:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09 15:51 NFS client hangs after server reboot Bram Vandoren
2013-04-09 19:08 ` J. Bruce Fields
2013-04-10 19:33   ` Chuck Lever
2013-04-10 23:23     ` Rick Macklem
2013-04-11 23:15     ` Rick Macklem
2013-04-12  9:19       ` Bram Vandoren
2013-04-12 15:10         ` J. Bruce Fields
     [not found]         ` <CACQjR_CcKwHU8sMrmQ5YfgV5dbuiMLRRqBkDRQEVq2yjGEuzmg@mail.gmail.com>
2013-04-12 15:14           ` Chuck Lever
2013-05-28 12:31             ` Bram Vandoren
2013-05-28 19:23               ` Chuck Lever
2013-05-28 22:06                 ` Rick Macklem
2013-05-28 23:30               ` Rick Macklem
2013-05-29  1:04                 ` Chuck Lever
2013-05-29  1:13                   ` Chuck Lever
2013-05-29 12:49                     ` Rick Macklem
2013-05-30 11:09                       ` Bram Vandoren
2013-05-30  0:24                     ` Rick Macklem
2013-05-30  0:31                     ` Rick Macklem
2013-05-30 11:20                       ` Bram Vandoren
2013-05-30 11:04                   ` Bram Vandoren
2013-05-30 11:55                     ` Rick Macklem
2013-05-31 16:35                       ` Bram Vandoren
2013-05-31 23:24                         ` Rick Macklem
2013-08-28 13:39                           ` William Dauchy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.