public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Chuck Lever <chuck.lever@oracle.com>,
	linux-nfs@vger.kernel.org, Patrick McHardy <kaber@trash.net>
Subject: Re: PATCH:  Support binding to a local IPv4 address when mounting a server.
Date: Sun, 22 Feb 2009 15:17:56 -0800	[thread overview]
Message-ID: <49A1DD24.9060801@candelatech.com> (raw)
In-Reply-To: <1235329791.7331.75.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>

Trond Myklebust wrote:
>> I want to have a unique mount per local IP, so if I mount the same 
>> server from 1.1.1.1 and from 1.1.1.2, I
>> want two unique mounts.  I believe the way to do this is to 
>> differentiate based on the IP addr,
>> which is what this code is supposed to be doing.
>>     
>
> You can already do that using the -onosharecache option.
>   
I wasn't aware of that option.  Even with it, I think my changes are
useful, at least for my particular use.
> I really dislike this idea of adding routing information at the sunrpc
> level. So, I repeat: what is the application for all this? I've heard
> mutterings about routing and multi-homed servers, but absolutely zero in
> the way of specific applications and requirements.
>
> Why can't you for instance do exactly the same thing, simply by setting
> up two separate local networks; one for each NIC?
>   
My specific application is a testing tool that emulates 1000+ unique NFS 
clients,
primarily for testing  & loading NFS servers.
I put each client on a mac-vlan and put them all on the same subnet so 
that I don't
need any routers between my box and the nfs server.  (We can also put
them on different subnets and use different routers, and the specific 
source-ip
also helps there...)

I use routing tricks to enforce that a particular source-IP uses a 
specific routing
table, and that ties pkts to a specific mac-vlan interface.  The mount 
bindaddr
option then binds a mount to a specific local IP and thus to a specific 
mac-vlan.

This shows 1000+ mounts on my test box, and the nfs server sees 1000
unique clients (all with different MACs, IPS, etc).

It's possible that this is the only useful thing anyone will ever do 
with this option,
and if so, probably not a good enough reason to add it to the tree.  
But, I think
it's more likely that it will also help someone else who is trying to do 
something
we've never considered.

I'm not really making any changes to the sunrpc layer..it already has 
the option
to bind to a local address it seems.  I'm just allowing the user to fill 
in this value
before calling the sunrpc (current code in the tree just uses 'any' for 
the source
address).

If you still see no use for this option, just say so and I'll quit 
bugging you about
it.  I appreciate the help given so far to make the patch work better 
for me,
and can keep it in my private tree easily enough.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com> 
Candela Technologies Inc  http://www.candelatech.com



  parent reply	other threads:[~2009-02-22 23:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-22  1:01 PATCH: Support binding to a local IPv4 address when mounting a server Ben Greear
2009-01-22  2:38 ` Chuck Lever
2009-01-22  5:35   ` Ben Greear
2009-01-22 17:06     ` Chuck Lever
2009-01-22 17:31       ` Ben Greear
2009-01-23 17:18         ` Chuck Lever
2009-01-23 17:39           ` Ben Greear
2009-02-21  7:43           ` Ben Greear
2009-02-21 17:16             ` Trond Myklebust
2009-02-21 22:09             ` Chuck Lever
2009-02-22  5:52               ` Ben Greear
2009-02-22 19:09                 ` Trond Myklebust
     [not found]                   ` <1235329791.7331.75.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-02-22 20:29                     ` Chuck Lever
2009-02-22 22:01                       ` Trond Myklebust
2009-02-22 23:17                     ` Ben Greear [this message]
2009-02-22 23:41                       ` Trond Myklebust
     [not found]                         ` <1235346094.7331.111.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-02-22 23:45                           ` Ben Greear
2009-02-22  6:24               ` Ben Greear
2009-02-22 20:01                 ` Chuck Lever
2009-02-22  7:05               ` Ben Greear
  -- strict thread matches above, loose matches on Subject: below --
2009-02-21 18:18 Ben Greear

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A1DD24.9060801@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=chuck.lever@oracle.com \
    --cc=kaber@trash.net \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox