Skip to main content
NetApp Knowledge Base

NFS client temporarily fails to delete a file created for a CIFS client to read

Views:
47
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • CIFS (oplocks enabled)
  • NFSv4
  • ETL or other rapid file turnover workflow (create, write, read, delete between multiple clients)
  • (Possible) SQL statements written into short-lived file for import into DBMS

Issue

  • NFS (v4) client attempts to delete a file by issuing a REMOVE call, but receives NFS4ERR_FILE_OPEN
  • Workflow characteristics:
    • An NFS client creates and writes a file for import by a CIFS client (SQL Server is a known example)
      • SQL Server imports are one known example - other scripted / coordinated actions between NFS and CIFS clients on the same, short-lived file could exhibit the same behavior
    • Oplocks enabled on the CIFS share from which the CIFS client is importing data
    • CIFS client fully reads the import file, but does not close the file proactively, preventing the NFS writer from deleting it until the oplocks held by the CIFS client expire

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.