How to determine time since last scrub after resilver?

NASbox

Guru
Joined
May 8, 2012
Messages
650
I want to know when the next automatic scrub is going to occur. Normally I can figure it out from the zpool status:
scan: scrub repaired 0B in 06:04:19 with 0 errors on Sat Mar 4 08:04:46 2023

but if a resilver has recently occured this output is replaced with:
scan: resilvered 2.38M in 00:00:06 with 0 errors on Tue Mar 14 23:55:24 2023

So what can I do to figure out when the next automatic scrub is going to occur?
 
Joined
Jun 2, 2019
Messages
591
Check tasks

Screenshot 2023-03-16 at 6.54.45 AM.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Check tasks
I think you'll find an issue with that method...

Since the threshold days is also factored in, the "Next Run" will just be the next time the number of days since the last scrub is evaluated and only if it's over the threshold will the scrub actually run.

What you probably really want to look at is zpool history poolname | grep scrub
 
Top