Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2631554ybc; Mon, 18 Nov 2019 02:10:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxEF2+t8xhS+aKvMGsaB2rBAW6B+q9z0Edyf6PJSyCVxW0Qwk4TNjQQY96AUfws5sZCn3bE X-Received: by 2002:adf:dc8d:: with SMTP id r13mr12778063wrj.391.1574071802370; Mon, 18 Nov 2019 02:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574071802; cv=none; d=google.com; s=arc-20160816; b=DBn+x4MnAnROdPE40Tu8mHObhJmaa/S3uFC5WKF4qJOT/PPkAqmuvZ285k/AA9BmWn +jO9sJZbQDBEZz+bHxwwIZCAK9TFevqqDamKs3i6hX9GkBjWthlQoMQ4AOaY4tRbCzPn 154ize04nPHTayZSbdwN+5S/5zipnqOYmKok9bY5mODUfJUnWTB0Uhv0/MiSUBt7+ZK2 Wx8QRVLjqEUbfAxdmneWF21J4DaT6Qi8qWZF/a+t+L31X0vXQcEQzWG92/YpTG5/jdah k+3SRnzt/1RdpJeUGpxqC2tR2I1c8FKTFL/U3y+DkIQL5PcWti+YLfZfyctZ6VbfgoxG Z+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=WLFQcqgY/2+49ApZegjoomoaRn2BpLv26dTQIjL19ZE=; b=z4qn9Fz2GouOjG4vNVgmoAy3muD0AU4dz8SPK5Rq+gI0NIhw5hrb/bB7tUCO6yQQg8 vIlvj6GM/7RgJRieaRtZI+kSi6dDB+9o6iaV6HN6987VdQcT44cqILGQdGYiEQ5RqY1Q tiCKwlN0H6EJabVCKCf2QxIkZ1VMqk56zZte3E3xa593QDvYoHHRS9W/qYHag2uGtfuW 3zWTXanlY8ZwI7eagM5tLWNpXyKqj3FAwWnxJfw8WyA0yhx9QoVOUQSHyudF/SMgnw4/ T5YbcZHt52uXjdYw8di3CvB+KW6a2AL+X7PI9QtxbDBWmO51p4aPxbWGmGzoGzEfmvaI 0BGQ== 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 b5si12521385edq.173.2019.11.18.02.09.27; Mon, 18 Nov 2019 02:10:02 -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 S1726940AbfKRKIe convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Nov 2019 05:08:34 -0500 Received: from mail2.xel.nl ([82.94.246.102]:52906 "EHLO mail2.xel.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfKRKId (ORCPT ); Mon, 18 Nov 2019 05:08:33 -0500 Received: from localhost (localhost [127.0.0.1]) by mail2.xel.nl (Postfix) with ESMTP id C666DE1386; Mon, 18 Nov 2019 11:08:30 +0100 (CET) X-Virus-Scanned: Scanned by Xel Media mail2 Received: from mail2.xel.nl ([127.0.0.1]) by localhost (mail2.xel.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ef2OGfSe40YE; Mon, 18 Nov 2019 11:08:30 +0100 (CET) Received: from [172.31.0.6] (unknown [82.94.246.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail2.xel.nl (Postfix) with ESMTPSA id 08C44E0382; Mon, 18 Nov 2019 11:08:30 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Specific IP per mounted share from same server From: Samy Ascha In-Reply-To: Date: Mon, 18 Nov 2019 11:08:29 +0100 Cc: "J. Bruce Fields" , linux-nfs Content-Transfer-Encoding: 8BIT Message-Id: <426F1484-BFBB-47FF-A9B2-2DB9C656C5D1@ascha.org> References: <5DBD272A-0D55-4D74-B201-431D04878B43@ascha.org> <20191108162927.GA31528@fieldses.org> To: Olga Kornievskaia X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, Sorry for not answering back earlier. Thank you for your answers. I understand now, why this is all happening as it is. As I'm dealing with many clients, I also have plenty options to balance per client, instead of per share. I, for now, with the current setups, won't be able to balance on NICs per client, but I have enough bandwidth and the NICs will still be useful in case of network failover scenario's. Thanks again and have a good week! Samy > On 8 Nov 2019, at 18:06, Olga Kornievskaia wrote: > > 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.