It appears that SCALE allows ten concurrent scrubs. I'd like to limit that to a lower number. Is there a sysctl or other way to set the specific number I want?
Yup, just checked... that's painful. Look at the links I added; there doesn't seem to be a tunable for limiting the number of concurrent scrubs on the system... Just don't schedule them in an overlapping way I guess.
Thanks. It's possible that zfs_scrub_delay will do what I want, but I don't really want the scrubs to be slower -- I just want fewer to run at once. This feels like a SCALE setting, not an OpenZFS setting.
I wound up just changing the code to limit the number of scrubs to 2. In pool_actions.py edit the line below from 10 to whatever is required (note the caveat that changing the code could hose up the middleware and require a reinstall of TrueNAS), but for me, this is much better than allowing ten concurrent scrubs:
How many pools do you have to make this an issue at all? I can't imagine more than three pools in a single system, and even that is weird edge case stuff.
How many pools do you have to make this an issue at all? I can't imagine more than three pools in a single system, and even that is weird edge case stuff.
I guess I’m an edge case. I have up to 50 pools for various reasons.
A key one is that I keep client data on separate pools so I can detach the pool and remove the drives to put their data into cold storage for a retention period.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.