File operation failed with error reporting file is open in another program
Applies to
- ONTAP 9
- CVO
- CIFS/SMB
Issue
- Windows Errors:
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 CLI command
vserver locks show
for affected file indicates lock is applied:
Example:
::> 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.
Example:
::> 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