Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zfs howto



On Sat, 13 Feb 2021 at 00:32, Brad Spencer <brad%anduin.eldar.org@localhost> wrote:
>
> Chavdar Ivanov <ci4ic4%gmail.com@localhost> writes:
>
> [snip]
>
> >>   If I want to export a zfs filesystem over NFS, what specifically do I
> >>   need to do.
> >>
> >>   Does the crash bug referenced in the NFS section still exist in
> >>   current current?  (It's still open)
> >>   http://gnats.netbsd.org/55042
> >
> > Yes, it still crashes, just checked creating a directory from a Linux
> > NFS client. I'll check if I got a dump in a moment ( I was rather
> > optimistic - testing this whilst doing pkg_rolling-replace... no
> > biggie, I'll restart it after the reboot...).
> >
> > Chavdar
>
> [snip]
>
> I am not sure of the complete context of the statement, but I do this
> all of the time with normal NetBSD NFS against a ZFS fileset.
>
> build% cat /etc/exports
> /usr/installed_src/PKGSRC_2018Q4 -alldirs -maproot=root anotherbuild.system.eldar.org
>
> build% zfs list /usr/installed_src/PKGSRC_2018Q4
> NAME                               USED  AVAIL  REFER  MOUNTPOINT
> tank/installed_src/PKGSRC_2018Q4   414M   250G   414M  /usr/installed_src/PKGSRC_2018Q4
>
>
> These are DOMUs running NetBSD 9.0_STABLE from around September.  I have
> not tried this with -current, but there are no crashes for me with 9.x.
>
>
>
>
>
> --
> Brad Spencer - brad%anduin.eldar.org@localhost - KC8VKS - http://anduin.eldar.org

I got it ---

With the following entry in -etc-exports:

     /tank/t1 -maproot=0:10 -network 192.168.0/24

the NFS server crashes when /tank/t1 is zfs system.

With the following one:

     /tank/t1 -maproot=root -network 192.168.0/24

it works fine.

Mind you, '-maproot=0:10' is the first example from 'man exports' ...



-- 
----


Home | Main Index | Thread Index | Old Index