trim root, dont trim zs so often, as it takes some time

This commit is contained in:
mwiegand 2021-11-12 18:57:09 +01:00
parent f4b3841793
commit 2ec0e5068a
2 changed files with 8 additions and 2 deletions

View file

@ -37,12 +37,12 @@ defaults = {
'systemd-timers': {
'zfs-trim': {
'command': '/usr/lib/zfs-linux/trim',
'when': 'hourly',
'when': '*-*-16 02:00',
'persistent': True,
},
'zfs-scrub': {
'command': '/usr/lib/zfs-linux/scrub',
'when': '*-2,4,6,8,10,12-1 02:00:00',
'when': '*-2,4,6,8,10,12-1 02:00',
'persistent': True,
},
'zfs-auto-snapshot-hourly': {

View file

@ -15,6 +15,12 @@
'systemd-timers',
],
'metadata': {
'systemd-timers': {
'trim': {
'command': '/usr/sbin/fstrim -v /',
'when': 'daily',
},
},
'hosts': {
'10.0.10.2': [
'resolver.name',