Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2020 10:33:59 -0500
From:      mike tancsa <mike@sentex.net>
To:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   export a zfs snapshot over nfs
Message-ID:  <62fc92d6-7a31-9dac-d237-082cc71d0dd9@sentex.net>

next in thread | raw e-mail | index | archive | help
On a backup server, I want to export a zfs snapshot via nfs, but I cant
seem to do it.

given the snapshot is
backup2/zrepl/sink2/nfserver1/images/vms@zrepl_20190902_122114_000

I can do something locally like

mkdir /tmpmount

add

/tmpmount       -maproot=nobody   192.168.13.36

and from the client machine mount /tmpmount.

But if I do on the server

mount -t zfs
backup2/zrepl/sink2/nfserver1/images/vms@zrepl_20190902_122114_000 /tmpmount

and then try and mount from the client, I get a permission denied.

I can work around it by creating a quick clone of the snapshot and
mounting the clone.  But was curious as to why I cant do it the first way ?

server is releng12 and nfsv3

    ---Mike





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62fc92d6-7a31-9dac-d237-082cc71d0dd9>