Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2771892ybx; Fri, 8 Nov 2019 09:06:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxw9twJBj+iev2IYEMU5ZOmXgqWs2Sij/1N3QwS5N7Vjn4072Tc3eATA6NDaxYSFbmZJXYZ X-Received: by 2002:a50:8859:: with SMTP id c25mr11329580edc.253.1573232813760; Fri, 08 Nov 2019 09:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573232813; cv=none; d=google.com; s=arc-20160816; b=Uo/WMekrshsr0uZTbAZu/QSrdOvULtYh62Zwj5JCLegxbZEp7QVVsHZldhkBXrOq3P NpaI7+u74BwYlvOBzPz7G1agqw5ItdzeQhM3VJWOm7wWVpwE3OBpqSjR5pTuLENuNI8s vpxW992MaKK1nvAhitrIdq29VoOCkFtafCwBgRgHXC7N6dGCwGrhka6w9CVrOGjOvASu r4O/pnFV+yv/cItAbN5AnBOjYPEI9wVt0WOgdzA8fZO3F3jLmxWcocMe2dNGoPOzG4su i+xGsnZrQ2bQxaRKt1OgYogeGrhBb9H+q1BoiRApBFHZpj3KT4Y9rV5YuofWT6CdnVWt 4uUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=U7OfQkMw0/JpsTuFF6IzG3uuz24MiN1/VXRSiwXnChw=; b=xo2vo2qpsqL0cOiDq9Q040xvz6sWGDkOqaozr7/oVa3HiERg9MJ9iby08BWZmwiqqV DDczprMxLlQVROrw5fdpd7qwY68qrbZHx8a2SzRre6BIFSuQmPE91DUG5CmCBQDK8uU2 bDoGt4QhLgFmrmGBFohWPsdPC/Yy+c8NUHz6OR9tT/YhV7NwEnSvxIamH/j54eP3Lby9 Sq4Ycak6CNxTwQka0tA2/5Zgv1k+EOXQPV96qknsnJnGUyN4yJMb/5v5lbml1ZVzW4C4 2TF8iYrHjTgiZP/jHZ5h81O64KrpImcxaYoM7dNdJLRWApcvZSujJ/54TlWVW5Q3YoMq zytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=p7oxt+wD; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si5546983edi.349.2019.11.08.09.06.15; Fri, 08 Nov 2019 09:06:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=p7oxt+wD; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbfKHRGO (ORCPT + 99 others); Fri, 8 Nov 2019 12:06:14 -0500 Received: from mail-vs1-f50.google.com ([209.85.217.50]:40592 "EHLO mail-vs1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbfKHRGN (ORCPT ); Fri, 8 Nov 2019 12:06:13 -0500 Received: by mail-vs1-f50.google.com with SMTP id m9so4260756vsq.7 for ; Fri, 08 Nov 2019 09:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U7OfQkMw0/JpsTuFF6IzG3uuz24MiN1/VXRSiwXnChw=; b=p7oxt+wDx/sR8HuoFGYu/tpLBq0iYJhIYgVbXLSs+p8Gp+wBWjQRsubaYkA840aXqM fNnDUrsjF0NLLINYG5OHSdCeLRboIQxjAQYv7sJ+5HRH0RE0v+QvYMrf3Q1DgGmz5fUV kPUnLbtyBGGSjonOqZB7vlgz/LNdKv3jzLcztOthQkaj/6b6KRxnStF4olC+uJM9rpiy W+qgOK4dcQ4iq6MSd8+HYN+xxzHH/USmGIPIeak2+HaRYKUS/tBqECLPATW7ZFvXci2+ hk2bfP8cVVk36ep4jIDceOFdtGC4TJX3bQVQR4y3Euht3ltpjgONdk0CWN33vjiZ944l Jx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U7OfQkMw0/JpsTuFF6IzG3uuz24MiN1/VXRSiwXnChw=; b=eoUGMjkkgEUDpNg/YtC1VBOwOMxWqf/lHewNO8ppqwDrqiVVFmRxjsOA4KYHS+D3JI 2OJZ/Ds6qv67kihOEJa4FHEmZyVGs09975Xy/lruLUYWtW7BiQhgQnVSTLuQyG7hbhre FuuXcgAP42Q5ucKWiCKZxji6kuWXb6STlcOWgFpjvks9gAuTUrQ6+wfF1zpYdHTfDd0E 4x5JSE7RpQj8d7jiLwvyszeUkokBUCup077sY8umjNt58lMiRgMI7f4+JqfK2QZrPxuU KZFIkPAEqA47Md1H+s00oTfvoNWZnEJ9LIK3ayk6xX2XW3GRCVOQJQ/m3dt6sMEVdvWb SMDw== X-Gm-Message-State: APjAAAXrb9spZpXshSQkyQwY3cjzRz4G6OO3T6cdEM3lqfh2mzzFaMGH 7sotCsjiMB3RVE6Sq7bR3hOY5bwvED7BIQ6R9tRg1Q== X-Received: by 2002:a67:d31b:: with SMTP id a27mr8818472vsj.215.1573232771033; Fri, 08 Nov 2019 09:06:11 -0800 (PST) MIME-Version: 1.0 References: <5DBD272A-0D55-4D74-B201-431D04878B43@ascha.org> <20191108162927.GA31528@fieldses.org> In-Reply-To: <20191108162927.GA31528@fieldses.org> From: Olga Kornievskaia Date: Fri, 8 Nov 2019 12:06:00 -0500 Message-ID: Subject: Re: Specific IP per mounted share from same server To: "J. Bruce Fields" Cc: Samy Ascha , linux-nfs Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Nov 8, 2019 at 11:29 AM J. Bruce Fields wrote: > > On Fri, Nov 08, 2019 at 11:09:10AM -0500, Olga Kornievskaia wrote: > > Are you going against a linux server? I don't think linux server has > > the functionality you are looking for. What you are really looking for > > I believe is session trunking and neither the linux client nor server > > fully support that (though we plan to add that functionality in the > > near future). Bruce, correct me if I'm wrong but linux server doesn't > > support multi-home (multi-node?) > > > The server should have complete support for session and clientid > trunking and multi-homing. But I think we're just using those words in > slightly different ways: By the full support, I mean neither client not server support trunking discovery unless that sneaked in when I wasn't looking. That was the piece that I knew needed to be done for sure. When you say it fully support trunking do you mean it when each nfsd node runs in its own container, right? Otherwise, I thought more code would be needed to support the case presented here. nfsd would need to have a notion of running something like a cluster node on a particular interface and distinguish between requests coming from different interface and act accordingly? > > > therefore, it has no ability to distinguish > > requests coming from different network interfaces and then present > > different server major/minor/scope values and also return different > > clientids in that case as well. So what happens now even though the > > client is establishing a new TCP connection via the 2nd network, the > > server returns back to the client same clientid and server identity as > > the 1st mount thus client will use an existing connection it already > > has. > > So, this part is correct, it treats requests coming from different > addresses the same way. > > Although you *can* actually make the server behave this way with > containers if you run nfsd in two different containers each using one of > the two network namespaces. > > There are also things the client could do to distribute traffic across > the two IP addresses. There's been some work on implementing that, but > I've lost track of where it stands at this point.... Client can and will do trunking in case of pNFS to the data servers if the server presents multiple IPs. Otherwise, we just have nconnect feature but that doesn't split traffic between different network paths. > > --b.