Quick Answer
Pause all background tasks (scrubs, backups, indexing), set RAID sync speed to max (e.g., echo 200000 > /proc/sys/dev/raid/speed_limit_max on Linux), and if using a Synology or QNAP, disable the file indexing service temporarily. This won't fix a bad drive — replace it if smart errors show up.
Why It Takes So Long
I know this is frustrating. You swap a failing drive in your NAS, and the rebuild estimate says 4 days. Or 6. Or even 10. You stare at the screen and wonder if something's broken.
Here's the deal: RAID rebuild time depends on three things: drive size, drive speed, and what else the NAS is doing. A 10TB drive in RAID 5 can take 24-48 hours on a good day. But if your NAS is also running a file indexer, a backup job, or a scheduled disk scrub — that rebuild will crawl. I've seen it double or triple the estimate.
There's also the stripe size. Small stripe size (like 64KB) means more read-modify-write cycles, which slows rebuilds. Bigger stripes (256KB or 512KB) are faster for large files but waste space on small ones. Most NAS systems default to 64KB — and that's a bottleneck.
Finally, drive health matters. A dying drive with bad sectors will retry reads, stalling the rebuild. If you see uncorrectable errors or pending sector counts, replace that drive, not just rebuild around it.
How to Speed Up the Rebuild
- Pause all background tasks. Go into your NAS admin panel. Stop file indexing, cloud sync, backup jobs, media transcoding, and disk scrubs. On Synology, that's in Control Panel > Indexing Service > Pause. On QNAP, it's App Center > File Station > Stop. These tasks steal I/O from the rebuild.
- Increase RAID sync speed. On Linux-based NAS (Synology, QNAP, TrueNAS), SSH in and run:
This raises the max rebuild speed from the default 2000 KB/s to 200 MB/s. Warning: this makes the NAS hot and slow for other tasks. Monitor it.echo 200000 > /proc/sys/dev/raid/speed_limit_max
echo 200000 > /proc/sys/dev/raid/speed_limit_min - Check stripe size. If you're rebuilding on a new array, consider rebuilding with a larger stripe size. This won't help an existing array, but for next time — use 256KB or 512KB for media files, 64KB for mixed workloads.
- Verify drive health. Run a SMART test on all drives. If you see
Reallocated_Sector_Ctover 10 orCurrent_Pending_Sectorover 0, replace that drive before it fails mid-rebuild.
Alternative Fixes If the Main One Fails
If the rebuild estimate doesn't change after 12 hours, something else is wrong. Try these:
- Reboot the NAS. A stuck background process can freeze the rebuild. Cold reboot works best — unplug power for 30 seconds.
- Replace the 'new' drive. Sometimes the replacement drive itself is faulty. Swap it with another known-good drive and restart the rebuild.
- Drop the RAID level. RAID 6 is slower to rebuild than RAID 5 because of double parity. RAID 10 rebuilds fastest. If your use case allows, switch to RAID 10.
- Use a different SATA port. A bad cable or port can cause constant retransmissions. Move the new drive to a different slot.
Prevention Tips
You don't have to suffer through this again. Here's what I do:
- Use drives with high TBW (Terabytes Written) rating — WD Red Pro or Seagate IronWolf Pro are solid.
- Set stripe size to 256KB for media libraries. That's the sweet spot between speed and space waste.
- Schedule rebuilds during off hours. Most NAS allow you to set a start time.
- Keep a spare drive on hand. Swap fast when a drive fails — early rebuilds are quicker.
- Monitor drive health monthly. A 10-minute SMART scan now saves two days of rebuild later.
That's it. You don't need to wait days. Tweak these knobs and your rebuild should finish in hours. If it still doesn't, your hardware might need replacing — don't ignore that.