All of lore.kernel.org
 help / color / mirror / Atom feed
* rpcbind -h
@ 2011-11-06 15:58 Jim Rees
  2011-11-06 17:15 ` Trond Myklebust
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jim Rees @ 2011-11-06 15:58 UTC (permalink / raw)
  To: linux-nfs

Is there some good reason why the rpcbind '-h' option (bind to given
address) applies only to the udp listening socket and not to the tcp socket?

And is there any good reason why an nfs3 client not providing any services
would need to run rpcbind?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-06 15:58 rpcbind -h Jim Rees
@ 2011-11-06 17:15 ` Trond Myklebust
  2011-11-06 21:19   ` Jim Rees
  2011-11-07 14:44 ` Chuck Lever
  2011-11-07 16:23 ` Steve Dickson
  2 siblings, 1 reply; 9+ messages in thread
From: Trond Myklebust @ 2011-11-06 17:15 UTC (permalink / raw)
  To: Jim Rees; +Cc: linux-nfs

On Sun, 2011-11-06 at 10:58 -0500, Jim Rees wrote: 
> Is there some good reason why the rpcbind '-h' option (bind to given
> address) applies only to the udp listening socket and not to the tcp socket?
> 
> And is there any good reason why an nfs3 client not providing any services
> would need to run rpcbind?

Yes: lockd and statd...

Trond
-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-06 17:15 ` Trond Myklebust
@ 2011-11-06 21:19   ` Jim Rees
  0 siblings, 0 replies; 9+ messages in thread
From: Jim Rees @ 2011-11-06 21:19 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs

Trond Myklebust wrote:

  On Sun, 2011-11-06 at 10:58 -0500, Jim Rees wrote: 
  > Is there some good reason why the rpcbind '-h' option (bind to given
  > address) applies only to the udp listening socket and not to the tcp socket?
  > 
  > And is there any good reason why an nfs3 client not providing any services
  > would need to run rpcbind?
  
  Yes: lockd and statd...

Oh yeah, I forgot about those v3 relics.  How about if all my mounts are
nolock?  And what about the '-h' option?  It almost looks like a mistake,
but it's documented to work that way.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-06 15:58 rpcbind -h Jim Rees
  2011-11-06 17:15 ` Trond Myklebust
@ 2011-11-07 14:44 ` Chuck Lever
  2011-11-07 17:21   ` Jim Rees
  2011-11-07 16:23 ` Steve Dickson
  2 siblings, 1 reply; 9+ messages in thread
From: Chuck Lever @ 2011-11-07 14:44 UTC (permalink / raw)
  To: Jim Rees; +Cc: linux-nfs


On Nov 6, 2011, at 10:58 AM, Jim Rees wrote:

> Is there some good reason why the rpcbind '-h' option (bind to given
> address) applies only to the udp listening socket and not to the tcp socket?

Yes.  See the mail archives.  I believe we've discussed this thoroughly within the past six months to a year.  If there's any bug here, it's that "-h" is not well documented.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-06 15:58 rpcbind -h Jim Rees
  2011-11-06 17:15 ` Trond Myklebust
  2011-11-07 14:44 ` Chuck Lever
@ 2011-11-07 16:23 ` Steve Dickson
  2011-11-07 16:29   ` Chuck Lever
  2 siblings, 1 reply; 9+ messages in thread
From: Steve Dickson @ 2011-11-07 16:23 UTC (permalink / raw)
  To: Jim Rees; +Cc: linux-nfs



On 11/06/2011 10:58 AM, Jim Rees wrote:
> Is there some good reason why the rpcbind '-h' option (bind to given
> address) applies only to the udp listening socket and not to the tcp socket?
No... sounds like a bug to me...

steved.
> 
> And is there any good reason why an nfs3 client not providing any services
> would need to run rpcbind?
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-07 16:23 ` Steve Dickson
@ 2011-11-07 16:29   ` Chuck Lever
  0 siblings, 0 replies; 9+ messages in thread
From: Chuck Lever @ 2011-11-07 16:29 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Jim Rees, linux-nfs


On Nov 7, 2011, at 11:23 AM, Steve Dickson wrote:

> 
> 
> On 11/06/2011 10:58 AM, Jim Rees wrote:
>> Is there some good reason why the rpcbind '-h' option (bind to given
>> address) applies only to the udp listening socket and not to the tcp socket?
> No... sounds like a bug to me...

Behavior is described right in the man page.  So this seems to be on purpose.

     -h      Specify specific IP addresses to bind to for UDP requests.  This option
             may be specified multiple times and is typically necessary when running
             on a multi-homed host.  If no -h option is specified, rpcbind will bind
             to INADDR_ANY, which could lead to problems on a multi-homed host due to
             rpcbind returning a UDP packet from a different IP address than it was
             sent to.  Note that when specifying IP addresses with -h, rpcbind will
             automatically add 127.0.0.1 and if IPv6 is enabled, ::1 to the list.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-07 14:44 ` Chuck Lever
@ 2011-11-07 17:21   ` Jim Rees
  2011-11-07 18:01     ` Chuck Lever
  2011-11-08  8:01     ` Max Matveev
  0 siblings, 2 replies; 9+ messages in thread
From: Jim Rees @ 2011-11-07 17:21 UTC (permalink / raw)
  To: Chuck Lever; +Cc: linux-nfs

Chuck Lever wrote:

  On Nov 6, 2011, at 10:58 AM, Jim Rees wrote:
  
  > Is there some good reason why the rpcbind '-h' option (bind to given
  > address) applies only to the udp listening socket and not to the tcp socket?
  
  Yes.  See the mail archives.  I believe we've discussed this thoroughly
  within the past six months to a year.  If there's any bug here, it's that
  "-h" is not well documented.

It's documented well enough but I'm still in the dark about the reason.  I
don't recall the discussion and can't find it in the archives.  The search
box on spinics isn't working for me, it returns results from the entire web,
not just the list archive.

As I said before, I was hoping for the equivalent of "portmap -l".  I was
ready to code up a patch of some kind but now have a workaround (mount with
nolock and don't run rpcbind at all).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-07 17:21   ` Jim Rees
@ 2011-11-07 18:01     ` Chuck Lever
  2011-11-08  8:01     ` Max Matveev
  1 sibling, 0 replies; 9+ messages in thread
From: Chuck Lever @ 2011-11-07 18:01 UTC (permalink / raw)
  To: Jim Rees; +Cc: linux-nfs


On Nov 7, 2011, at 12:21 PM, Jim Rees wrote:

> Chuck Lever wrote:
> 
>  On Nov 6, 2011, at 10:58 AM, Jim Rees wrote:
> 
>> Is there some good reason why the rpcbind '-h' option (bind to given
>> address) applies only to the udp listening socket and not to the tcp socket?
> 
>  Yes.  See the mail archives.  I believe we've discussed this thoroughly
>  within the past six months to a year.  If there's any bug here, it's that
>  "-h" is not well documented.
> 
> It's documented well enough but I'm still in the dark about the reason.  I
> don't recall the discussion and can't find it in the archives.  The search
> box on spinics isn't working for me, it returns results from the entire web,
> not just the list archive.
> 
> As I said before, I was hoping for the equivalent of "portmap -l".  I was
> ready to code up a patch of some kind but now have a workaround (mount with
> nolock and don't run rpcbind at all).

I wouldn't object to having a "local only" option that turns off the AF_INET[6] listener and just listens on the AF_LOCAL socket, but that may be problematic until we have a complete transition away from glibc RPC, which still uses AF_INET loopback extensively.

Glad you found a work-around.

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rpcbind -h
  2011-11-07 17:21   ` Jim Rees
  2011-11-07 18:01     ` Chuck Lever
@ 2011-11-08  8:01     ` Max Matveev
  1 sibling, 0 replies; 9+ messages in thread
From: Max Matveev @ 2011-11-08  8:01 UTC (permalink / raw)
  To: Jim Rees; +Cc: Chuck Lever, linux-nfs

On Mon, 7 Nov 2011 12:21:31 -0500, Jim Rees wrote:

 rees> Chuck Lever wrote:
 rees>   On Nov 6, 2011, at 10:58 AM, Jim Rees wrote:
  
 >> Is there some good reason why the rpcbind '-h' option (bind to given
 >> address) applies only to the udp listening socket and not to the tcp socket?
  
 rees>   Yes.  See the mail archives.  I believe we've discussed this
 rees>   thoroughly within the past six months to a year.  If there's
 rees>   any bug here, it's that "-h" is not well documented.

 rees> It's documented well enough but I'm still in the dark about the
 rees> reason.  I

Chuck's quote from the manpage reminded me - -h was used to work
around the address selection: if server has more then one address the
reply may use any of them. Some clients don't like it.

This issue should go away after

commit 74ef3df0236c55185225c62fba34953f2582da72
Author: Olaf Kirch <okir@suse.de>
Date:   Wed Mar 2 10:09:24 2011 -0500

was added to libtirpc.

 rees> As I said before, I was hoping for the equivalent of "portmap
 rees> -l".  I was ready to code up a patch of some kind but now have
 rees> a workaround (mount with nolock and don't run rpcbind at all).

iptables is another option.

max


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-08  8:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-06 15:58 rpcbind -h Jim Rees
2011-11-06 17:15 ` Trond Myklebust
2011-11-06 21:19   ` Jim Rees
2011-11-07 14:44 ` Chuck Lever
2011-11-07 17:21   ` Jim Rees
2011-11-07 18:01     ` Chuck Lever
2011-11-08  8:01     ` Max Matveev
2011-11-07 16:23 ` Steve Dickson
2011-11-07 16:29   ` Chuck Lever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.