Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2019 11:21:42 +0200
From:      Julien Cigar <julien@perdition.city>
To:        hw <hw@adminart.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Is NFS still broken in FreeBSD?
Message-ID:  <20190809092141.GA67645@home.lan>
In-Reply-To: <87v9v7nru4.fsf@toy.adminart.net>
References:  <87v9v7nru4.fsf@toy.adminart.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 09, 2019 at 01:46:27AM +0200, hw wrote:
> Hi,
>=20

Hello,

> according to [1], NFS in FreeBSD is broken, and I'm wondering if it
> still is.
>=20

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:
>=20
>=20
> /b/tftpboot/FreeBSD/install -ro -maproot=3Droot
> /p/default
>=20

this is not a valid /etc/exports file, check man 5 exports

>=20
> 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.
>=20

use something like:

V4: /someroot -sec=3Dsys
/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=3D4
vfs.nfsd.server_max_nfsvers=3D4

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

--=20
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.

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE7vn2l0to0nV7EWolsrs3EKIEI8AFAl1NOyIACgkQsrs3EKIE
I8CShw//flrI9AojiheTjE+d9g/DRG8vrk+hStpNIN4GPlCM/bAQYv6tOjPE9C+z
ckW1CTZWn5KP20bBiFgsaP8fjPebbbVDkMPNgxtBnTLv8pd2xWeEGbHy63eibYOs
0jlNtZSItXD/HC8hQajPmN7ThP5+NKMFet5H03ZqcoVQIMQpZjE6zhoHXQnCVTqs
CPEosrBqYMKJpKrvaON1U/qDWHu8tne2hXbno4M42/UvWOLol+zEd4PCKs2yTl46
uQD827lBZGIfor4dpVNTCM/TeylOLPrFkn4ipE+Q39BcpNeihXQi1qTpFZewb4+G
t0yhSheu/Ew6ll8MIrakfFmrBnhfFfz6rxQSexiSjt+1iBmXYc/mqwR2z4qB3NpJ
P81A9sFeMy+6nIRSE4G/iIPWyQSlE4QFY3Tg90J58M3kcoeui1HG9AM3ApLC48tp
tDGh+D1zT8Jp6X739AO11FCK/34Fg4ZCGb63tqC2Wi8uptJZ8TpmYtmrM/xiaHEl
sfYSCDPFR3oQQASJ+2XYYEe2qaCLDnPl4/LLMjnlWFeCSOi5KRaysZU6pWs4VdkH
aPAuR5dhvyMUfnNu69j36TCbC/Ao8sKtHVIGUeBRD6k8L6b8gRSlHz3unWMdw4Ku
qjh1oI6XQxROau6G0zONe8Fp6GANQnl0qrh5uFMqBZA3s+nERDI=
=nLDP
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190809092141.GA67645>