From 5245fa82d46f45425a77b91442805abe5236c682 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 20 Aug 2024 03:17:43 +0200 Subject: [PATCH] koyomi: Use LVM thin pool for VMs --- machines/ci-runner/hardware-configuration.nix | 2 ++ machines/koyomi/hardware-configuration.nix | 3 +++ 2 files changed, 5 insertions(+) diff --git a/machines/ci-runner/hardware-configuration.nix b/machines/ci-runner/hardware-configuration.nix index 4df2ffd..75ef939 100644 --- a/machines/ci-runner/hardware-configuration.nix +++ b/machines/ci-runner/hardware-configuration.nix @@ -39,6 +39,8 @@ }; }; + services.fstrim.enable = true; + networking = { useDHCP = false; usePredictableInterfaceNames = false; diff --git a/machines/koyomi/hardware-configuration.nix b/machines/koyomi/hardware-configuration.nix index 949f7b2..da29334 100644 --- a/machines/koyomi/hardware-configuration.nix +++ b/machines/koyomi/hardware-configuration.nix @@ -57,6 +57,9 @@ services.prometheus.exporters.smartctl.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ]; + # Not used for boot, but required to make thin LVs work + services.lvm.boot.thin.enable = true; + # TODO Enable periodic RAID scrubbing/checking with mdcheck networking.useDHCP = false;