Skip to contentSkip to conversation

nfs-utils-1.0.10/linux 2.6.18 bug? unable to start nfsd; nfssvc "Address already in use"

DISCUSSION Ray 2 participants 2 messages Nov 16, 2006 – Nov 17, 2006

Subsystems (2)
lore
Share & tools
lore

Ray

author
#0 lore raw

hi NFS developers

issue is, using 2.6.18.2 kernel and 1.0.10 nfs utils but i am periodically having problems starting nfsd -- it drops out after sysloging that "nfssvc "Address already in use" when there are actually no other nfsd instances running

i strace'd the nfsd process and noticed these interesting lines:

  1929  open("/proc/fs/nfsd/threads",
O_WRONLY|O_LARGEFILE) = 4
  1929  write(4, "8\n", 2)                = -1

EADDRINUSE (Address already in use)

it is this that appears to cause the nfsd to syslog. can you tell me if this is a bug in the kernel/nfsutils? i see that the last changelog entry metnions about

'rpc.nfsd N' won't work to change the number of threads after nfsd has been started

the only way i could get nfsd to start was to bounce the box; stopping ALL portmap etc and unloading/reloading the kernel nfs modules didnt help

attached is the strace output; the nfs-utils was built without gss or nfsv4; the kernel only has nvfs2 and 3 enabled

thanks in advnace
-ray

ps -- appologies to NeilB; i already sent him this email already before i saw this dev list email

Send instant messages to your online friends http://uk.messenger.yahoo.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 7 lines · On Thursday November 16, [email protected] wrote:

hi NFS developers

issue is, using 2.6.18.2 kernel and 1.0.10 nfs utils but i am periodically having problems starting nfsd -- it drops out after sysloging that "nfssvc "Address already in use" when there are actually no other nfsd instances running

Have you checked to see if port 2049 is in use?

netstat -na | grep :2049

Most likely something else is using the port. lsof might help you find which process is doing it.

NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs