Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2014717pxk; Sat, 19 Sep 2020 09:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVtkmXyZHWmyTc+nPsyP4OKs9fEpIGObIwp9QK8hO8WOHgxhEy/8e/zXOssinFj9O4+CmX X-Received: by 2002:a05:6402:1717:: with SMTP id y23mr46301630edu.112.1600533272335; Sat, 19 Sep 2020 09:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600533272; cv=none; d=google.com; s=arc-20160816; b=xkLXFNRIrvvao6DFPA4Mvco7GHq+mC+lI7onRWhU4zXqcWZWuo+iuZsPT/ieIqJKp9 TaRk0d7QXzwFkpjRmtMElYa+bTivUanEfelNKfesTpJ/6q7TTeiGIC6gB16lxU86/YcO q547u5/KhcRdKDHVElc8LSZoAlLB2BO7Pcopu7Ophi70trE4t2z94rYevCIZJwJXDRc/ KnQOEG4f+F9lDCgFuslpe+DiU9vHE1dDGIJHpXDZarzfTb692sTdcGJw7iUtMMZ48hVv 44WPvoZPAbqWb7UxavqVW6gJOIRmGNXQdMNvBWZNnRlGvecwAzeYKRC3O0sBlO7hIX8L JSdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=tV857EfmON+0v03OUWwaMYbgY3FrTECXHKwrrH01Vo8=; b=eRZfoLj+VNpIbc8jtf6iUq7V+0kuIqCl1BC6y5sS+lsPdK+O/pAcSTIAM7T31aWO+A fZgYB5wo3skSCPnB/amBXCg1gLLsQrwvvWlwLf5E02tQwF5b8zfYw2m2Al6BH7B3+fcW 8ihZsqJ79qGlidFspqmrIGAllAFQzZCT0VEiIHt3rosklUj033KoPdj+hSdwe4kCCyYo xVlH8+ODTJMWQ1Lym3DYMAwX378NGusJ/7dnBCW4LStb57fo4fE6K6VZ0LqOYMFCp6xM wxmqpnR3i+88hw9EZwjn6MdRDqh0j2PoupoKdKhqZ5CkU3ztq8FTHlPUGdDPd1u7N16R omlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=JleJAeua; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si6533034edj.252.2020.09.19.09.33.56; Sat, 19 Sep 2020 09:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=JleJAeua; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbgISQdz (ORCPT + 99 others); Sat, 19 Sep 2020 12:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgISQdz (ORCPT ); Sat, 19 Sep 2020 12:33:55 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D69C0613CE for ; Sat, 19 Sep 2020 09:33:55 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id C503AC56; Sat, 19 Sep 2020 12:33:53 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org C503AC56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1600533233; bh=tV857EfmON+0v03OUWwaMYbgY3FrTECXHKwrrH01Vo8=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=JleJAeuacAyY8AB++zZv/0gDA+ueo1ONJ5z7TNCPrnN31TEudXcy4/e4gDm0QGm/i EZJRll0gYObMvUcWOHZZ3cXcswDoUxPAD1qjDMiiq64VeZBWUItqz/SrMuigudL6eu b/oN+xtMyWIy+HyrndunQecTFDa8EIVeQzLwdxlQ= Date: Sat, 19 Sep 2020 12:33:53 -0400 To: Chris Hall Cc: linux-nfs@vger.kernel.org Subject: Re: mount.nfs4 and logging Message-ID: <20200919163353.GA15785@fieldses.org> References: 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) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Sep 15, 2020 at 02:06:23PM +0100, Chris Hall wrote: > Also FWIW, I gather that this is configuration for the client-side > 'mount' of nfs exports, *only*. I suppose it should be obvious that > this has absolutely nothing to do with configuring (server-side) > 'mountd'. Speaking as a fully paid up moron-in-a-hurry, it has > taken me a while to work that out :-( [I suggest that the comments > in the .conf files and the man-page could say that nfs.conf is > server-side and nfsmount.conf is client-side -- just a few words, > for the avoidance of doubt.] That sounds sensible. If you're feeling industrious, you can git clone git://linux-nfs.org/~steved/nfs-utils and patch those files and mail us a patch.... > Given that NFSv4 is going on 20 years old now, I do wonder why the > earlier versions are not treated a "legacy". Agreed, they basically are legacy now, but documentation's slow to catch up. > For example: I run nfs on my firewall machine so that I can > configure it from elsewhere on the network. Naturally, the firewall > machine is firmly wrapped so that it may only be accessed by > particular machines inside the network. I also try to ensure that > the absolute minimum number of daemons are running and the absolute > minumum number of ports are open. In that context, (a) is there a > way to persuade 'systemctl start nfs-service' to be "nfs4 only", and > to *not* start 'rpcbind' (and *not* open port 111), and (b) are > rpc.idmapd, rpc.mountd and rpc.statd required for nfs4 ? (ie, is > nfsdcld sufficient ?) For the server, you don't need rpcbind or rpc.statd for v4, but you do need rpc.idmapd, rpc.mountd and nfsdcld. rpc.mountd is the only one of those three that needs to listen on a network port, but that's only in the NFSv2/v3 case. I'm not sure if we're getting that right. --b.