RAID Resync#
Resources#
Improve Speed#
If you make these changes, your RAID resync/build times will improve substatially.
Warning
Your NAS will be incredibly slow and nearly unresponsive after these changes.
GUI#
- Open Storage Manager
- Go to Storage Pool
- Go to Configurations
- Select Customize
- Set Min to something high like
300
or600
- Set Max to something ridiculous like
1500
(it'll likely never go that fast)
Command Line#
Note
You may have a different number instead of md2
for your main array.
Use cat /proc/mdstat
to find out your array number.
- SSH into your NAS
- Elevate to root with
sudo -i
if you don't want to typesudo
before every command - Run
echo 32768 > /sys/block/md2/md/stripe_cache_size
if you have a lot of RAM. If you have the default amount of RAM, this might not work well. You can use any power of 2 though, such as16384
or8192
. I don't recall what the default is, but I think it's only4096
. - Run
blockdev --setra 65536 /dev/md2
- Optional: Run
echo max > /sys/block/md2/md/sync_max
(in my case this was already set tomax
and not needed, however)
You can also play with disabling NCQ during the rebuild, but I found it helped basically none so returned that to default.