On Fri, 10 Nov 2023 at 01:37, Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote: > > > > > On Nov 9, 2023, at 7:05 PM, Cedric Blancher <cedric.blancher@xxxxxxxxx> wrote: > > > > On Thu, 2 Nov 2023 at 10:51, Cedric Blancher <cedric.blancher@xxxxxxxxx> wrote: > >> > >> Good morning! > >> > >> Does anyone have examples of how to use the refer= option in /etc/exports? > > > > Short answer: > > To redirect an NFS mount from local machine /ref/baguette to > > /export/home/baguette on host 134.49.22.111 add this to Linux > > /etc/exports: > > > > /ref *(no_root_squash,refer=/export/home@134.49.22.111) > > > > This is basically an exports(5) manpage bug, which does not provide > > ANY examples. > > That's because setting up a referral this way is deprecated. Why did you do that? > The > preferred way to do it is to use nfsref(8). nfsref(8) is not shipped by ANY Linux distribution. The configure switch in nfs-utils to build it is OFF by default, and the distribution maintainers refuse to enable it because it can be "dangerous", or may be "experimental". I got many excuses why they dont want to enable that damn configure option. Also, stable and oldstable Debian do not have it enabled either. Seriously, why was refer= in exports(5) depreciated? There is no realistic replacement, unless you fix every damn Linux distro first. PS: Sorry for being moody, but I tried to get nfsref(5) working for a month on Debian bullseye, and it just didn't work. > > > Plus, /ref must not be a dir controlled by the automounter, or a Linux > > 6.6 kernel will panic > > Can you open a bug report at bugzilla.linux-nfs.org <http://bugzilla.linux-nfs.org/> (product "kernel" > component "server") and provide the details of the panic? Yes, I can Ced -- Cedric Blancher <cedric.blancher@xxxxxxxxx> [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur