I finally upgraded my Unraid server. The two drives are the same size, so this wasn't about capacity. My old parity drive was SMR, and I wanted a CMR drive in that role instead. The old SMR drive moves over to a data slot.
Unraid calls this a parity swap, and it's a long process. I estimated about 16 hours.
It took almost 24, possibly more.
Why I swapped
Every write to the array also updates parity, so the parity drive sees constant write traffic. SMR drives tend to struggle with sustained writes, which is why CMR is the usual advice for parity. As a data drive, the SMR disk gets less punishing use.
What went wrong
My server is set up to save power. I use the Dynamix S3 Sleep plugin, so it sleeps whenever it's idle. I also have a user script that checks the internet connection of a certain device and shuts the server down when that device is gone.
Both make sense day to day. But the morning the parity was building, the script did its job and turned the server off. I woke it up and restarted the process, and then it slept and shut off again. By the end I had rerun the whole thing about twice.
Every interruption cost me hours.
What I should have done
- Disable S3 Sleep before any long array operation. Parity builds, rebuilds, and checks all count.
- Pause user scripts that can shut the server down until the operation finishes.
- Make the script safer. Have it check whether a sync is running and exit early if so. Unraid's
mdcmd statusreportsmdResync, which is above 0 while a parity sync, rebuild, or check is in progress.
if [ "$(mdcmd status | grep -oP 'mdResync=\K[0-9]+')" -gt 0 ]; then
exit 0
fi
Takeaway
Automation that saves power every day can quietly wreck a one-time job. If your homelab sleeps or shuts down on its own, treat any long array operation like a maintenance window: switch off the automation first, and turn it back on afterward.