Update NFS configuration: better mount options to fix caching and set domain to 'ryot.local'
This commit is contained in:
parent
3275c438da
commit
67195fcfb6
3 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -28,6 +28,7 @@ in
|
|||
"allow_other"
|
||||
"minfreespace=50G"
|
||||
"fsname=mergerfs"
|
||||
"func.getattr=newest"
|
||||
"category.create=mfs"
|
||||
"nfsopenhack=all"
|
||||
"nonempty"
|
||||
|
|
Loading…
Add table
Reference in a new issue