- Manual and automatic snapshots are successful.
- Shadow copies are enabled on the SMB shares (by default)
- The snapshot directory is set to invisible. But interestingly everything is there in the .zfs folder if set to visible.
- The system and the service has been restarted several times.
“Previous Versions” in windows remain blank. I’m not sure what has gone wrong, but checking log.smbd I’m faced with a spam of errors looking like this:
cannot open '/IT/SnapshotTests/New Tekstdokument.txt': No such file or directory
[2025/09/11 11:49:48.700252, 0] ../../source3/modules/smb_libzfs.c:321(get_zhandle)
get_zhandle: Unable to access parent of /IT/SnapshotTests/New Tekstdokument.txt
[2025/09/11 11:49:48.700271, 0] ../../source3/modules/smb_libzfs.c:456(_get_smbzhandle)
_get_smbzhandle: Failed to obtain zhandle on path: [/IT/SnapshotTests/New Tekstdokument.txt]: No such file or directory
[2025/09/11 11:49:48.700285, 0] ../../source3/modules/smb_libzfs.c:1337(_smb_zfs_path_get_dataset)
_smb_zfs_path_get_dataset: Failed to get zhandle
[2025/09/11 11:49:48.700297, 0] ../../source3/modules/vfs_shadow_copy_zfs.c:129(shadow_path_to_dataset)
shadow_path_to_dataset: No dataset found for /IT/SnapshotTests/New Tekstdokument.txt with device id: 0
[2025/09/11 11:49:48.700310, 0] ../../source3/modules/vfs_shadow_copy_zfs.c:575(zfs_lookup_snapshot_list)
zfs_lookup_snapshot_list: [shadow_copy_zfs_stat()]: Failed to get snapshot list for /IT/SnapshotTests/New Tekstdokument.txt
cannot open '/IT/SnapshotTests': No such file or directory
[2025/09/11 11:49:48.700340, 0] ../../source3/modules/smb_libzfs.c:321(get_zhandle)
get_zhandle: Unable to access parent of /IT/SnapshotTests
[2025/09/11 11:49:48.700352, 0] ../../source3/modules/smb_libzfs.c:456(_get_smbzhandle)
_get_smbzhandle: Failed to obtain zhandle on path: [/IT/SnapshotTests]: No such file or directory
[2025/09/11 11:49:48.700364, 0] ../../source3/modules/smb_libzfs.c:1337(_smb_zfs_path_get_dataset)
_smb_zfs_path_get_dataset: Failed to get zhandle
[2025/09/11 11:49:48.700375, 0] ../../source3/modules/vfs_shadow_copy_zfs.c:129(shadow_path_to_dataset)
shadow_path_to_dataset: No dataset found for /IT/SnapshotTests with device id: 0
[2025/09/11 11:49:48.700386, 0] ../../source3/modules/vfs_shadow_copy_zfs.c:575(zfs_lookup_snapshot_list)
The system is on TrueNAS-13.0-U6.8. The system and its users are using Active Directory to access the smb shares, but the issue is also present when bypassing AD. NFS and AFP shares are also enabled, but rarely used if that’s of any importance.
Recently I enabled snapshots on another similar system which worked with previous versions straight away, so that’s weird.
Any assistance is most welcome, as I’ve run out of ideas troubleshooting this issue.
Thanks in advance!