Skip to content

pnfs-common: shorten the metadata server's NFSv4 lease and grace time to 15 s - #32

Merged
boddumanohar merged 1 commit into
pnfs-minimalfrom
feat/mds-nfsd-short-grace
Nov 12, 2026
Merged

boddumanohar merged 1 commit into
pnfs-minimalfrom
feat/mds-nfsd-short-grace

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

Problem

The MDS guest's nfsd runs with the Linux defaults (lease 90 s, grace 90 s; boot log: NFSD: starting 90-second grace period). After every MDS restart, every pNFS client is blocked for the grace period. In a reproduction the grace/reclaim segment was the largest part of a 93 s client-wide stall. Part of RCA pnfs_mds_not_in_eviction_targets_rca_20261111.

Change

Add lease-time=15 and grace-time=15 to the [nfsd] section of prototype/boards/pnfs-common/rootfs_overlay/etc/nfs.conf. The board builds nfs-utils 2.9.1 (buildroot submodule), whose rpc.nfsd and nfsdctl read both keys from [nfsd] and write them to /proc/fs/nfsd before starting the threads.

Trade-off

Clients renew their lease about every 15 s instead of every 90 s, which is a small load for a metadata server. A client that cannot reach the MDS for more than ~15 s loses its state sooner.

Testing

Not built or verified on a cluster yet. Expected check: the guest boot log shows NFSD: starting 15-second grace period.

Related: simplyblock/simplyblock-operator#904

@boddumanohar
boddumanohar merged commit 9b5737b into pnfs-minimal Nov 12, 2026
2 checks passed
@boddumanohar
boddumanohar deleted the feat/mds-nfsd-short-grace branch November 12, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants