Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28662 - NFS exporting stalls/hangs for a minute or so.
Summary: NFS exporting stalls/hangs for a minute or so.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 28669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-13 19:08 UTC by Roger
Modified: 2003-09-19 03:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2003-09-13 19:08:37 UTC
NFS exporting stalls/hangs for a minute or longer.  I do not believe explorting
NFS shares should take this long. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Can somebody confirm this?  (using gentoo-gaming kernel 2.4.20 -- might a kernel
issue?)
Comment 1 SpanKY gentoo-dev 2003-09-13 22:33:04 UTC
*** Bug 28669 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-09-13 22:36:44 UTC
you forgot `emerge info`
Comment 3 SpanKY gentoo-dev 2003-09-13 22:45:53 UTC
review your /etc/init.d/nfs script
make sure it has this fix:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/net-fs/nfs-utils/files/nfs-2.diff?r1=1.1&r2=1.2
Comment 4 clemenswaechter 2003-09-14 07:50:34 UTC
I had that problem, too but somehow it solved itself today. 
First, nfs worked like a charm. 
Then, since some day (about 6 weeks ago or so) exportfs took ages (ages=about a 
minute, don't know) but it didn't fail. But since it worked after starting nfs, I didn't feel 
like trying to fix it. 
Yesterday exportfs took ages and failed. I tried upgrading to from a vanilla 2.4.20 
kernel to a vanilla 2.4.22 kernel but that didn't help  immediately. I also re-emerged 
nfs-utils and I tried removing some entries from /etc/exports and I deleted the 
contents of /var/lib/nfs/xtab. 
The problem was that starting portmap, rpc.mountd, rpc.statd and rpc.nfsd started 
immediately and without errors, but exportfs -r -v took a long time, but it didn't fail or it 
failed silently. But I either got a rpc timeout or permission denied.  
 
Today it works like a charm again. 
 
Maybe you should try the above, too. But nfs seems a little fragile to me. Also I can't 
tell what broke/fixed it. Good luck. ;-) 
 
Hope this could help somehow. 
Comment 5 Roger 2003-09-15 08:09:16 UTC
yup. verified that i am running version 1.2, 2003/07/26 09:32:16

lol @ clemens. ;-)

about the only thing I can see that you did that would have such an impact is upgrading to kernel 2.4.22 (as nfs is contained in the kernel...and most probs' that i've seen stem from the kernel modules of nfs).

well. i *should* installing vanilla-2.4.22 sometime within a day or two. this old gentoo-gaming-2.4.20 kernel is getting quite old. ;-)
Comment 6 SpanKY gentoo-dev 2003-09-19 02:46:24 UTC
roger: did you just totally not read my comment asking about whether you had the version i gave you the link to ?
Comment 7 Roger 2003-09-19 03:34:31 UTC
Yes. I fully read your comment and I also examined the patch from the url you posted (line by line, letter by letter).

see my comment verifying that i have the patch applied to this system:
"Additional Comment #5 From roger  2003-09-15 08:09 UTC "

I do not see what was relavent of the patch besides the fact that it also lists the time-outs (sleep 30) values.

The hang is not with the actual "exporting" but with the "sleep 30".  I have lowered the value to "sleep 2".  reading through the script and it looks like it's a hack to avert an abnormal situation.




anyways, the problem is solved.