Is NFS still broken in FreeBSD?

Julien Cigar julien at perdition.city
Fri Aug 9 09:21:52 UTC 2019


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"? 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

> 
> 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


> 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

> 
> 
> [1]: https://forums.freebsd.org/threads/nfs-exports.35966/
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20190809/bb2215ef/attachment.sig>


More information about the freebsd-questions mailing list