跳转到主内容

由于文件被锁定,无法删除、重命名或修改文件

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

适用场景

  • ONTAP 9
  • CIFS/SMB
  • CIFS锁定

问题描述

  • Access denied 或在访问或尝试重命名或删除ONTAP中的文件或文件夹时出现类似错误
  • 用户无法删除文件: 
    • 刷新 Windows资源管理器时、文件消失并重新出现
    • "Cannot delete file because it is open by the system "错误
  • 用户无法访问文件属性中的“安全”选项卡
  • 在System Manager中删除文件失败:You do not have permission to close this activity
  • Sectrace输出显示:

示例:

::> vserver security trace trace-result show    Vserver: svm_1
Node            Index Filter Details             Reason
--------------- ----- -------------------------- ------------------------------
Node-01     1     Security Style:  -         Access is denied because a
                                             delete is pending on this
                                             object
                      Protocol: cifs
                      Volume: -
                      Share: share1
                      Path: /example/test/test.file
                      Win-User: domain\user
                      UNIX-User: root
                      Session-ID: xxxxxxxxxxxxxxxx

Node       Index Filter Details        Reason
--------------- ----- -------------------------- ------------------------------
Node-01 2    Security Style: NTFS and   Access is denied. share lock
            NT ACL            violation with another client
                         xx.xx.xx.101 while setting
                         the attributes. Access is not
                         granted for: "Read Attributes"
            Protocol: cifs
            Volume: -
            Share: share_name
            Path: /path/file.txt
            Win-User: domain\user_name
            UNIX-User: pcuser
            Session-ID: xxxxxxxxxxxxxxxx
Node-01 2    Security Style: NTFS and   Access is denied. share lock
            NT ACL            violation with another client
                         xx.xx.xx.101 while opening
                         existing file or directory.
                         Access is not granted for:
                         "Read Attributes"
            Protocol: cifs
            Volume: -
            Share: share_name
            Path: /path/file.txt
            Win-User: domain\user_name
            UNIX-User: pcuser
            Session-ID: xxxxxxxxxxxxxxxx

  • ONTAP命令vserver locks show  指示客户端对受影响的文件保持锁定

示例:

 ::> vserver locks show Vserver: vs0 Volume Object Path LIF Protocol Lock Type Client -------- ------------------------- ----------- --------- ----------- ---------- vol1 /vol1/notes.txt node1_data1 cifs share-level 192.168.1.5 Sharelock Mode: read_write-deny_delete op-lock 192.168.1.5 Oplock Level: read-batch 

 

 

 

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.