From 89afaf89c1028183443e201bc36ef1a7e857c4d1 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sat, 25 Nov 2023 17:59:27 +0100 Subject: [PATCH] Disable a thing in ZFS which can cause file corruption Signed-off-by: magic_rb --- nixos/systems/blowhole/hardware.nix | 1 + nixos/systems/omen/hardware.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/nixos/systems/blowhole/hardware.nix b/nixos/systems/blowhole/hardware.nix index 2827b09..d825e5b 100644 --- a/nixos/systems/blowhole/hardware.nix +++ b/nixos/systems/blowhole/hardware.nix @@ -4,6 +4,7 @@ supportedFilesystems = ["zfs"]; kernelParams = [ "ipmi_watchdog.timeout=300" + "zfs.zfs_dmu_offset_next_sync=0" ]; initrd.availableKernelModules = [ "xhci_pci" diff --git a/nixos/systems/omen/hardware.nix b/nixos/systems/omen/hardware.nix index f4695f2..4aed04f 100644 --- a/nixos/systems/omen/hardware.nix +++ b/nixos/systems/omen/hardware.nix @@ -33,6 +33,7 @@ in kernelParams = [ "zfs.zfs_arc_max=8589934592" "zfs.zfs_arc_sys_free=3221225472" + "zfs.zfs_dmu_offset_next_sync=0" # "intel_pstate=active" "nvidia.NVreg_EnableS0ixPowerManagement=1" "nvidia.NVreg_S0ixPowerManagementVideoMemoryThreshold=2048"