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
- phistromJun 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?
- StephenBJun 29, 2017Guru - Experienced User
I'd expect RAID-6 sync time to be longer than RAID-10 - so I don't know why it's running slowly.
But I don't think 12x6TB RAID-6 resync would actually have completed in 14 hours either.
- SandsharkJun 29, 2017Sensei - Experienced User
The expansion time estimates are completely unreliable, especially for more complex operations. I did an experiment converting a RAID0 two-drive set to a RAID5 3-drive set and have recently moved a 6-drive array to an RN4200 and added a 7th drive, which caused a conversion to RAID6.
In both cases, the initial estimate was way low, which isn't really all that unexpected. What was unexpected is that the estimated time to completion stayed about the same or even increased slightly higher up to about the 50% completion mark, then started to drop and show a reasonable expected time. By at least the 10% mark, the estimate should have been able to be much more precise. The percent complete has been increasing at a very steady pace. The original estimated completion was about 6 days. It's now 6 days and it's at 65% on the RAID 6 conversion (7 x 3TB drives). It'll end up being about 10 days.
Related Content
NETGEAR Academy

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