Subject: | |
From: | |
Reply To: | |
Date: | Fri, 19 Sep 2008 09:55:29 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Dr Andrew C Aitchison wrote:
> On Thu, 18 Sep 2008, Eve V. E. Kovacs wrote:
>
>> Has anyone tried to fix the ports that nfs uses for its various daemons?
>> Supposedly, by setting the environmental variables in/etc/sysconfig/nfs,
>> one can fix the ports on which the daemons listen.
>>
>> All of them work except for LOCKD_UDPPORT
>> No matter what port I set, when the system (SL5.2) boots, it just
>> chooses some random port for udp lockd.
>> Has anyone come across this? Any idea why it doesn't work?
>
> I came across this whilst trying to understand whilst lockd kept
> hanging (that turned out to be buzilla #453094 and #459083), although
> for me LOCKD_TCPPORT is not being honoured either.
>
> As I understand it
> rpcinfo -p | grep nlockmgr
> and
> /sbin/sysctl fs.nfs.nlm_tcpport fs.nfs.nlm_udpport
> should be two ways of reporting the ports that the kernel
> nfslock daemon uses, but the report different values for me:
> # /sbin/sysctl fs.nfs.nlm_tcpport fs.nfs.nlm_udpport
> fs.nfs.nlm_tcpport = 32803
> fs.nfs.nlm_udpport = 32769
> # rpcinfo -p |grep lock
> 100021 1 udp 37230 nlockmgr
> 100021 3 udp 37230 nlockmgr
> 100021 4 udp 37230 nlockmgr
> 100021 1 tcp 40626 nlockmgr
> 100021 3 tcp 40626 nlockmgr
> 100021 4 tcp 40626 nlockmgr
>
>
> Not sure whether this is a help or a red herring, but my copy of
> /etc/sysconfig/nfs includes this comment from a colleague:
>
> # Older kernels (2.6.18 is OK) don't seem to obey the above,
> # echo "options lockd nlm_udpport=6667 nlm_tcpport=6667" >>
> /etc/modprobe.conf
> # works on those kernels
>
> Maybe this feature was new in 2.6.18 with all the patches to the
> SL5.2 nfs code it has been lost ?
On one server that I set up (when I didn't know about /etc/sysconfig/nfs...)
I did indeed configure this by including in modeprobe.conf:-
options lockd nlm_udpport=4010 nlm_tcpport=4010
and /usr/sbin/rpcinfo -p |grep lock shows:-
100021 1 udp 4010 nlockmgr
100021 3 udp 4010 nlockmgr
100021 4 udp 4010 nlockmgr
100021 1 tcp 4010 nlockmgr
100021 3 tcp 4010 nlockmgr
100021 4 tcp 4010 nlockmgr
so this definitely works.
--
Mark Whidby
Infrastructure Coordinator (Unix) - Physics/Chemistry/SEAES Team
Information Systems
Faculty of Engineering and Physical Sciences
|
|
|