RHEL6: Stale NFS file handle in NFSv4 directory created off of NetApp qtree after writing to parent directory

Solution Unverified - Updated -

Issue

  • 'netapp_vol' is exported volume from 'filer', 'netapp_qtree' is a qtree created in volume and 'scripts' is a directory in qtree created with mkdir.
  • The following sequence of operations produces ESTALE
# mkdir /mnt/test
# mount -t nfs4 filer:/vol/netapp_vol /mnt/test
# cd /mnt/test/netapp_qtree/scripts/testing
# date > ../time.txt
# ls
ls: cannot open directory .: Stale NFS file handle
  • Redirecting the 'date' command to the current directory (for example, $ date >>./time.txt) works ok.
  • Running the command using absolute path works fine.

Environment

  • NFS Client
    • Red Hat Enterprise Linux 6
    • kernel prior to 2.6.32-431.el6
  • NFS Server
    • NetApp with OnTap 8.0.3p3, 8.0.2P6 7-Mode, or 8.1.2P1 7-Mode
  • NFSv4 (NFSv3 does not have the problem)
  • Problem does not occur with different NFSv4 Clients
    • RHEL5.8
    • Fedora 17 (3.6.6-1.fc17.x86_64, nfs-utils-1.2.6-5.fc17.x86_64)

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.