On Mon, 2023-05-22 at 15:32 +0200, Sebastian Neustein via samba wrote:> log still says: > [2023/05/22 15:23:23.324179,? 1] > ../../source3/modules/vfs_shadow_copy2.c:2222(shadow_copy2_get_shadow > _copy_data) > ?? shadow_copy2_get_shadow_copy_data: SMB_VFS_NEXT_OPEN failed for > '/srv/glvol_samba/admin/projects/.snaps' - Permission denied > > I had it working before and had some trouble with these two > parameters aswell.Since you mentioned that it was working before, what changed now? Is that an update to GlusterFS or Samba that is causing the issue? Or something else? Can you check for any other errors in /var/log/glusterfs/snaps/glvol_samba/snapd.log or in GlusterFS FUSE mount log under /var/log/glusterfs/? Regards, Anoop C S.
Sebastian Neustein
2023-May-23 09:52 UTC
[Samba] vfs_shadow_copy2 cannot read/find snapshots
Am 23.05.2023 um 10:27 schrieb Anoop C S:> On Mon, 2023-05-22 at 15:32 +0200, Sebastian Neustein via samba wrote: >> log still says: >> [2023/05/22 15:23:23.324179,? 1] >> ../../source3/modules/vfs_shadow_copy2.c:2222(shadow_copy2_get_shadow >> _copy_data) >> ?? shadow_copy2_get_shadow_copy_data: SMB_VFS_NEXT_OPEN failed for >> '/srv/glvol_samba/admin/projects/.snaps' - Permission denied >> >> I had it working before and had some trouble with these two >> parameters aswell. > > Since you mentioned that it was working before, what changed now? Is > that an update to GlusterFS or Samba that is causing the issue? Or > something else?The only thing I am aware of is that I changed - mounting the device from /etc/fstab to /etc/systemd/system/srv-glvol_samba.mount, which looks like this: - debian version changed from 11.6 to 11.7. - smb.conf to resolve this the mount unit looks like this [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,acl [Install] WantedBy=multi-user.target while the /etc/fstab entry was: B741:/glvol_samba /srv/glvol_samba glusterfs _netdev,defaults,acl 0 0 I tried mounting the volume with the /etc/fstab entry again, but that did not make a change. Same error message when trying to access the previous file versions from a windows client.> Can you check for any other errors in > /var/log/glusterfs/snaps/glvol_samba/snapd.log or in GlusterFS FUSE > mount log under /var/log/glusterfs/?These are all log entries when I unmount and mount the volume: root at B741:/var/log/glusterfs# cat glusterd.log The message "I [MSGID: 106496] [glusterd-handshake.c:954:__server_getspec] 0-management: Received mount request for volume shd/glvol_samba" repeated 19 times between [2023-05-22 22:00:21.718887 +0000] and [2023-05-22 22:00:21.980543 +0000] [2023-05-23 09:14:20.346930 +0000] I [MSGID: 106496] [glusterd-handshake.c:954:__server_getspec] 0-management: Received mount request for volume /glvol_samba root at B741:/var/log/glusterfs# tail snaps/glvol_samba/snapd.log [2023-05-23 09:13:55.540643 +0000] W [socket.c:749:__socket_rwv] 0-tcp.glvol_samba-server: readv on 192.168.40.13:49122 failed (Keine Daten verf?gbar) [2023-05-23 09:13:55.540716 +0000] I [MSGID: 115036] [server.c:500:server_rpc_notify] 0-glvol_samba-server: disconnecting connection [{client-uid=CTX_ID:3256ac0d-77b9-47cb-bcc3-7bfbc4d3cfe1-GRAPH_ID:0-PID:468941-HOST:A320-PC_NAME:glvol_samba-snapd-client-RECON_NO:-0}] [2023-05-23 09:13:55.540949 +0000] I [MSGID: 101055] [client_t.c:396:gf_client_unref] 0-glvol_samba-server: Shutting down connection CTX_ID:3256ac0d-77b9-47cb-bcc3-7bfbc4d3cfe1-GRAPH_ID:0-PID:468941-HOST:A320-PC_NAME:glvol_samba-snapd-client-RECON_NO:-0 [2023-05-23 09:14:20.367096 +0000] I [addr.c:52:compare_addr_and_update] 0-snapd-glvol_samba: allowed = "*", received addr = "192.168.40.13" [2023-05-23 09:14:20.367145 +0000] I [MSGID: 115029] [server-handshake.c:565:server_setvolume] 0-glvol_samba-server: accepted client from CTX_ID:39951d0a-d67c-4984-b278-a21b9579f471-GRAPH_ID:0-PID:635482-HOST:A320-PC_NAME:glvol_samba-snapd-client-RECON_NO:-0 (version: 10.4) with subvol snapd-glvol_samba [2023-05-23 09:14:20.367446 +0000] E [server-handshake.c:156:server_first_lookup] 0-snapd-glvol_samba: lookup on root failed: Das Argument ist ung?ltig -- Sebastian Neustein Airport Research Center GmbH Bismarckstra?e 61 52066 Aachen Germany Phone: +49 241 16843-23 Fax: +49 241 16843-19 e-mail: sebastian.neustein at arc-aachen.de Website: http://www.airport-consultants.com Register Court: Amtsgericht Aachen HRB 7313 Ust-Id-No.: DE196450052 Managing Director: Dipl.-Ing. Tom Alexander Heuer