Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Baurzhan Ismagulov <ibr@radix50.net>
Cc: nfs@lists.sourceforge.net
Subject: Re: flock LOCK_EX hangs
Date: Wed, 16 May 2007 13:30:08 -0400	[thread overview]
Message-ID: <20070516173008.GD9895@fieldses.org> (raw)
In-Reply-To: <20070516131253.GC19167@radix50.net>

On Wed, May 16, 2007 at 03:12:53PM +0200, Baurzhan Ismagulov wrote:
> I'm experiencing problems with the kernel NFS server. The client hangs
> on the flock call. This is Debian etch, Linux 2.6.16-1-686-smp, the
> server and the client is the same machine. The directory is exported
> with rw, no mount options. The lockd kernel thread is present, rpcinfo
> -p reports nlockmgr registered, the firewall passes all the traffic
> through.
> 
> I've googled and searched the list archive, the postings are usually
> quite old (only two were from 2006 and referred to Linux 2.6), and I
> couldn't see how I could further analyze the problem. I've also tried
> mounting with nolock, but this apparently makes flock / fcntl to fail,
> since the tools I use (automake and debootstrap, although I checked this
> only with the latter) exited with an error code, and I rely upon it.

Might be fun to watch the network traffic as this is happening.  I'd
probably do something like

	wireshark -Slk -ilo

then try to get a lock, and try to understand what's happening on the
"network": is the client sending requests that the server doesn't
answer?  Or are there errors coming back?  Etc.

Or you could run

	tcpdump -s0 -ilo -wtmp.pcap

and mail a copy of tmp.pcap and somebody could take a look.

There's also been a lot fixed since 2.6.16, so it might be worth trying
something newer.

--b.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2007-05-16 17:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 13:12 flock LOCK_EX hangs Baurzhan Ismagulov
2007-05-16 17:30 ` J. Bruce Fields [this message]
2007-05-16 22:09   ` Baurzhan Ismagulov
2007-05-31 23:15   ` Baurzhan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070516173008.GD9895@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=ibr@radix50.net \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox