Date: Thu, 13 May 2021 21:10:56 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: freebsd-fs <freebsd-fs@freebsd.org>, "lev@FreeBSD.org" <lev@FreeBSD.org> Subject: =?Windows-1252?Q?Re:_autofs_+_default_/net_map_+_NFS4_=97_how_to=3F?= Message-ID: <YQXPR0101MB09686590F5AC4BC617D5A0F6DD519@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <36080caf-4aa1-d262-cb93-9df9b72f884d@FreeBSD.org> References: <36080caf-4aa1-d262-cb93-9df9b72f884d@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
lev wrote:=0A= [stuff snipped]=0A= >I could mount "blob:/home" or "blob:/ports" with mount -t nfs like this:= =0A= >=0A= ># mount -t nfs -o nfsv4,tcp blob:/home /mnt=0A= Oh, and you might want to consider using "minorversion=3D1" (or even 2=0A= if/when you are running FreeBSD13 or later).=0A= NFSv4.1 (and 4.2) are much better protocols than NFSv4.0 and the=0A= implementations should now be pretty solid, so long as you avoid=0A= enabling delegations (off by default).=0A= - NFSv4.1 was a minor revision in name only. The RFC is only 500+ pages lon= g.=0A= =0A= rick=0A= =0A= # ls /mnt=0A= .... lev ....=0A= # umount /mnt=0A= # ls /mnt=0A= #=0A= =0A= No problem, it works.=0A= =0A= I've added "nfsv4,tcp" options to "/net" map in "/etc/auto_master", run "au= tomount" and try:=0A= =0A= # cd /net/blob/home=0A= /net/blob/home: No such file or directory=0A= # ls /net=0A= blob=0A= # ls /net/blob=0A= usr=0A= # cd /net/blob/usr/home=0A= WARNING: autofs_trigger_one: request for /net/blob/usr/ completed with erro= r 5, pid 1519 (csh)=0A= May 13 23:05:15 hamster automountd[2564]: mount failed=0A= ... <snip 4 more repitions of the same> ...=0A= /net/blob/usr/home: Input/output error=0A= #=0A= =0A= Looks like it is because "autofs" uses "showmount -E" to determine availabl= e mount points, and "showmount" shows NFSv3 mounts, which conflicts with NF= Sv4.=0A= =0A= Should it work out-of-the-box? Or I need to custom-fix script in "/etc/auto= fs" (I don't like this idea!)=0A= =0A= --=0A= // Lev Serebryakov=0A= _______________________________________________=0A= freebsd-fs@freebsd.org mailing list=0A= https://lists.freebsd.org/mailman/listinfo/freebsd-fs=0A= To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"=0A= =0A=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR0101MB09686590F5AC4BC617D5A0F6DD519>