export a zfs snapshot over nfs
Andriy Gapon
avg at FreeBSD.org
Sun Jan 26 15:54:01 UTC 2020
On 24/01/2020 17:33, mike tancsa wrote:
> 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 at 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 at 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
Have you tried to navigate to the snapshot from the filesystem mount via
.zfs/snapshot ?
--
Andriy Gapon
More information about the freebsd-fs
mailing list