[Samba] vfs_shadow_copy2 not working

Andrew Walker walker.aj325 at gmail.com
Mon Sep 2 01:48:40 UTC 2019


On Sun, Sep 1, 2019 at 3:24 PM douxevip via samba <samba at lists.samba.org>
wrote:

> > The location of the shared folder: /pool/shadowtest
> > The location of the snapshots: /pool/shadowtest/.zfs/snapshot
> > Here are how snapshots are named:
> >
> > autosnap_2019-09-01_13:29:01_daily
> > autosnap_2019-09-01_13:29:01_hourly
> > autosnap_2019-09-01_13:44:09_frequently
> >


I'm not saying this is what your problem is, but if this is FreeBSD < 12,
then MNAMELEN in mount.h is 88. FreeBSD 12 bumps this limit to 1024. This
means that you should be wary of automatic snapshot schemes that bump up
toward this limit. Otherwise, the snapshots will not appear in
shadow_copy2. One way to quickly tell if you're hitting the limit is to
"cd" into the snapdir and "ls -l". If you've hit it then it will fail with
ENAMETOOLONG.


More information about the samba mailing list