Hi,
On OMV I have SSD with system (and one shared folder), and HDD with data as one shared folder. Both are mapped in windows as X: drive and second as Y: and I have no issue with writing/reading/executing/deleting files and folders on any of them (so permissions are rather ok) until I try to copy/move between drives through windows. The error is 0x8007003B: An unexpected network error occurred. The file I tried to copy appears on the destination drive - it has correct side however it just the shell (no data).
I can copy data from one share to windows drive and then move to destination without issue but directly is impossible.
Any advice?
summary after troubleshooting:
I have two SMB shares on my OMV server: one on an SSD (system + sharedfolder1) and one on an HDD (sharedfolder2). Both are mapped in Windows as network drives using the same server alias:
Windows can read, write, delete, and execute files on both shares individually without issues. However, if I try to copy or move files directly between these shares, I get an error (0x8007003B / “Unexpected network error”).
Interestingly, if I map one of the shares using the server IP instead of the alias, e.g.:
then file transfer works perfectly, even using the same credentials.
Cause:
It appears that Windows treats two shares with the same server alias as a single SMB session, and tries to use server-side copy / offloaded copy (ODX). This fails when moving or copying between shares, even if permissions are correct. Using the IP forces Windows to treat them as separate servers, so it falls back to normal read/write copy.
Possible solution:
-
Disable server-side copy either:
-
On Windows (disable ODX / CopyOffload via registry)
-
On Samba/OMV (add
server side copy = noin the share’s extra options?)
-
This allows direct copy/move between shares using the same alias, but has a caveat:
-
All server-side copy within that share is disabled, so operations like moving large files within the same share will be slower (no offloaded/server-side copy).
Walk around: use netbios aliases = raspberry to avoid using IP \\raspberry\sharedfolder2 (and original hostname \\raspberrypi\sharedfolder1 for second share)
Question:
Is there a way in OMV/Samba to disable server-side copy only for operations between different shares, while keeping it enabled for copying/moving within a single share? That way we could keep alias mappings and still preserve performance for large file operations inside each share.