Compare commits

...

2 commits

Author SHA1 Message Date
mwiegand
2ec0e5068a trim root, dont trim zs so often, as it takes some time 2021-11-12 18:57:09 +01:00
mwiegand
f4b3841793 zfs: no autotrim, manually trim hourly, scrub every two months 2021-11-12 18:09:11 +01:00
3 changed files with 9 additions and 3 deletions

View file

@ -55,5 +55,5 @@ for name, config in node.metadata.get('zfs/pools', {}).items():
}, },
], ],
}, },
"autotrim": True, "autotrim": False,
} }

View file

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

View file

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