Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2727841ybx; Fri, 8 Nov 2019 08:30:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzb9CExfXBGttkuhiQ/BIfRvrz1yMKDhjSvQfc/cfkzAO1AH2WsRLPLiLtIKDaARYVeR/YX X-Received: by 2002:a17:906:49c9:: with SMTP id w9mr9467148ejv.309.1573230603556; Fri, 08 Nov 2019 08:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573230603; cv=none; d=google.com; s=arc-20160816; b=VZlW9yUfS0Luhbr2cholin+Zfhx9uMPCTw2/WsLmD7Ywr+TcTzkKFqRI21wexEb8yI ezP1S2nDVIM8lcmwg2ew8V1kesL1LK/qCll0+nNxe532h4d1U6vmpJahsllNq2RLidnk xz5zDBOsdMEg5AMLX2e8RInQ+0rOAucHuHjvDtpX7fJCH8QdV+9TBm/5W2D38HgvUNNT WdaoPGnhyvWaee2BdXPLBcuifeaj/+hi6PDxrFp9Kg6ndJQWsMU0mX5D8j5ieeGpGb4Z iZY975O5dPSHiUDZuGF9bJpnoYmjcP56X9gDf/q9zowSU7kx/5duo1jBW141kkq+zW8e a3Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=bJvoHJehyzqF26j3f4BamGt8BLQCvLaE3aO6EGI/hE8=; b=hnmEcQEwRrOa/SGzuUZyxqP9tMVE65OYdZSHcWelGm5uVz08cC86vXbw08GG3Z0djv QPAvoanyjPbbnR9EhDjX3CDvNUv1qTS4JmpGnw2uCzE/mUCWC8yExWS83BXnh1/AXVWF COEGkHm0VPcvCTZMkhkeBmNiwVHVjB114ximjZbuq0llphKcLjewa5B2GC4iN411aaDR 5bM0c+hS5q/cFmufhbXMHXVDo60qR9mcFEEMK/BYd8pPRE1Jc83wVGe8wKJJ59DsTtzA 3h6LdmEQcrgeR9Shoag/9uUYFrvB02Jq9ZIXfrQVI9qQTO+Dzv5YqHtNWcuzk5NMR/R2 CluA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si4826127edb.23.2019.11.08.08.29.32; Fri, 08 Nov 2019 08:30:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbfKHQ32 (ORCPT + 99 others); Fri, 8 Nov 2019 11:29:28 -0500 Received: from fieldses.org ([173.255.197.46]:36364 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfKHQ32 (ORCPT ); Fri, 8 Nov 2019 11:29:28 -0500 Received: by fieldses.org (Postfix, from userid 2815) id EFA611C19; Fri, 8 Nov 2019 11:29:27 -0500 (EST) Date: Fri, 8 Nov 2019 11:29:27 -0500 To: Olga Kornievskaia Cc: Samy Ascha , linux-nfs Subject: Re: Specific IP per mounted share from same server Message-ID: <20191108162927.GA31528@fieldses.org> References: <5DBD272A-0D55-4D74-B201-431D04878B43@ascha.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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: > 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.... --b.