From 85d9b9fdacf6134f0b2b6f633841fb5f433e6636 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 27 Mar 2021 14:03:33 +0100 Subject: [PATCH] nodes/htz-cloud.sewfile: move seafile data to zfs --- nodes/htz-cloud/sewfile.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/nodes/htz-cloud/sewfile.py b/nodes/htz-cloud/sewfile.py index b1e660f..699f375 100644 --- a/nodes/htz-cloud/sewfile.py +++ b/nodes/htz-cloud/sewfile.py @@ -4,6 +4,7 @@ nodes['htz-cloud.sewfile'] = { 'bundles': { 'seafile', + 'zfs', }, 'groups': { 'debian-buster', @@ -51,6 +52,21 @@ nodes['htz-cloud.sewfile'] = { 'vm': { 'cpu': 1, 'ram': 2, - } + }, + 'zfs': { + 'pools': { + 'tank': { + 'device': '/dev/sdb', + }, + }, + 'datasets': { + 'tank/mysql': { + 'mountpoint': '/var/lib/mysql', + }, + 'tank/seafile-data': { + 'mountpoint': '/mnt/seafile-data', + }, + }, + }, }, }