From 67195fcfb63faddd2aa7157b04f8f9ba4b9d91bc Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Wed, 11 Jun 2025 02:48:02 -0400 Subject: [PATCH] Update NFS configuration: better mount options to fix caching and set domain to 'ryot.local' --- hosts/global/common/system/pool.nix | 6 +++++- hosts/nixos/cloud/config/nfs.nix | 4 ++-- hosts/nixos/cloud/hardware.nix | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/global/common/system/pool.nix b/hosts/global/common/system/pool.nix index a031f2c..ec85ced 100644 --- a/hosts/global/common/system/pool.nix +++ b/hosts/global/common/system/pool.nix @@ -45,6 +45,10 @@ in "noatime" "nofail" "sec=sys" + "noac" # Disable attribute caching + "lookupcache=none" # Disable lookup caching + "intr" # Allow interruption + "hard" # Hard mount (retry on failure) ]; }; }; @@ -55,7 +59,7 @@ in services.nfs.idmapd.settings = { General = { - Domain = "local"; # Must match on server and client + Domain = "ryot.local"; # Must match on server and client Verbosity = 0; }; }; diff --git a/hosts/nixos/cloud/config/nfs.nix b/hosts/nixos/cloud/config/nfs.nix index 60fc5ca..75a2008 100644 --- a/hosts/nixos/cloud/config/nfs.nix +++ b/hosts/nixos/cloud/config/nfs.nix @@ -5,7 +5,7 @@ exports = '' # Pool export - seen as root '/' by the client - /pool *(rw,insecure,no_subtree_check,no_root_squash,fsid=0,anonuid=1000,anongid=1004) + /pool *(rw,insecure,no_subtree_check,no_root_squash,fsid=0,anonuid=1000,anongid=1004,async,no_wdelay) ''; extraNfsdConfig = "vers=4,4.1,4.2"; @@ -15,7 +15,7 @@ # services.rpcbind.enable = true; services.nfs.idmapd.settings = { General = { - Domain = "local"; + Domain = "ryot.local"; Verbosity = 0; }; }; diff --git a/hosts/nixos/cloud/hardware.nix b/hosts/nixos/cloud/hardware.nix index 3febeb8..446032f 100644 --- a/hosts/nixos/cloud/hardware.nix +++ b/hosts/nixos/cloud/hardware.nix @@ -28,6 +28,7 @@ in "allow_other" "minfreespace=50G" "fsname=mergerfs" + "func.getattr=newest" "category.create=mfs" "nfsopenhack=all" "nonempty"