Red Hat Bugzilla – Bug 57891
nfs lockd blocking: ext3 is the problem?
Last modified: 2007-04-18 12:38:51 EDT
Description of Problem:
file locking is blocking (hanging) on my nfs server.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. exportfs client
2. mount host..
3. run lock_test (see attachment: it hangs)
locking a file on an nfs mounted file system hangs
it should lock and then unlock
the host filesystem is ext3 (converted from an ext2 original) -- perhaps this is
the problem? my config used to work under rh 6.2 no problem. I'm also
using NIS but I've replicated with this turned off, so it doesn't appear to be
related to that. I've tried lots of variations for the exports file and the options
in the fstab -- nothing seems to make a difference except of course
specifying nolock in the fstab.
here is my exports file on server neo:
and df output:
/dev/hda5 14555392 8129124 5686880 59% /usr
/dev/hdb1 26312572 12107104 12868864 49% /neo2
and mount output:
/dev/hda5 on /usr type ext3 (rw)
/dev/hdb1 on /neo2 type ext3 (rw)
here is my client fstab:
neo:/usr /mnt/neo/usr nfs hard,intr,rw
neo:/neo2 /mnt/neo/neo2 nfs hard,intr,rw
locking fails on files within both mountpoints.
I'm attaching output of rpcinfo -p, nfsstat, and a lock_test.c program to test,
which I obtained from Havoc Pennington's post on the gnome.org archive mail
list, which is concerning this very same problem that I'm having, but
unfortunately does not provide any fixes:
kernel info for the host (and clients are the same):
74 neo:.../updates/7.2# uname -av
Linux neo 2.4.9-7smp #1 SMP Thu Oct 18 13:34:30 EDT 2001 i686 unknown
Created attachment 41511 [details]
C file that when compiled demonstrates blocking of locking
Created attachment 41512 [details]
output of rpcinfo, nfsstat on host(neo) client(grey)
We believe this is fixed in the latest errata kernal. Can you try the 2.4.9-13
kernel and see if this fixes the problem?
Yep, kernel 2.4.9-13 fixes the problem -- thanks!