RHEL7.6 : NFS4ERR_EXPIRED seen due to 2 or more clients using the same hostname/nodename

Solution Verified - Updated -

Issue

Some clients start to see sudden lease expiration (default lease time in server), this causes OPEN calls to return with NFS4ERR_EXPIRED :

   29 2018-12-13 09:28:00.877551 172.23.1.224 → 172.23.1.225 NFS 294 V4 Call OPEN DH: 0x29de5c91/testfile
   30 2018-12-13 09:28:00.878349 172.23.1.225 → 172.23.1.224 NFS 394 V4 Reply (Call In 29) OPEN StateID: 0x1fe7
   31 2018-12-13 09:28:00.878424 172.23.1.224 → 172.23.1.225 TCP 66 961 → 2049 [ACK] Seq=3796388080 Ack=780532853 Win=1312 Len=0 TSval=28324956 TSecr=23296
   32 2018-12-13 09:28:00.880770 172.23.1.224 → 172.23.1.225 NFS 246 V4 Call CLOSE StateID: 0x1fe7
   33 2018-12-13 09:28:00.881396 172.23.1.225 → 172.23.1.224 NFS 202 V4 Reply (Call In 32) CLOSE
   34 2018-12-13 09:28:00.920938 172.23.1.224 → 172.23.1.225 TCP 66 961 → 2049 [ACK] Seq=3796388260 Ack=780532989 Win=1335 Len=0 TSval=28324999 TSecr=23299
   35 2018-12-13 09:28:16.308180 172.23.1.224 → 172.23.1.225 NFS 218 V4 Call ACCESS FH: 0x29de5c91, [Check: RD LU MD XT DL]
   36 2018-12-13 09:28:16.308486 172.23.1.225 → 172.23.1.224 NFS 194 V4 Reply (Call In 35) ACCESS, [Allowed: RD LU MD XT DL]
   37 2018-12-13 09:28:16.308506 172.23.1.224 → 172.23.1.225 TCP 66 961 → 2049 [ACK] Seq=3796388412 Ack=780533117 Win=1357 Len=0 TSval=28340386 TSecr=38726
   38 2018-12-13 09:28:16.309327 172.23.1.224 → 172.23.1.225 NFS 294 V4 Call OPEN DH: 0x29de5c91/testfile
   39 2018-12-13 09:28:16.309484 172.23.1.225 → 172.23.1.224 NFS 122 V4 Reply (Call In 38) OPEN Status: NFS4ERR_EXPIRED
   40 2018-12-13 09:28:16.309543 172.23.1.224 → 172.23.1.225 NFS 294 V4 Call OPEN DH: 0x29de5c91/testfile
   41 2018-12-13 09:28:16.309737 172.23.1.225 → 172.23.1.224 NFS 122 V4 Reply (Call In 40) OPEN Status: NFS4ERR_EXPIRED

Lease should be implicitly renewed with succesfull OPEN call in frame 29, subsequent OPEN of the same file should not return NFS4ERR_EXPIRED.

As as consequence, open syscall returns with EIO (strace) :

13060 09:28:16.309269 open("/mnt/testfile", O_RDONLY|O_NOFOLLOW) = -1 EIO (Input/output error) <0.000498>

Environment

  • RHEL 7.6
  • NFSv4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In