[Samba] vfs_shadow_copy2 cannot read/find snapshots
Sebastian Neustein
sebastian.neustein at arc-aachen.de
Fri Jun 2 10:48:17 UTC 2023
Hi Anoop
thank you soo much! Everything is working as expected now!
Here are the final settings:
smb.conf (net conf list):
[global]
security = ADS
workgroup = XXX
realm = XXX.XXX.XX
netbios name = XXXX
log file = /var/log/samba/%m
log level = 1
idmap config * : backend = tdb
idmap config * : range = 10000-10100
idmap config XXX:backend = rid
idmap config XXX:range = 1000000-1999999
vfs objects = acl_xattr
map acl inherit = yes
inherit acls = yes
store dos attributes = yes
winbind use default domain = yes
template shell = /bin/bash
[admin]
path = /srv/glvol_samba/admin
guest ok = no
read only = no
browseable = no
administrative share = yes
vfs objects = acl_xattr glusterfs_fuse
[projects]
path = /srv/glvol_samba/admin/projects
guest ok = no
read only = no
shadow:snapdir = /srv/glvol_samba/admin/projects/.snaps
shadow:basedir = /srv/glvol_samba/admin/projects
shadow:sort = desc
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
acl_xattr:ignore system acls = yes
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
shadow:snapprefix = snapSC
gluster mount unit:
[Unit]
Description=Data Dir
After=network.target
Requires=network-online.target
[Mount]
What=B741:/glvol_samba
Where=/srv/glvol_samba
Type=glusterfs
Options=defaults,_netdev,negative-timeout=10,attribute-timeout=30,fopen-keep-cache,direct-io-mode=enable
[Install]
WantedBy=multi-user.target
on gluster snapshots are created with
gluster snapshot create snapSC
Best regards
Sebastian
More information about the samba
mailing list