[CentOS] statd random port - sysconfig/nfs not taking effect

Thu Sep 2 01:58:21 UTC 2010
Rob Kampen <rkampen at kampensonline.com>

Carlos S wrote:
> I have changed /etc/sysconfig/nfs to specify port numbers for NFS
> daemons. Somehow statd is still starting up at random port number.
> Other damons are starting at properly at specified port numbers Any
> clues on what might be wrong? Any other location/setting that takes
> precedence over sysconfig/nfs ? It's CentOS 5.5 64bit with nfs-utils
> 1.0.9-44.el5.
>
> --
> Thanks,
> CS
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   
I use this on all my servers:
<snip>
# Port rpc.mountd should listen on.
MOUNTD_PORT=4002
#
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=""
# Port rpc.statd should listen on.
STATD_PORT=4000
# Outgoing port statd should used. The default is port
# is random
#STATD_OUTGOING_PORT=4000
<snip>
And this works on 32 and 64 bit Centos 5.x
Don't forget to open up iptables.
HTH
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rkampen.vcf
Type: text/x-vcard
Size: 196 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20100901/05ff006b/attachment-0005.vcf>