linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: "J. Bruce Fields" <bfields@redhat.com>,
	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: Thu, 18 May 2017 14:34:41 +0100	[thread overview]
Message-ID: <20170518133441.GC4155@stefanha-x1.localdomain> (raw)
In-Reply-To: <20170516131142.GA12711@fieldses.org>

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

On Tue, May 16, 2017 at 09:11:42AM -0400, J. Bruce Fields wrote:
> I think you explained this before, perhaps you could just offer a
> pointer: remind us what your requirements or use cases are especially
> for VM migration?

The NFS over AF_VSOCK configuration is:

A guest running on host mounts an NFS export from the host.  The NFS
server may be kernel nfsd or an NFS frontend to a distributed storage
system like Ceph.  A little more about these cases below.

Kernel nfsd is useful for sharing files.  For example, the guest may
read some files from the host when it launches and/or it may write out
result files to the host when it shuts down.  The user may also wish to
share their home directory between the guest and the host.

NFS frontends are a different use case.  They hide distributed storage
systems from guests in cloud environments.  This way guests don't see
the details of the Ceph, Gluster, etc nodes.  Besides benefiting
security it also allows NFS-capable guests to run without installing
specific drivers for the distributed storage system.  This use case is
"filesystem as a service".

The reason for using AF_VSOCK instead of TCP/IP is that traditional
networking configuration is fragile.  Automatically adding a dedicated
NIC to the guest and choosing an IP subnet has a high chance of
conflicts (subnet collisions, network interface naming, firewall rules,
network management tools).  AF_VSOCK is a zero-configuration
communications channel so it avoids these problems.

On to migration.  For the most part, guests can be live migrated between
hosts without significant downtime or manual steps.  PCI passthrough is
an example of a feature that makes it very hard to live migrate.  I hope
we can allow migration with NFS, although some limitations may be
necessary to make it feasible.

There are two NFS over AF_VSOCK migration scenarios:

1. The files live on host H1 and host H2 cannot access the files
   directly.  There is no way for an NFS server on H2 to access those
   same files unless the directory is copied along with the guest or H2
   proxies to the NFS server on H1.

2. The files are accessible from both host H1 and host H2 because they
   are on shared storage or distributed storage system.  Here the
   problem is "just" migrating the state from H1's NFS server to H2 so
   that file handles remain valid.

Stefan

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

  reply	other threads:[~2017-05-18 13:34 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 [this message]
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
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=20170518133441.GC4155@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=SteveD@redhat.com \
    --cc=bfields@fieldses.org \
    --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).