2006-11-18 10:42:56

by Ray

[permalink] [raw]
Subject: Re: nfs-utils-1.0.10/linux 2.6.18 bug? unable to start nfsd; nfssvc "Address already in use"

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

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


2006-11-18 15:08:47

by Kostas Georgiou

[permalink] [raw]
Subject: Re: nfs-utils-1.0.10/linux 2.6.18 bug? unable to start nfsd; nfssvc "Address already in use"

On Sat, Nov 18, 2006 at 10:42:29AM +0000, Ray wrote:

> 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

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