Skip to contentSkip to conversation

rpc.statd

NFS Shiney James 3 participants 5 messages Nov 19, 2007 – Nov 20, 2007 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I would greatly appreciate if someone could help me regarding the following..

Quoted 1 line

From the manuals it is understood that rpc.statd can configured to

listen on a particular port for incoming request and a port for outgoing request. This can be done by setting STATD_PORT and STATD_OUTGOING_PORT. But even after setting these I find that there is a port opened other than the above.

netstat -anop | grep rpc.statd output is pasted below.

[root@fs01 root]# netstat -anop | grep rpc.statd
tcp 0 0 0.0.0.0:48000 0.0.0.0:*
LISTEN 4334/rpc.statd off (0.00/0/0)
udp 0 0 0.0.0.0:48000 0.0.0.0:*

         4334/rpc.statd      off (0.00/0/0)
udp        0      0 0.0.0.0:694             0.0.0.0:*
         4334/rpc.statd      off (0.00/0/0)

unix 2 [ ] DGRAM 5378 4334/rpc.statd

I have set STATD_PORT as 48000 as is seen. But I am not sure why port 694 is also being used?
Any idea?

Thanks
Shiney

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs

A message that is not in the archive (sent off-list or not yet received): 1b378070711191506o14ce99feo37c2a75bfdc4e47e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#2 lore raw
Quoted 23 lines · On Mon, 19 Nov 2007 15:06:44 -0800 "Shiney James" <[email protected]> wrote:

Hi,

I would greatly appreciate if someone could help me regarding the following..

Quoted 1 line

From the manuals it is understood that rpc.statd can configured to

listen on a particular port for incoming request and a port for outgoing request. This can be done by setting STATD_PORT and STATD_OUTGOING_PORT. But even after setting these I find that there is a port opened other than the above.

netstat -anop | grep rpc.statd output is pasted below.

[root@fs01 root]# netstat -anop | grep rpc.statd
tcp 0 0 0.0.0.0:48000 0.0.0.0:*
LISTEN 4334/rpc.statd off (0.00/0/0)
udp 0 0 0.0.0.0:48000 0.0.0.0:*

         4334/rpc.statd      off (0.00/0/0)
udp        0      0 0.0.0.0:694             0.0.0.0:*
         4334/rpc.statd      off (0.00/0/0)

unix 2 [ ] DGRAM 5378
4334/rpc.statd

Quoted 7 lines

I have set STATD_PORT as 48000 as is seen. But I am not sure why port 694 is also being used?
Any idea?

Thanks
Shiney

It's for statd to make downcalls to the local lockd. The kernel requires a privileged port for that...

Signature · 13 lines
Jeff Layton <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued.
Please subscribe to [email protected] instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs

A message that is not in the archive (sent off-list or not yet received): 20071119202308.3f2430ec-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org

#4 lore raw

Thanks a lot for the information. I would like to know if there is a way to configure this port?
Can a port already specified in /etc/services be used for the purpose?

Quoted 35 lines · Jeff Layton
Quoted 23 lines · On Mon, 19 Nov 2007 15:06:44 -0800 "Shiney James" <[email protected]> wrote:

Hi,

I would greatly appreciate if someone could help me regarding the following..

Quoted 1 line

From the manuals it is understood that rpc.statd can configured to

listen on a particular port for incoming request and a port for outgoing request. This can be done by setting STATD_PORT and STATD_OUTGOING_PORT. But even after setting these I find that there is a port opened other than the above.

netstat -anop | grep rpc.statd output is pasted below.

[root@fs01 root]# netstat -anop | grep rpc.statd
tcp 0 0 0.0.0.0:48000 0.0.0.0:*
LISTEN 4334/rpc.statd off (0.00/0/0)
udp 0 0 0.0.0.0:48000 0.0.0.0:*

         4334/rpc.statd      off (0.00/0/0)
udp        0      0 0.0.0.0:694             0.0.0.0:*
         4334/rpc.statd      off (0.00/0/0)

unix 2 [ ] DGRAM 5378
4334/rpc.statd

Quoted 7 lines

I have set STATD_PORT as 48000 as is seen. But I am not sure why port 694 is also being used?
Any idea?

Thanks
Shiney

Quoted 6 lines

It's for statd to make downcalls to the local lockd. The kernel requires a privileged port for that...

--
Jeff Layton <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs

A message that is not in the archive (sent off-list or not yet received): 1b378070711191806v55fb915fnb2949a8aca03c52-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw
Quoted 4 lines · On Mon, 19 Nov 2007 18:06:53 -0800 "Shiney James" <[email protected]> wrote:

Thanks a lot for the information. I would like to know if there is a way to configure this port?
Can a port already specified in /etc/services be used for the purpose?

I don't think so. I think it just uses bindresvport to find the first available port that's not designated for a service.

Signature · 13 lines
Jeff Layton <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued.
Please subscribe to [email protected] instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs
#7 lore raw
Quoted 10 lines · On Tuesday November 20, [email protected] wrote:
Quoted 4 lines · On Mon, 19 Nov 2007 18:06:53 -0800 "Shiney James" <[email protected]> wrote:

Thanks a lot for the information. I would like to know if there is a way to configure this port?
Can a port already specified in /etc/services be used for the purpose?

I don't think so. I think it just uses bindresvport to find the first available port that's not designated for a service.

I think "--outgoing-port" will do what you want.
I seem to recall that it uses the same port for all outgoing messages.

We really should fix the "statd" man page:

-o, --outgoing-port port
specify a port for rpc.statd to send outgoing status requests from. By default, rpc.statd will ask portmap(8) to assign it a port number. As of this writing, there is not a standard port number that portmap always or usually assigns. Specifying a port may be useful when implement‐ ing a firewall.

portmap(8) has no part at all in assigning port numbers...

NeilBrown

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs