RHEL7, NFSD : opening a file for writing may return EWOULDBLOCK/EAGAIN

Solution Verified - Updated -


When opening a file for writing on NFS server, it may return EWOULDBLOCK/EAGAIN on first attempt :

[root@rhel73 ~]# grep -i lease /proc/locks 
24: LEASE  ACTIVE    READ  21013 fc:31:51 0 EOF
[root@rhel73 ~]# cp /5GBshare/kk /5GBshare/testfile
cp: overwrite ‘/5GBshare/testfile’? y
cp: cannot create regular file ‘/5GBshare/testfile’: Resource temporarily unavailable
[root@rhel73 ~]# grep -i lease /proc/locks

Error code is produced on open syscall :

22132 06:49:55.307716 open("/5GBshare/testfile", O_WRONLY|O_TRUNC) = -1 EAGAIN (Resource temporarily unavailable) <0.001289>


  • RHEL7.3
  • Problem occurrs on NFS server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content