Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hosts/server/kobudai.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
# nfs server should not be mounting nfs from itself
ocf.nfs.enable = lib.mkForce false;

# in linux 6.6, nfsd added write delegations. however, this causes old clients to
# get stuck spamming TEST_STATEID (~5000/s) causing open() to take multiple seconds:
#
# fixed client-side in linux 6.7, but death (and others) are super old (5.10 lol),
# so let's disable delegations for now by disabling vfs leases.
#
# issue: https://gitlab.com/gitlab-org/gitlab-foss/-/work_items/52017
# fix: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b8d90f8726
boot.kernel.sysctl."fs.leases-enable" = 0;
Comment thread
24apricots marked this conversation as resolved.

services.nfs.server = {
enable = true;
# https://github.com/ocf/puppet/blob/a081b2210691bd46d585accc8548c985188486a0/modules/ocf_filehost/manifests/init.pp#L10-L16
Expand Down
Loading