Run SCRUB only inside specified time frame

subscriber

Cadet
Joined
Apr 1, 2023
Messages
2
Hi


Is it possible to set schedule for scrub to run only in specified time frame like every day from 02:00h to 04:00h in the morning ?
Something like Synology offers ?
I know scrubs can be stopped. Does this mean the next scrub job starts from scratch or does it remember the state of the presvious scrub and takes it from where it left of ?

word-image-571.png



I have 51TB dataset and scrubs run for days which slows the whole system and is noisy.

Thanks in advance
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Data Protection | Adjust Scrub/Resilver priority...

I don't think it necessarily stops the scrub, but should stop you noticing performance impact.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
You can also pause a scrub via zpool scrub -p <name of pool>, and resume when convenient with zpool scrub <name of pool>. Potentially, you could set up cron jobs to automate the suspend/resume.
 
Top