From 1e9a4417be0863db074b64db87bd98bc1ecdb013 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 3 Apr 2022 17:41:27 +0200 Subject: [PATCH] nodes: set some zfs caching metadata --- nodes/fkusei-locutus.py | 7 +++++++ nodes/home/nas.py | 3 +++ nodes/kunsi-p14s.py | 1 + 3 files changed, 11 insertions(+) diff --git a/nodes/fkusei-locutus.py b/nodes/fkusei-locutus.py index 30ed35d..6d8c878 100644 --- a/nodes/fkusei-locutus.py +++ b/nodes/fkusei-locutus.py @@ -147,6 +147,13 @@ nodes['fkusei-locutus'] = { # this is not a complete list, but we can't create that # structure using bundlewrap anyway, so there's no point # in adding it here. + 'zroot': { + 'compression': 'lz4', + 'relatime': 'on', + 'xattr': 'sa', + 'primarycache': 'metadata' + # encryption is enabled, too. + }, 'zroot/system/journal': { 'mountpoint': '/var/log/journal', 'acltype': 'posix', diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 50e05d3..0d41f51 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -273,6 +273,9 @@ nodes['home.nas'] = { }, }, 'datasets': { + 'storage': { + 'primarycache': 'metadata', + }, 'storage/backups': {}, 'storage/opt-yate': { 'mountpoint': '/opt/yate', diff --git a/nodes/kunsi-p14s.py b/nodes/kunsi-p14s.py index 47ed070..3894e26 100644 --- a/nodes/kunsi-p14s.py +++ b/nodes/kunsi-p14s.py @@ -167,6 +167,7 @@ nodes['kunsi-p14s'] = { 'compression': 'lz4', 'relatime': 'on', 'xattr': 'sa', + 'primarycache': 'metadata' # encryption is enabled, too. }, 'zroot/movies': {