linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFS Server prevents access to files on different scenarios (lock problem?)
@ 2016-11-17 20:32 Ulrich Gemkow
  2016-11-17 21:04 ` J. Bruce Fields
  0 siblings, 1 reply; 7+ messages in thread
From: Ulrich Gemkow @ 2016-11-17 20:32 UTC (permalink / raw)
  To: Linux NFS Mailing List

Hello,

we use Linux NFS clients with a Linux NFS server in an configuration
where NFS mounts are done on client boot _and_ on user login in a
session; umounts are done on users logout from the session.

We see occasionally several different problems which all may have
the same root cause:

- When a client accesses a file which was accessed before
  from the same client in a previous session the server
  prevents access to the file until a timeout happens.

  The timeout has a duration of about 1-3 minutes.
  In this case the "blocked" file can not even be deleted
  on the server.

  --> What causes this timeout? I found nothing in the
      server code which has such a timeout How can I debug what
      the server is waiting for or why he is blocking access
      to the file?

- Sometimes client processes hang in the middle of a session
  on some file. After a timeout the file is accessible again.
  The timeout can take 1 upto several minutes. The file is
  also blocked on the server, it cannot be accessed.

I think all theses problemes are caused by something like
dangling locks or another invalid state on the server.

The clients show no network error like dropped packets
or something like this.

--> How can I debug such hangs?

We use Linux NFS server and client from vanilla kernel 4.4.31
with sec=sys.

Can anyone help? Does "a bell ring"?

Thank you and best regards

-Ulrich

-- 
| Ulrich Gemkow
| University of Stuttgart
| Institute of Communication Networks and Computer Engineering (IKR)

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

end of thread, other threads:[~2016-11-20 11:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17 20:32 NFS Server prevents access to files on different scenarios (lock problem?) Ulrich Gemkow
2016-11-17 21:04 ` J. Bruce Fields
2016-11-17 21:34   ` Ulrich Gemkow
2016-11-18 16:58     ` J. Bruce Fields
2016-11-18 18:55       ` Ulrich Gemkow
2016-11-18 20:47         ` J. Bruce Fields
2016-11-20 11:33           ` Ulrich Gemkow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).