Date: Sun, 26 Jan 2020 13:56:48 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: mike tancsa <mike@sentex.net>, freebsd-fs <freebsd-fs@freebsd.org> Subject: Re: export a zfs snapshot over nfs Message-ID: <ce4d56d5-cff1-45e4-8cc5-c1d7200e8262@digiware.nl> In-Reply-To: <62fc92d6-7a31-9dac-d237-082cc71d0dd9@sentex.net>
index | next in thread | previous in thread | raw e-mail
On 24-1-2020 16: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@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 ? The fact that it works for a clone, but not for a snapshot with 'permission denied' gives me the feeling that one way or another something is trying to modify the snapshot, which is not allowed. Could perhaps be things like atime of mtime. And on a snapshot you are not allowed to do so. Not sure if nfs-mounting /tmpmount '-ro' will help? --WjWhelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce4d56d5-cff1-45e4-8cc5-c1d7200e8262>
