From owner-freebsd-questions@freebsd.org Fri May 22 18:26:44 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 06F072D8668 for ; Fri, 22 May 2020 18:26:44 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (mail.geeks.org [IPv6:2001:4980:3333:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49TFLq2HsRz4gC0 for ; Fri, 22 May 2020 18:26:43 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id 1BB4282C9; Fri, 22 May 2020 13:26:36 -0500 (CDT) Received: by mail.geeks.org (Postfix, from userid 1003) id E96D682C8; Fri, 22 May 2020 13:26:35 -0500 (CDT) Date: Fri, 22 May 2020 13:26:35 -0500 From: Doug McIntyre To: Norman Gray Cc: FreeBSD Questions Subject: Re: Documentation and debugging for NFSv4 Message-ID: <20200522182635.GA4515@geeks.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 49TFLq2HsRz4gC0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of merlyn@geeks.org designates 2001:4980:3333:1::1 as permitted sender) smtp.mailfrom=merlyn@geeks.org X-Spamd-Result: default: False [-2.48 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.981]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; NEURAL_HAM_LONG(-0.96)[-0.959]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[geeks.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.24)[-0.236]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7753, ipnet:2001:4980::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 18:26:44 -0000 On Fri, May 22, 2020 at 03:15:01PM +0100, Norman Gray wrote: > I'm having difficulty finding consistent documentation and debugging tools > for NFSv4. Is there some handbook-like source that I'm missing? Or some > layer of documentation for configuration or debugging that I've failed to > find? I think in general, that NFSv4 is not widely deployed outside of hetrogenous linux environments. Given the state of things, I'd imagine it is downgraded to NFSv3 more often than not in other use cases of mixed OSes. > Normally some combination of netstat and tcpdump would make some headway, > but SunRPC is blacker magic than that. NFSv4 is a big change, most implementations I've seen operate over TCP instead of UDP whereas TCP was optional in v2 and v3. NFSv4 doesn't need rpc portmapper, nor other helper daemons. The IDmapper is a big change as well, no more UID passed through, but all UIDs have to be mapped back and forth on both sides. Make sure you use V4 definitions in /etc/exports. From what I remember even connecting as a client needed 'V4: /' in there to connect right to a linux NFSv4 server, but I could be misremembering.