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 18, 2006

Subsystems (2)
lore
Share & tools
lore

Ray

author
#0 lore raw
Quoted 1 line
Quoted 1 line

issue is, using 2.6.18.2 kernel and 1.0.10 nfs

utils

Quoted 1 line
Quoted 1 line

but i am periodically having problems starting nfsd

--

Quoted 2 lines
Quoted 2 lines

it drops out after sysloging that "nfssvc "Address already in use" when there are actually no other

nfsd

Quoted 3 lines
Quoted 1 line

instances running

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

hi,
had the same problem again, and running 'netstat -anptu | grep :2049' as root tells me that the statd had stolen that port

udp 0 0 0.0.0.0:2049 0.0.0.0:*

                         954/rpc.statd

i think this is to do with the manner in which FC2 starts the nfs (and related services) -- the 'nfs' service starts nfsd/quotad/mountd whilst there is a seperate 'nfslock' service which starts lockd and it is this latter service which is started first.

i'll take a look at the scripts and re-order them. many thanks for the pointers
ray

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 · Ray

had the same problem again, and running 'netstat -anptu | grep :2049' as root tells me that the statd had stolen that port

udp 0 0 0.0.0.0:2049 0.0.0.0:*

                         954/rpc.statd
Quoted 8 lines

i think this is to do with the manner in which FC2 starts the nfs (and related services) -- the 'nfs' service starts nfsd/quotad/mountd whilst there is a seperate 'nfslock' service which starts lockd and it is this latter service which is started first.

i'll take a look at the scripts and re-order them. many thanks for the pointers

In recent versions of Fedora and RHEL you can use something like this in /etc/sysconfig/nfs to binf to specific ports
RQUOTAD_PORT=10866
STATD_PORT=10867
MOUNTD_PORT=10868
LOCKD_TCPPORT=10869
LOCKD_UDPPORT=10869
STATD_OUTGOING_PORT=10870
and in /etc/modprobe.conf
options lockd nlm_tcpport=10865 nlm_udpport=10865

It's mostly there for firewalls but it will solve your problems.

Cheers,
Kostas Georgiou

-------------------------------------------------------------------------
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