NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vrspectre
May 04, 2021Apprentice
Volume schedule during peak usage
Running OS 6.10.1. My scrub runs 3 times a year and it takes about a week to finish. Is it possible to schedule it so that the scrub uses less CPU during peak usage and runs full bore at night w...
Sandshark
May 04, 2021Sensei
As best as I can tell, the MDADM re-sync is triggered by the equivalent of echo repair > /sys/block/mdXXX/md/sync_action (where XXX is the array designator, 127 for most single-array NAS). You should be able to pause it with echo 0 >/proc/sys/dev/raid/speed_limit_max. or slow it way down with something between the default of 200000 and 0. Other methods I know of will cause it to start from scratch when re-started, not resume where it left off.
I have long complained that Netgear is needlessly stressing the drives and taking up valuable assets by doing both btrfs scrub and mdadm re-sync simultaneously. My personal experience by doing each manually shows the total time for doing them separately is about the same as concurrently since each slows the other when they are concurrent. They should be automatically sequential or two separate scheduled operations. My only guess is that the only way to easily show the total progress is to actually only look at one of the processes as it is affected by the other. In other words, lazy programming.
While the processes do take 100% of the CPU on a system like a 516, that's only when others aren't asking for time. It's a bigger deal on less powerful NAS. And the drive I/O is a huge problem with an EDA500 on any NAS. When I had a 516 with two EDA500's, a scrub could backlog other processes needing access to the array in one of the EDA's that the whole NAS nearly locked up and the sync/scrub slowed to such a crawl (having already been slow with the eSATA port expansion interface), that I never even found out if it would ever come out of it. I ultimately just did each manually via SSH, though I suppose I could have created a CRON process to do it periodically. I moved to a rack-mount NAS instead.
StephenB
May 05, 2021Guru - Experienced User
Sandshark wrote:
As best as I can tell, the MDADM re-sync is triggered by the equivalent of echo repair > /sys/block/mdXXX/md/sync_action (where XXX is the array designator, 127 for most single-array NAS). You should be able to pause it with echo 0 >/proc/sys/dev/raid/speed_limit_max. or slow it way down with something between the default of 200000 and 0. Other methods I know of will cause it to start from scratch when re-started, not resume where it left off.
Thx for sharing this.
Sandshark wrote:
While the processes do take 100% of the CPU on a system like a 516, that's only when others aren't asking for time.
That of course makes sense, since the process is running in the background. I agree that the disk I/O is a bigger concern.
FWIW, I just let it run on schedule in my 526x, and haven't observed an objectionable performance drop (even with the disk trashing). My RN202 has two jbod volumes, so the btrfs scrub part is the only thing that actually takes time/resources there.
Sandshark wrote:
I have long complained that Netgear is needlessly stressing the drives and taking up valuable assets by doing both btrfs scrub and mdadm re-sync simultaneously.
I'd rather be able to run the RAID resync and BTRFS scrub independently - even setting aside the resources needed. They do two very different things.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!