ファイルにロックがかかっているため、ファイルを削除、名前変更、または変更できません
環境
- 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 Command
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