Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3247693pxk; Mon, 21 Sep 2020 08:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiDai+ztITIxFDUr2kWZF+GLJi3ZllqK9tLmN215iXbXlc31hu2Hto+Nrxslpg5F4hzXyV X-Received: by 2002:a17:907:2173:: with SMTP id rl19mr63880ejb.514.1600703358599; Mon, 21 Sep 2020 08:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600703358; cv=none; d=google.com; s=arc-20160816; b=yXvS+2E5EbBcyasC1RPf7WR412vBu6gRLKhjKOMakLkvK+7+HSI5xAEgE8ZBvYlkr9 zT7zyKfcUGrPu5IVZ4khLZlT/OMuA2xZ+lB5FDD55fAnhVD+rAwkLNCyinBqOMGSdpE3 OuW8HHX1evjmvpzZMD/najHKuxbcTJAJS5N5ju+4dZ7JnVlx35H4HGQ5YKvxCmenz4gu 7ljVTybtYXV11gaIZlveSw19zse1f0ql/lOoSHuwWt/+OklqCzqTTtY9tqYKQcOv7LCt W5HmCjEQ7oHFkLLUcPuecvB8Q2h/3lnPgZWnGrJ0GRJ4NP8dgU+GzHp53GS47fOPg76S kh3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=Lgqo1tlz63xCNnl8K3Cr6vVB5Ac+ayN7+p8u1WLtlG8=; b=sPncji8D2c2pnoFSEemoQNS7r15Xc+DJAgeAPB+yFZPxQJ5fWGBP29UYLV2HZVK8v6 dZAWbjJ9pV4GUxAAn62DsBsWx5EdAg4KiGdbAkhfPLAEQIFE2XmH477WbbA7KmKocvoF AvsbF6QYIpv9xlNVinKYssTBSFrvACmX5e/Fkku3Sdma89dpLh/4c2C8jVo/wrHYagOM Ok2S8KRuRRmwvgc/AR9iJT8NpxSd1lB8GgUMKctNbxOhiZPdyn9lSmz/EFrGGSrqc3LN gYu4Sf8nlBvMymd17t2R+ae5BoFvEaChXxt6nevFETr0epJWm/vf//q8ydBzuIs8ZVVs LlHA== ARC-Authentication-Results: i=1; mx.google.com; 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 qt7si8191679ejb.694.2020.09.21.08.48.46; Mon, 21 Sep 2020 08:49:18 -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; 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 S1726611AbgIUPsn (ORCPT + 99 others); Mon, 21 Sep 2020 11:48:43 -0400 Received: from cerberus.halldom.com ([79.135.97.241]:38361 "EHLO cerberus.halldom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbgIUPsn (ORCPT ); Mon, 21 Sep 2020 11:48:43 -0400 X-Greylist: delayed 4126 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Sep 2020 11:48:43 EDT Received: from ceres.halldom.com ([79.135.97.244]:56248) by cerberus.halldom.com with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kKMyw-0001cU-C4 for linux-nfs@vger.kernel.org; Mon, 21 Sep 2020 15:39:54 +0100 Subject: Re: mount.nfs4 and logging To: linux-nfs@vger.kernel.org References: <20200919163353.GA15785@fieldses.org> <20200919164020.GB15785@fieldses.org> <12298172-f830-4f22-8612-dfbbc74b8a40@gmch.uk> <20200920193245.GC28449@fieldses.org> From: Chris Hall Message-ID: Date: Mon, 21 Sep 2020 15:40:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200920193245.GC28449@fieldses.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 20/09/2020 20:32, J. Bruce Fields wrote: > On Sun, Sep 20, 2020 at 10:56:28AM +0100, Chris Hall wrote: ... >> Where nfsdcld, rpc.idmapd and rpc.mountd have indeed been started >> but are not bound to any ports. > That looks good. (And rpc.mountd does still serve a purpose in the > NFSv4 case, answering requests from the kernel for information related > to exported filesystems.) >> But rpc.statd and rpcbind have also been started, and various ports >> have been opened, including port 111 which is bound to systemd. Is >> there a way to inhibit that for nfs4 only ? > Unlike rpc.mountd, there's no reason for those to be running at all. > You can mask thoe corresponding systemd units. I tried masking all of: rpcbind.socket, rpcbind.service, statd.service and statd-notify.service. systemctl start nfs-server.service (eventually) gives, according to the logging: nfs-mountd.service: start operation timed out. Terminating. nfs-mountd.service: State 'stop-sigterm' timed out. Killing. nfs-mountd.service: Killing process x (rpc.mountd) with signal SIGKILL. nfs-mountd.service: Control process exited, code=killed, status=9/KILL If I unmask rpcbind.service, I can start nfs-server. It no longer starts rpc.statd. But I still have rpcbind running and port 111 open. > It'd be nice if there was a way to make that happen automatically if v2 > and v3 are configured out in the configuration files, but I don't know > how to make that happen. It would and me neither. Thanks, Chris