From owner-freebsd-questions@freebsd.org Fri Aug 9 14:26:07 2019 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 0AA0FCA57B for ; Fri, 9 Aug 2019 14:26:07 +0000 (UTC) (envelope-from lee@adminart.net) Received: from mo6-p01-ob.smtp.rzone.de (mo6-p01-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5301::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 464nbd4YsFz4d8r for ; Fri, 9 Aug 2019 14:26:05 +0000 (UTC) (envelope-from lee@adminart.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1565360762; s=strato-dkim-0002; d=adminart.net; h=References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=PZBYFb6rn65XRI9PHeQ1DBUzwc3R0JVXEfg/9nRDAuk=; b=ricpb3s+d2ukXfkM/KuLmW2QFnkKNCv0jc/NrSUxv+wZM2XWCTc93mgsHJ/niifNp3 QLVjKitze+VjH+UPoyFykVmsKKW1U7j+FsO/T+g5/LvJgn3vp5e6YYhxdMCL/dVoK0Ns clxzcdbz/yjT0nEOIF5foAVUVshTIzTDh/KmW7wswe5EGkX1H0qHvVQndcNCmSPGqh/D NTV94sCkrmAglDFn4LXNFepCPKnXgh+tUVRjupUff+8rIvuLQ4D1gwzAJAbvC8I30ccA 99OSjaaQsDGFFmFhaR9Rw6VIUXpocSrCOu0eC9pT7jYml/2ZMpsDOziZM52gA9xkGKo9 L9Jg== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+ARdaXvxIDf7nlw=" X-RZG-CLASS-ID: mo00 Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 44.24 DYNA|AUTH) with ESMTPSA id e0059dv79EQ2w7i (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 9 Aug 2019 16:26:02 +0200 (CEST) Received: from toy.adminart.net ([192.168.3.55]) by himinbjorg.adminart.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hw5qD-0001UU-NQ; Fri, 09 Aug 2019 16:26:01 +0200 Received: from lee by toy.adminart.net with local (Exim 4.92) (envelope-from ) id 1hw5qD-00008a-Le; Fri, 09 Aug 2019 16:26:01 +0200 From: hw To: Julien Cigar Cc: freebsd-questions@freebsd.org Subject: Re: Is NFS still broken in FreeBSD? In-Reply-To: <20190809092141.GA67645@home.lan> (Julien Cigar's message of "Fri, 9 Aug 2019 11:21:42 +0200") Date: Fri, 09 Aug 2019 16:25:05 +0200 Organization: my virtual residence Message-ID: <87ftmaxvpa.fsf@toy.adminart.net> References: <87v9v7nru4.fsf@toy.adminart.net> <20190809092141.GA67645@home.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 464nbd4YsFz4d8r X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adminart.net header.s=strato-dkim-0002 header.b=ricpb3s+; dmarc=none; spf=none (mx1.freebsd.org: domain of lee@adminart.net has no SPF policy when checking 2a01:238:20a:202:5301::5) smtp.mailfrom=lee@adminart.net X-Spamd-Result: default: False [-2.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[adminart.net:s=strato-dkim-0002]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[adminart.net]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[adminart.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[hw@adminart.net,lee@adminart.net]; RCVD_IN_DNSWL_LOW(-0.10)[5.0.0.0.0.0.0.0.0.0.0.0.1.0.3.5.2.0.2.0.a.0.2.0.8.3.2.0.1.0.a.2.list.dnswl.org : 127.0.5.1]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6724, ipnet:2a01:238::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[hw@adminart.net,lee@adminart.net]; IP_SCORE(-0.77)[ipnet: 2a01:238::/32(-3.40), asn: 6724(-0.46), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2019 14:26:07 -0000 Julien Cigar writes: > On Fri, Aug 09, 2019 at 01:46:27AM +0200, hw wrote: >> Hi, >> > > Hello, > >> according to [1], NFS in FreeBSD is broken, and I'm wondering if it >> still is. >> > > define "broken"? see my other post about that > NFS is used in production here for years and works like > a charm. The only annoying issue was PR 205193 (as we use jails > extensively), but it has now been fixed. > >> I need to export some directories rw and some ro with an /etc/exports >> like this: >> >> >> /b/tftpboot/FreeBSD/install -ro -maproot=root >> /p/default >> > > this is not a valid /etc/exports file, check man 5 exports That man page is just bad. Please explain what is not valid about it. For all I can tell, it's perfectly valid for NFS v3. You can also find this in the FreeBSD handbook in section 31.8.1.. >> The "default" directory needs to be exported read-write. That seems to >> be impossible with FreeBSD --- if that is really so, NFS is totally >> broken in FreeBSD. To make it more strange, it worked as intended until >> I restarted the server. NFS v4 doesn't seem to work at all. >> > > use something like: > > V4: /someroot -sec=sys > /someroot/default -rw -network somehost -mask somenetmask -rw is nowhere mentioned in the man page. It says: The -ro option specifies that the file system should be exported read- only (default read/write). At first I was assuming that I should use -rw, but since that doesn't exist and there were error messages in /var/log/messages, I removed it. Omitting -rw, the error messages persisted, and even adding -ro to the second entry, they persist. >> This has cost me a whole day now :( > > also, for a NFS V4 only server/client you could set: > > vfs.nfsd.server_min_nfsvers=4 > vfs.nfsd.server_max_nfsvers=4 Both Centos 7 and Fedora support 4.2, so limiting to 4 doesn't make much sense when they may get involved. I have also verified that it is not possible to mount a v4 export from FreeBSD as v4 on Centos 7: It doesn't mount when you explicitly specify the version, or it mounts as v3 when you don't. >> [1]: https://forums.freebsd.org/threads/nfs-exports.35966/