由于CIFS锁定、访问NTFS卷时、NFS客户端出现间歇性获取权限被拒绝错误
适用场景
- ONTAP 9及更高版本
- CIFS锁定
- NFS
问题描述
- 重命名NTFS卷上的目录/文件时、在Unix服务器上出现间歇性权限被拒绝错误。
- 在 sectrace中,注意到以下错误:
vs1 1 Security Style: NTFS and Access is allowed because
NT ACL explicit ACE grants requested
access. Access is denied. The
requested permissions are not
granted by the ACE while
checking parent's modebits
during delete. Access is not
granted for: "Execute",
"Write"
Protocol: nfs
Volume: vol1
Share: -
Path: /dir1/dir2/dir3/dir4
Win-User: -
UNIX-User: 12345
Session-ID: -
- packet trace show重命名操作失败、并显示access denied错误。
- 文件/目录已 由CIFS客户端打开、并且客户端对其设置了共享锁定:
::>vserver locks show -vserver vs1 -path /vol1/dir1/dir2/dir3/dir4/file -instance
Notice: Using this command can impact system performance. It is recommended
that you specify both the vserver and the volume when issuing this command to
minimize the scope of the command's operation. To abort the command, press Ctrl-C.
Vserver: vs1
Volume: vol1
Logical Interface: data_lif1
Object Path: /vol1/dir1/dir2/dir3/dir4/file
Lock State: granted
Shared Lock Access Mode: read-deny_none
Shared Lock is Soft: false
Client Address: 10.1.2.3
Client Address Type: ipv4