Restoring from shadow copy/ZFS snapshot not working using Windows explorer

tobimai

Cadet
Joined
Nov 21, 2020
Messages
2
Hello,

I recently installed Truenas 12 Release to try it out because I want to replace my Synology. Most of the things are working perfectly, but I have a problem with restoring SMB ShadowCopies/ZFS Snapshots.

The weird thing here is that it works on most files, but on some it doesn't work. I have not found any correlation on what files it works, it seems random.
To restore them I used Windows explorer, so rightclick on the file, previous Versions, and then you see all snapshots.

At first I thought it was a permissions error because Windows throws an error like "Cant access file, maybe it has moved or you don't have permissions". But when looking at the samba log (/var/log/samba4/log.smbd) I get these errors:

Code:
[2020/11/21 02:44:51.016239,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.
[2020/11/21 02:44:51.019515,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.
[2020/11/21 02:44:51.023298,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.


I tried googeling this dev/ino mismatch error but didn't find anything useful.

My Hardware:
TrueNAS-12.0-RELEASE
FX-8350
8GB RAM
TrueNas installed on SSD
a few older 500GB drives
 

tobimai

Cadet
Joined
Nov 21, 2020
Messages
2
Hello,

I recently installed Truenas 12 Release to try it out because I want to replace my Synology. Most of the things are working perfectly, but I have a problem with restoring SMB ShadowCopies/ZFS Snapshots.

The weird thing here is that it works on most files, but on some it doesn't work. I have not found any correlation on what files it works, it seems random.
To restore them I used Windows explorer, so rightclick on the file, previous Versions, and then you see all snapshots.

At first I thought it was a permissions error because Windows throws an error like "Cant access file, maybe it has moved or you don't have permissions". But when looking at the samba log (/var/log/samba4/log.smbd) I get these errors:

Code:
[2020/11/21 02:44:51.016239,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.
[2020/11/21 02:44:51.019515,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.
[2020/11/21 02:44:51.023298,  1] ../../source3/smbd/open.c:3806(open_file_ntcreate)
  open_file_ntcreate: file Ilkahöhe/_DSC4353.jpg - dev/ino mismatch. Old (dev=2345392298172407361, ino=151). New (dev=16939866540922434707, ino=768). Failing open with NT_STATUS_ACCESS_DENIED.


I tried googeling this dev/ino mismatch error but didn't find anything useful.

My Hardware:
TrueNAS-12.0-RELEASE
FX-8350
8GB RAM
TrueNas installed on SSD
a few older 500GB drives

EDIT:
I have found something out which makes it even more weird: On different Users it behaves differently. Some files open without error on one user while they dont work on another
 
Top