Migrating a Synology NAS to a UniFi UNAS Pro 8 with Robocopy, SMB Multichannel, and Surprising Performance Traps

2026年8月23日

AI 摘要 AI 生成,可能有误

作者记录了使用基于 SMB 的 Robocopy 将数据从一台老旧的 Synology NAS 迁移到全新的 UniFi UNAS Pro 8 的过程;期间遇到了由 NTFS 备用数据流导致的复制失败,最终通过使用 /COPY:DATX 参数跳过这些数据流得以解决。性能调优揭示了几个出人意料的陷阱:/Z 可重启标志会显著拖慢复制速度,多线程(/MT)对大量小文件的提升有限,而 /J 无缓冲 I/O 标志尽管被推荐用于大文件,却反而拖慢了 SMB 到 SMB 的传输。最后,SMB 多通道使 Windows 得以聚合 Synology 上的全部四个 1 GbE 端口,结果显示这台旧 NAS 比预期更快——作者总结道,Robocopy 的开关描述的是行为,而非有保证的性能提升。

I’ve had a Synology NAS for a very long time, and recently I started moving its contents to a new Ubiquiti UniFi UNAS Pro 8. This seemed like it ought to be a fairly boring operation. Both devices speak SMB, I have a fast network (recently upgraded to 10 gigabit internally), and Windows has had tools for copying files reliably between machines for decades. Naturally, it turned into a whole evening of learning things I thought I already knew, which is why I started a blog lol.

There was a nice bit of history here for me because back in 2007 (good lord!) I wrote a post called “XCopy considered harmful - Robocopy or XXCopy or SyncBack.” My argument at the time was basically that once you are moving enough files, Explorer stops being the move and Robocopy starts looking pretty good. I even used /Z, Robocopy’s restartable mode, because being able to resume a partially transferred file was useful on unreliable connections.

Almost twenty years later, /Z turned out to be one of the most important things I needed to remove because it made everything hella slow.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Scott Hanselman

Debugging my new network, when 10 Gigabit Ethernet Runs at 300 Megabits

AI 摘要While troubleshooting slow file transfers on a 10 Gigabit Ethernet home network, the author used iperf3 to rule out the NAS and storage, revealing the Windows desktop's Intel E610-XT2 NIC as the culprit, with nearly a million discarded receive packets. Increasing the adapter's receive buffers to 4096 improved receive throughput, but disabling Large Send Offload V2 (IPv4) was the key fix, boosting one-way iperf3 performance from 313 Mbit/sec to 7.03 Gbit/sec. The author cautions against blanket disabling of LSO, emphasizing that systematic measurement—removing storage variables to isolate the network layer—was the real lesson.

Is the craft dead?

AI 摘要Scott Hanselman reflects on whether AI-assisted coding kills the craft of software development, comparing it to earlier shifts like moving from assembler to C or the rise of copy-paste from Stack Overflow. He argues that software remains hard and that craftsmanship, good taste, and human judgment still matter—much like the difference between IKEA furniture and true woodworking. While there will be plenty of work cleaning up AI-generated 'slop,' skilled developers can achieve amazing results with AI augmentation, and the craft still exists, just no longer bound by the speed of one's fingertips.

The danger of glamourizing one shots

AI 摘要Scott Hanselman argues that AI-augmented coding shouldn't be judged by impressive 'one shots,' since prompts like 'one shot Minecraft' rely on the name itself carrying enormous semantic weight—asking for the same result without using the name is far harder. He notes that one-shotting famous games just yields the statistically average, 'mid' version of them, and that real AI-assisted development is about sculpting ambiguity into specificity while keeping systems stable through change. As programming shifts toward a 'prose compiler,' good SDLC practices, historical knowledge, and clearly specified goals with sound judgment will matter more than ever.

Automatically Signing a Windows EXE with Azure Trusted Signing, dotnet sign, and GitHub Actions

AI 摘要The author explains how they code-signed their Windows Edge Light app using Azure Trusted Signing to avoid Windows Defender SmartScreen warnings, covering account setup, identity validation, and certificate profile creation. They demonstrate signing executables locally with the dotnet sign tool and automating the process in GitHub Actions using a service principal, noting the service costs about $10/month but eliminates the hassle of hardware tokens and manual certificate renewal.

Webcam randomly pausing in OBS, Discord, and websites - LSVCam and TikTok Studio

AI 摘要The author's webcam started randomly pausing in OBS, browsers, and other apps every 90 seconds or so, and after investigating with PowerShell and JavaScript's enumerateDevices(), he discovered a mysterious virtual camera called 'LSVCam' that hung on enumeration and caused NotReadableError failures. He traced it to TikTok LIVE Studio, which installs LSVCam.dll as a poorly implemented virtual camera for its streaming feature. The fix is deleting the registry key HKEY_CLASSES_ROOT\CLSID\{860BB310-5D01-11d0-BD3B-00A0C911CE86}\Instance\LSVCam, though the key reappears each time TikTok Studio is run, so he deletes it before each stream until the bug is fixed.