Unix Technical Forum

How to set port for nfslock/nlockmgr/rpc.lockd?

This is a discussion on How to set port for nfslock/nlockmgr/rpc.lockd? within the Debian Linux support forums, part of the Debian Linux category; --> Hi all We are using an amd64 linux box as an NFS server with a firewall. We have opened ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 07:51 AM
Michael Hopkins
 
Posts: n/a
Default How to set port for nfslock/nlockmgr/rpc.lockd?



Hi all

We are using an amd64 linux box as an NFS server with a firewall. We have
opened ports 111 for portmapper and 2049 for NFS.

Our first problem was to let rpc.mountd operate but worked out how to do
that by editing /etc/defaults/nfs-kernel-server to add

RPCMOUNTDOPTS="-p 32478"

So that it always starts on that port.

Ouput of rpcinfo -p is now:

root@Athlon:~# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 33621 nlockmgr
100021 3 tcp 33621 nlockmgr
100021 4 tcp 33621 nlockmgr
100005 1 udp 32478 mountd
100005 1 tcp 32478 mountd
100005 2 udp 32478 mountd
100005 2 tcp 32478 mountd
100005 3 udp 32478 mountd
100005 3 tcp 32478 mountd
100024 1 udp 828 status
100024 1 tcp 831 status


Everything is working except occasional problems with file locking. I
realised that this is because nfslock/nlockmgr/rpc.lockd is still assigning
random ports at each startup.

The question is:

How do we fix the other ports - particularly nlockmgr?

Otherwise we have to change firewall setup on each reboot.

Have looked in /etc/defaults/ & /etc/init.d/ but can't find anything there
or in man pages, documentation or on google.

Anyone have any ideas?

TIA

Michael


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

_/ _/ _/_/_/ Hopkins Research Ltd
_/ _/ _/ _/
_/_/_/_/ _/_/_/ http://www.hopkins-research.com/
_/ _/ _/ _/
_/ _/ _/ _/ 'touch the future'

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 07:51 AM
Ed Hurst
 
Posts: n/a
Default Re: How to set port for nfslock/nlockmgr/rpc.lockd?

Michael Hopkins wrote:

> Everything is working except occasional problems with file locking. I
> realised that this is because nfslock/nlockmgr/rpc.lockd is still assigning
> random ports at each startup.
>
> The question is:
>
> How do we fix the other ports - particularly nlockmgr?
>
> Otherwise we have to change firewall setup on each reboot.
>
> Have looked in /etc/defaults/ & /etc/init.d/ but can't find anything there
> or in man pages, documentation or on google.
>
> Anyone have any ideas?


I have never done anything with nfs, but I wonder if these two links
apply to your situation:

http://www.crazysquirrel.com/computing/debian/nfs.jspx
http://www.mailarchives.org/list/deb...msg/2002/40052

--
Ed Hurst
------------
Return address is a spamtrap.
Try jehurst at gmail dot com.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com