From f4b3841793a36c9d98aa1d4c14092decb0a5c5ac Mon Sep 17 00:00:00 2001 From: mwiegand Date: Fri, 12 Nov 2021 18:09:11 +0100 Subject: [PATCH] zfs: no autotrim, manually trim hourly, scrub every two months --- bundles/zfs/items.py | 2 +- bundles/zfs/metadata.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/zfs/items.py b/bundles/zfs/items.py index d075481..e4e5430 100644 --- a/bundles/zfs/items.py +++ b/bundles/zfs/items.py @@ -55,5 +55,5 @@ for name, config in node.metadata.get('zfs/pools', {}).items(): }, ], }, - "autotrim": True, + "autotrim": False, } diff --git a/bundles/zfs/metadata.py b/bundles/zfs/metadata.py index e113379..115adb4 100644 --- a/bundles/zfs/metadata.py +++ b/bundles/zfs/metadata.py @@ -37,12 +37,12 @@ defaults = { 'systemd-timers': { 'zfs-trim': { 'command': '/usr/lib/zfs-linux/trim', - 'when': '*-*-01 00:00:00', + 'when': 'hourly', 'persistent': True, }, 'zfs-scrub': { 'command': '/usr/lib/zfs-linux/scrub', - 'when': '*-*-15 00:00:00', + 'when': '*-2,4,6,8,10,12-1 02:00:00', 'persistent': True, }, 'zfs-auto-snapshot-hourly': {