SMB file corruption
This has been bugging me for years - I frequently experience file corruption when using SMB under MacOS, even up to the current version (Sonoma 14.2.1 at the moment).
I mostly use Synology systems for storage, but I corruption occurs even between MacOS systems. Here's what I've tried:
- System updates (duh)
- Using a different Mac (I have half a dozen)
- Reinstalling MacOS
- Locking SMB at different versions, playing with packet signing, encryption, etc.
- Different networks, network adapters, WiFi and wired.
- SMB in Windows and Linux VMs running on the same MacOS host works flawlessly. If I move the same files between the same physical hosts on the same networks, there are no problems ever.
- rsync works flawlessly. Same hosts, networks, etc.
- scp (file copy over ssh) works flawlessly. Same hosts, networks, etc.
- File syncing protocols like Google Drive, OneDrive, Dropbox, Synology Drive, etc., work flawlessly. Same networks and, in the case of Synology, same hosts.
- I seem to be able to consistently reproduce the problem with certain files (same mismatched SHA result after multiple transfers). This doesn't seem to be caching-related as I can do it with very large files that take several minutes to transfer. I've gotten the same results several times in a row.
About the only thing I haven't tried is building Samba on MacOS and trying to somehow force that instead of Apple's internal SMB stack.
There are tons of reports all over the Internet regarding SMB issues on MacOS systems.
I know it's not unique to me, and it doesn't seem to be a priority for Apple to fix even though this is a business-critical issue. I wind up using scp and rsync for all manual file transfers, and that's an annoying pain.
Perhaps if enough people pile on Apple might one day pay attention and resolve this.
iMac 27″