From owner-freebsd-questions@freebsd.org Mon Jun 1 07:31:39 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 EFE9A32CA86 for ; Mon, 1 Jun 2020 07:31:39 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from p-impout001.msg.pkvw.co.charter.net (p-impout002aa.msg.pkvw.co.charter.net [47.43.26.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49b6LM062Yz4JgN for ; Mon, 1 Jun 2020 07:31:38 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from localhost ([96.28.177.163]) by cmsmtp with ESMTP id feuxjWiGXv4w0feuxjILS2; Mon, 01 Jun 2020 07:31:32 +0000 X-Authority-Analysis: v=2.3 cv=KaesTjQD c=1 sm=1 tr=0 a=xqrt2BZAGHte7XHhrxJgbA==:117 a=xqrt2BZAGHte7XHhrxJgbA==:17 a=HpEJnUlJZJkA:10 a=ceHJ1wc0exqcN1DEbdQA:9 Date: Mon, 01 Jun 2020 07:31:39 +0000 From: "Thomas Mueller" To: freebsd-questions@freebsd.org CC: Doug McIntyre Subject: Re: Documentation and debugging for NFSv4 References: <20200522182635.GA4515@geeks.org> X-CMAE-Envelope: MS4wfOraZunFKxNOxyE7i7E+Q2Ma0BKwLMy5F6wzsBo0Z4kNfDEIWvkaPAWZU+YWcYx+L+B+HmqVdhwSedJe5xtYSijXv2KsJ1If2VTYzccITae+lg1O2Znq oprbB1/NjRYeT+Q6pJ0NyrP716pvkjldrW0mSL6cy6M4G0fIT5qTFl7vRLVBzKiRgENAwc3viMOq7FJrVX0tsANcgymQlIDANog= X-Rspamd-Queue-Id: 49b6LM062Yz4JgN X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mueller6722@twc.com designates 47.43.26.133 as permitted sender) smtp.mailfrom=mueller6722@twc.com X-Spamd-Result: default: False [0.99 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.74)[-0.736]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[twc.com]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[twc.com]; NEURAL_HAM_LONG(-0.12)[-0.120]; MISSING_MID(2.50)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.36)[-0.357]; 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:40294, ipnet:47.43.24.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[twc.com]; RECEIVED_SPAMHAUS_PBL(0.00)[96.28.177.163:received] 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: Mon, 01 Jun 2020 07:31:40 -0000 from Doug McIntyre: > 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. One question has bugged me, how to set up /etc/exports to be able to export by either NFSv3 or NFSv4, without having to have two files and copy to /etc/exports every time you want to use the other (NFSv3 or 4) protocol. I believe an OS that does not support NFSv4 (such as NetBSD) can not mount_nfs when the server is using NFSv4? Tom