diff --git a/roles/mgrote.zfs_tools/README.md b/roles/mgrote.zfs_tools/README.md index 72515cbb..495daf46 100644 --- a/roles/mgrote.zfs_tools/README.md +++ b/roles/mgrote.zfs_tools/README.md @@ -14,8 +14,6 @@ Deaktiviert das mitinstallierte scrub-Script in /etc/cron.d/zfsutils-linux. ### Variablen + Defaults ##### Wer soll die Mails bekommen empfaenger_mail: michael.grote@posteo.de -##### name des zu ueberwachenden Pools - -- [ ] pruefen ob auch mehrere Pools gehen zfs_pool: zfs_vm_mirror ##### Maximale Groesse ARC in Bytes Beim aendern wird die Zeile einmal mit dem alten Wert und dem neuen Wert in die Zeile eingefuegt! @@ -34,3 +32,5 @@ Trim: Minute, Stunde, Monat, Tag des Monats Scrub: Wochentag, Minute, Stunde ##### Pfad zu zpool-binary pfad_zu_zpool: "/usr/sbin/zpool" +##### Füllstand für Warnmail +zfs_tool_max_cap: "80" diff --git a/roles/mgrote.zfs_tools/defaults/main.yml b/roles/mgrote.zfs_tools/defaults/main.yml index e5ae23c6..d5d4775e 100644 --- a/roles/mgrote.zfs_tools/defaults/main.yml +++ b/roles/mgrote.zfs_tools/defaults/main.yml @@ -15,3 +15,5 @@ cron_month_zfs_trim: "4,8,12" cron_day_zfs_trim: "2" pfad_zu_zpool: "/usr/sbin/zpool" + +zfs_tool_max_cap: "80" diff --git a/roles/mgrote.zfs_tools/templates/zfs-health.sh b/roles/mgrote.zfs_tools/templates/zfs-health.sh index f17d2b03..883dfe21 100644 --- a/roles/mgrote.zfs_tools/templates/zfs-health.sh +++ b/roles/mgrote.zfs_tools/templates/zfs-health.sh @@ -19,7 +19,7 @@ fi # SSD then 80% is reasonable. If you have a 60TB raid-z2 array then you can # probably set the warning closer to 95%. -maxCapacity=70 +maxCapacity= {{ zfs_tool_max_cap }} if [ ${problems} -eq 0 ]; then capacity=$(/sbin/zpool list -H -o capacity)