NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
phistrom
Jun 28, 2017Star
ReadyNAS 4312X Initial Sync Incredibly Slow
To create a RAID10 array of 12x 6TB drives the web interface is giving me an estimate of 178 hours. After waiting a day it dropped to 154 hours so I guess it's pretty accurate. Is there anything ...
- Jul 03, 2017
I have created a RAID 10 array and it completed syncing within almost precisely 2 days (48 hours, 21 minutes, and 16 seconds).
The way I did it was by following the advice here. I am going to paraphrase it here in case that page ever goes down in the future.
- Create a RAID 10 array using the ReadyNAS GUI as usual.
- Stare, mouth agape, at how long that volume will take to finish its initial sync.
- Enable SSH under the settings tab so you can get shell access to your NAS.
- Log in with the user name "root" and the password whatever you gave to the "admin" user of your NAS.
- Set the "read ahead" of your array to 32 mebibytes with the following command:
blockdev --setra 65536 /dev/md127
(it's 65,536 times 512 bytes which comes out to 32 mebibytes) - Disable NCQ on all your drives. I'd recommend you make a script for this as follows:
#!/bin/bash
for drive in sd{a..l}
do
echo 1 > /sys/block/$drive/device/queue_depth
done
The part that says {a..l} assumes you have 12 drives. You're going to need to change the l to whatever the last disk letter you have is.
According to some sources, this doesn't actually disable NCQ. It would require a kernel parameter to do that but I have no idea how to set kernel parameters on ReadyNAS OS 6. The kernel parameter is:
libata.force=noncq
So maybe at some point the Netgear devs can implement it. The rationale is, apparently mdadm can do the queuing better than the hard drive can so you want to disable all the disks' NCQ.
One of the recommendations from that link (Tip #5) is to create a bitmap. I think that just makes resyncs or rebuilds faster but I don't believe it makes initial syncs faster so I would just ignore it.
StephenB
Jun 29, 2017Guru - Experienced User
You are asking it to do 72 TB worth of disk I/O. The sync speed estimate works out to 115 MB/s
phistrom
Jun 29, 2017Star
I spent a lot of time playing around with SSH on this NAS (since I've got a lot of downtime with it anyway) and discovered it is using mdadm under the hood. After looking around online, that initial sync is just how mdadm works when you create an array like that. I guess I'm just disappointed that it wasn't a little more parallel. 115 MB/sec is what I'd expect to come out of 1 disk, not 12.
As a side note, I may be remembering wrong but I thought I saw the estimate would be about 14 hours when it was in X-RAID mode after the factory reset. Do you happen to know what it is using under the hood that makes this X-RAID (RAID 6) implemtation go so much faster? Is it still mdadm and initial sync for RAID 6 is just faster than RAID 10 for the initial sync?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!