跳转到主内容

文件操作失败、错误报告文件已在其他程序中打开

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

适用场景

  • ONTAP 9
  • CVO
  • CIFS/SMB

问题描述

  • Windows错误:
    • File operation failed with error : The action can't be completed because the file is open in another program
    • Error: <filename> is locked for editing by 'another user'
  • ONTAP命令行界面命令受影响文件的vserver locks show 指示已应用锁定:

示例:

::> vserver locks show -vserver <vserver_name>

Vserver: kct
Volume     Object Path          LIF           Protocol Lock Type   Client
--------   -------------------- -----------   -------- ----------- ----------
kct_volume /kct_volume/aaa.xlsx  kct_cifs_lif1  cifs    share-level 10.1.1.2
                Sharelock Mode: read-deny_delete
                                                         op-lock   10.1.1.2
                Oplock Level: batch
2 entries were displayed.

示例:

::> vserver lock show -vserver svm1 -volume vol1 -path /vol1/folder1/file1.xml

Vserver: svm1
Volume   Object Path                     LIF    Protocol  Lock Type   Client
-------- -------------------------  ----------- --------- ----------- ----------
vol1     /vol1/folder1/file1.xml         lif1     cifs     op-lock    10.xx.xx.xx
     Oplock Level: null
     share-level 10.xx.xx.xx
     Sharelock Mode: read_write-deny_write_delete

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.

 

  • 这篇文章对您有帮助吗?