If you make these changes, your RAID resync/build times will improve substatially.
Your NAS will be incredibly slow and nearly unresponsive after these changes.
- Open Storage Manager
- Go to Storage Pool
- Go to Configurations
- Select Customize
- Set Min to something high like
- Set Max to something ridiculous like
1500(it'll likely never go that fast)
You may have a different number instead of
md2 for your main array.
cat /proc/mdstat to find out your array number.
- SSH into your NAS
- Elevate to root with
sudo -iif you don't want to type
sudobefore every command
echo 32768 > /sys/block/md2/md/stripe_cache_sizeif 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 as
8192. I don't recall what the default is, but I think it's only
blockdev --setra 65536 /dev/md2
- Optional: Run
echo max > /sys/block/md2/md/sync_max(in my case this was already set to
maxand 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.