Resource icon

scrub troubleshooting - timestamped logging of scrub

Mastakilla

Patron
Joined
Jul 18, 2019
Messages
203
Mastakilla submitted a new resource:

scrub troubleshooting - timestamped logging of scrub - scrub troubleshooting - timestamped logging of scrub

As I've had some crashes / reboots during a scrub with (repaired) CKSUM errors, I wanted to know if the scrub errors occurred around the same time as the reboots. For this, I've created some very basic scripts that does a 'zpool status' every x seconds and log this with timestamps to a logfile.

Features:
  • Runs 'zpool status' regularly (default = every 5 seconds) and compares it with the previous run
  • Logs unexpected changes (for example CKSUM errors) with a timestamp...

Read more about this resource...
 

Mastakilla

Patron
Joined
Jul 18, 2019
Messages
203
Mastakilla updated scrub troubleshooting - timestamped logging of scrub with a new update entry:

Script code updated to support encrypted pools (+ a little more)

I've made some updates to the script so that it support encrypted pools (which aren't visible until you unlock them). The log script will now wait until the pool becomes visible and will then proceed monitoring and logging the restarted scrub.

I've also made some updates so that script has minimal interaction with the filesystem and does almost everything in memory.

Read the rest of this update entry...
 
Top