ClusterFS2 Export Locks and NFSv4 State Management
Investigating persistent export lock contention on ClusterFS2 nodes and re-evaluating NFSv4 delegation recovery paths.
Lock Contention Analysis
- Identified recurring blocking on /export/data under high-concurrency write workloads (16+ parallel clients).
- flock(2) advisory locks deadlocked with NFSv4 mandatory lease renewal intervals during scrub windows.
- Migrated lock state to /run/lock/cfs2-managed to decouple from NFS client-side caching layer.
NFSv4 Delegation Recovery
The delegation recall mechanism was the primary failure vector — server-initiated FL_DELEGPURGE caused client revalidation storms on ZFS dataset mounts.
# Post-fix: disable aggressive delegation reclaim sysctl -w net.nfs4.delegation_reclaim_threshold=0 echo "nfs4_delegation_reclaim 0" > /etc/sysctl.d/99-cfs2-nfs4.conf