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>
index | next in thread | previous in thread | raw e-mail
lev wrote: [stuff snipped] >I could mount "blob:/home" or "blob:/ports" with mount -t nfs like this: > ># mount -t nfs -o nfsv4,tcp blob:/home /mnt Oh, and you might want to consider using "minorversion=1" (or even 2 if/when you are running FreeBSD13 or later). NFSv4.1 (and 4.2) are much better protocols than NFSv4.0 and the implementations should now be pretty solid, so long as you avoid enabling delegations (off by default). - NFSv4.1 was a minor revision in name only. The RFC is only 500+ pages long. rick # ls /mnt .... lev .... # umount /mnt # ls /mnt # No problem, it works. I've added "nfsv4,tcp" options to "/net" map in "/etc/auto_master", run "automount" and try: # cd /net/blob/home /net/blob/home: No such file or directory # ls /net blob # ls /net/blob usr # cd /net/blob/usr/home WARNING: autofs_trigger_one: request for /net/blob/usr/ completed with error 5, pid 1519 (csh) May 13 23:05:15 hamster automountd[2564]: mount failed ... <snip 4 more repitions of the same> ... /net/blob/usr/home: Input/output error # Looks like it is because "autofs" uses "showmount -E" to determine available mount points, and "showmount" shows NFSv3 mounts, which conflicts with NFSv4. Should it work out-of-the-box? Or I need to custom-fix script in "/etc/autofs" (I don't like this idea!) -- // Lev Serebryakov _______________________________________________ freebsd-fs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR0101MB09686590F5AC4BC617D5A0F6DD519>
