Make ZFS scrub frequency configurable
This commit is contained in:
parent
c0fbc9f772
commit
168a768471
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
## Changelog
|
||||
|
||||
### 2024-03-27 - Made ZFS Scrub Frequency Check Configurable
|
||||
|
||||
The `config/zfs_health_check.EXAMPLE` has changed, please update your copy accordingly.
|
||||
|
||||
|
||||
### 2024-03-20 - Improved Structure, New State Machine, Dynamic Paths
|
||||
|
||||
The structure of the files was overhauled.
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
MONITORED_DATASETS="trident/media trident/private trident/qbli"
|
||||
SCRUB_EXPIRE=2764800
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ fi
|
|||
# The scrubExpire variable is in seconds. So for 8 days we calculate 8 days
|
||||
# times 24 hours times 3600 seconds to equal 691200 seconds.
|
||||
# scrubExpire=691200
|
||||
scrubExpire=1382400
|
||||
# SCRUB_EXPIRE=1382400 # This was moved to config file
|
||||
if [ ${problems} -eq 0 ]; then
|
||||
currentDate=$(date +%s)
|
||||
zfsVolumes=$(/sbin/zpool list -H -o name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue