From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [NFS] [PATCH 3/4 Revised] NLM - kernel lockd-statd changes
Date: Fri, 13 Apr 2007 15:16:16 -0400 [thread overview]
Message-ID: <20070413191615.GU1804@redhat.com> (raw)
In-Reply-To: <17948.26876.426822.963222@notabene.brown>
On Wed, Apr 11, 2007 at 02:50:04PM +1000, Neil Brown wrote:
> Think of it like this. The goal is (appears to be) to make it
> possible to implement multiple independent NFS servers on the one
> Linux host.
> As a simplification, each server serves precisely one filesystem which
> no other server serves, and each server has precisely one network
> address which no other server shares.
The simplification here is a bit incorrect; we need to be able to handle
a given *set* of size >= 1 IPs which is paired with a *set* of size >= 1
of fsids. The sets are not broken up (that is, we won't be moving
file systems between IP addresses or vice-vers), but the number of
IPs:filesystems need not be 1:1.
* 1 file system, 1 ip address
* 2 fs, 1 ip
* 1 ip, 2 fs
* 18 ip, 42 fs.
... should all work without extraneous stuff being done.
> lockd knows which is which either based on the destination network
> address of the lock request, or the filesystem on which the lock was
> taken. Somehow this information needs to get communicated to statd
> so that different 'sm' directories can be used. my_name seems a
> sensible place to put the information.
Right. Using the inbound-destination address instead of fsid or file
system will ensure the right address is used for sending the SM_NOTIFY
requests. However, fsid, or export path - on a service with more than
one network address will not, I think...
Obviously, I agree with Olaf in that using all sorts of random network
protocol addresses is a hair ugly - but I think it's better than having
to send out multiple SM_NOTIFY messages on multiple net addrs just to
ensure that a particular client gets SM_NOTIFY from the *right* net
addr that it had in its monitor list...
If we could have a single 'name' per service that can get associated
with multiple network addresses, I'm all for it.
Just my opinion, of course.
> However: now that I think I actually understand what is happening, I
> wonder if FSID and IPaddress are really the right handles to use. It
> would seem to make more sense to use the filesystem name (i.e. a
> path).
This doesn't solve the 2 ip : 1 fs case very cleanly. We need to send
SM_NOTIFY out on multiple IPs to ensure that each node gets it from the
right server address (that the client has on its monitor list)...?
Really, the goal is to have:
* clients receive SM_NOTIFY from the ("virtual") host(s) they are
monitoring when we start the service
* No extraneous SM_NOTIFY requests are sent by server.
* No extraneous SM_NOTIFY requests are received by clients.
--
Lon Hohberger - Software Engineer - Red Hat, Inc.
WARNING: multiple messages have this Message-ID (diff)
From: Lon Hohberger <lhh@redhat.com>
To: Neil Brown <neilb@suse.de>
Cc: cluster-devel@redhat.com, nfs@lists.sourceforge.net
Subject: Re: [PATCH 3/4 Revised] NLM - kernel lockd-statd changes
Date: Fri, 13 Apr 2007 15:16:16 -0400 [thread overview]
Message-ID: <20070413191615.GU1804@redhat.com> (raw)
In-Reply-To: <17948.26876.426822.963222@notabene.brown>
On Wed, Apr 11, 2007 at 02:50:04PM +1000, Neil Brown wrote:
> Think of it like this. The goal is (appears to be) to make it
> possible to implement multiple independent NFS servers on the one
> Linux host.
> As a simplification, each server serves precisely one filesystem which
> no other server serves, and each server has precisely one network
> address which no other server shares.
The simplification here is a bit incorrect; we need to be able to handle
a given *set* of size >= 1 IPs which is paired with a *set* of size >= 1
of fsids. The sets are not broken up (that is, we won't be moving
file systems between IP addresses or vice-vers), but the number of
IPs:filesystems need not be 1:1.
* 1 file system, 1 ip address
* 2 fs, 1 ip
* 1 ip, 2 fs
* 18 ip, 42 fs.
... should all work without extraneous stuff being done.
> lockd knows which is which either based on the destination network
> address of the lock request, or the filesystem on which the lock was
> taken. Somehow this information needs to get communicated to statd
> so that different 'sm' directories can be used. my_name seems a
> sensible place to put the information.
Right. Using the inbound-destination address instead of fsid or file
system will ensure the right address is used for sending the SM_NOTIFY
requests. However, fsid, or export path - on a service with more than
one network address will not, I think...
Obviously, I agree with Olaf in that using all sorts of random network
protocol addresses is a hair ugly - but I think it's better than having
to send out multiple SM_NOTIFY messages on multiple net addrs just to
ensure that a particular client gets SM_NOTIFY from the *right* net
addr that it had in its monitor list...
If we could have a single 'name' per service that can get associated
with multiple network addresses, I'm all for it.
Just my opinion, of course.
> However: now that I think I actually understand what is happening, I
> wonder if FSID and IPaddress are really the right handles to use. It
> would seem to make more sense to use the filesystem name (i.e. a
> path).
This doesn't solve the 2 ip : 1 fs case very cleanly. We need to send
SM_NOTIFY out on multiple IPs to ensure that each node gets it from the
right server address (that the client has on its monitor list)...?
Really, the goal is to have:
* clients receive SM_NOTIFY from the ("virtual") host(s) they are
monitoring when we start the service
* No extraneous SM_NOTIFY requests are sent by server.
* No extraneous SM_NOTIFY requests are received by clients.
--
Lon Hohberger - Software Engineer - Red Hat, Inc.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-04-13 19:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-05 21:52 [Cluster-devel] [PATCH 3/4 Revised] NLM - kernel lockd-statd changes Wendy Cheng
2007-04-05 21:52 ` Wendy Cheng
2007-04-10 9:09 ` Olaf Kirch
2007-04-10 9:10 ` [Cluster-devel] Re: [NFS] " Olaf Kirch
2007-04-10 14:41 ` Lon Hohberger
2007-04-10 14:41 ` Lon Hohberger
2007-04-10 15:00 ` [Cluster-devel] Re: [NFS] " Wendy Cheng
2007-04-10 15:00 ` Wendy Cheng
2007-04-10 18:16 ` [Cluster-devel] Re: [NFS] " Wendy Cheng
2007-04-10 18:16 ` Wendy Cheng
[not found] ` <message from Olaf Kirch on Tuesday April 10>
2007-04-11 4:50 ` [Cluster-devel] Re: [NFS] " Neil Brown
2007-04-11 4:50 ` Neil Brown
2007-04-13 19:16 ` Lon Hohberger [this message]
2007-04-13 19:16 ` Lon Hohberger
2007-04-13 19:31 ` [Cluster-devel] Re: [NFS] " Wendy Cheng
2007-04-13 19:31 ` Wendy Cheng
2007-04-17 11:52 ` [Cluster-devel] Re: [NFS] " Olaf Kirch
2007-04-17 11:52 ` Olaf Kirch
2007-04-17 13:24 ` [Cluster-devel] Re: [NFS] " Wendy Cheng
2007-04-17 13:24 ` Wendy Cheng
2007-04-17 14:51 ` [Cluster-devel] Re: [NFS] " Olaf Kirch
2007-04-17 14:51 ` Olaf Kirch
2007-04-17 15:09 ` [Cluster-devel] Re: [NFS] " Wendy Cheng
2007-04-17 15:09 ` Wendy Cheng
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=20070413191615.GU1804@redhat.com \
--to=lhh@redhat.com \
/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 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.