linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: "J. Bruce Fields" <bfields@redhat.com>
Cc: Chuck Lever <chuck.lever@oracle.com>,
	Trond Myklebust <trondmy@primarydata.com>,
	Steve Dickson <SteveD@redhat.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: EXCHANGE_ID with same network address but different server owner
Date: Tue, 16 May 2017 14:33:38 +0100	[thread overview]
Message-ID: <20170516133338.GD8498@stefanha-x1.localdomain> (raw)
In-Reply-To: <20170515160248.GD9697@parsley.fieldses.org>

[-- Attachment #1: Type: text/plain, Size: 2742 bytes --]

On Mon, May 15, 2017 at 12:02:48PM -0400, J. Bruce Fields wrote:
> On Mon, May 15, 2017 at 03:43:06PM +0100, Stefan Hajnoczi wrote:
> > On Fri, May 12, 2017 at 01:00:47PM -0400, Chuck Lever wrote:
> > > 
> > > > On May 12, 2017, at 11:01 AM, Trond Myklebust <trondmy@primarydata.com> wrote:
> > > > Actually, this might be a use case for re-exporting NFS. If the host
> > > > could re-export a NFS mount to the guests, then you don't necessarily
> > > > need a clustered filesystem.
> > > > 
> > > > OTOH, this would not solve the problem of migrating locks, which is not
> > > > really easy to support in the current state model for NFSv4.x.
> > > 
> > > Some alternatives:
> > > 
> > > - Make the local NFS server's exports read-only, NFSv3
> > >   only, and do not support locking. Ensure that the
> > >   filehandles and namespace are the same on every NFS
> > >   server.
> > > 
> > > - As Trond suggested, all the local NFS servers accessed
> > >   via AF_SOCK should re-export NFS filesystems that
> > >   are located elsewhere and are visible everywhere.
> > > 
> > > - Ensure there is an accompanying NFSv4 FS migration event
> > >   that moves the client's files (and possibly its open and
> > >   lock state) from the local NFS server to the destination
> > >   NFS server concurrent with the live migration.
> > > 
> > >   If the client is aware of the FS migration, it will expect
> > >   the filehandles to be the same, but it can reconstruct
> > >   the open and lock state on the destination server (if that
> > >   server allows GRACEful recovery for that client).
> > > 
> > >   This is possible in the protocol and implemented in the
> > >   Linux NFS client, but none of it is implemented in the
> > >   Linux NFS server.
> > 
> > Great, thanks for the pointers everyone.
> > 
> > It's clear to me that AF_VSOCK won't get NFS migration for free.
> > Initially live migration will not be supported.
> > 
> > Re-exporting sounds interesting - perhaps the new host could re-export
> > the old host's file systems.  I'll look into the spec and code.
> 
> I've since forgotten the limitations of the nfs reexport series.
> 
> Locking (lock recovery, specifically) seems like the biggest problem to
> solve to improve clustered nfs service; without that, it might actually
> be easier than reexporting, I don't know.  If there's a use case for
> clustered nfs service that doesn't support file locking, maybe we should
> look into it.

I suspect many guests will have a dedicated/private export.  The guest
will be the only client accessing its export.  This could simplify the
locking issues.

That said, it would be nice to support full clustered operation.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  parent reply	other threads:[~2017-05-16 13:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 13:27 EXCHANGE_ID with same network address but different server owner Stefan Hajnoczi
2017-05-12 14:34 ` J. Bruce Fields
2017-05-12 15:01   ` Trond Myklebust
2017-05-12 17:00     ` Chuck Lever
2017-05-15 14:43       ` Stefan Hajnoczi
2017-05-15 16:02         ` J. Bruce Fields
2017-05-16 13:11           ` J. Bruce Fields
2017-05-18 13:34             ` Stefan Hajnoczi
2017-05-18 14:28               ` Chuck Lever
2017-05-18 15:04                 ` Trond Myklebust
2017-05-18 15:08                   ` J. Bruce Fields
2017-05-18 15:15                     ` Chuck Lever
2017-05-18 15:17                       ` Trond Myklebust
2017-05-18 15:17                     ` Trond Myklebust
2017-05-18 15:28                       ` bfields
2017-05-18 16:09                         ` Trond Myklebust
2017-05-18 16:32                           ` J. Bruce Fields
2017-05-18 17:13                             ` Trond Myklebust
2017-05-22 12:45                               ` Stefan Hajnoczi
2017-05-22 14:25                           ` Jeff Layton
2017-05-16 13:33           ` Stefan Hajnoczi [this message]
2017-05-16 13:36             ` J. Bruce Fields
2017-05-17 14:33               ` Stefan Hajnoczi

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=20170516133338.GD8498@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=SteveD@redhat.com \
    --cc=bfields@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trondmy@primarydata.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).