Update NFS configuration: better mount options to fix caching and set domain to 'ryot.local'

This commit is contained in:
Chris Toph 2025-06-11 02:48:02 -04:00
parent 3275c438da
commit 67195fcfb6
3 changed files with 8 additions and 3 deletions

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -28,6 +28,7 @@ in
"allow_other"
"minfreespace=50G"
"fsname=mergerfs"
"func.getattr=newest"
"category.create=mfs"
"nfsopenhack=all"
"nonempty"