NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client?

Ahmed Kamal email.ahmedkamal at googlemail.com
Sat Aug 1 13:07:32 UTC 2015


Check this bug report
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=147881

afaict, what you need is not really possible today .. Although this bug has
a couple of patches that solve this limitation. No idea why no one picks up
those gems and merges them :)

On Sat, Aug 1, 2015 at 2:07 PM, Lev Serebryakov <lev at freebsd.org> wrote:

> Hello Ahmed,
>
> Saturday, August 1, 2015, 3:01:09 PM, you wrote:
>
> > My setup is
> > # cat /etc/exports
> > V4: / -sec=sys
>
> > # zfs get sharenfs sitank/home
> > NAME         PROPERTY  VALUE     SOURCE
> > sitank/home  sharenfs  on        local
>
> > and that's it .. All children zfs datasets under sitank/home inherit the
> > sharenfs=on property and life works. The integration between zfs and
> > sharing nfs is not too smooth .. so ensure it's the last step you do
>  Problem is, I need different "maproot" and "ro/rw" options for different
> networks. Looks like I need to mention each filesystem (for each network!)
> manually in /etc/exports.
>
> --
> Best regards,
>  Lev                            mailto:lev at FreeBSD.org
>
>


More information about the freebsd-fs mailing list