无法从 SnapMirror 副本中删除文件夹(报告为符号链接)
适用场景
- ONTAP 9
- SnapMirror
- CIFS
问题描述
- 在从一个系统创建 SnapMirror 卷之后,
dst\subjunction pathreparse point无法删除目标卷中嵌套卷的文件夹(())
::> volume show -vserversvm0 -volume src,sub,dst -fields security-style,unix-permissions,junction-path-source,type,junction-path
vserver volume security-style unix-permissions junction-path junction-path-source type
------- ------ -------------- ---------------- ------------- -------------------- ----
svm0 dst ntfs ------------ /dst RW_volume RW
svm0 src ntfs ------------ /src RW_volume RW
svm0 sub ntfs ------------ /src/sub RW_volume RW
::> vserver security file-directory show -vserver svm0 /dst/sub
Vserver: svm0
File Path: /dst/sub
File Inode Number: 97
Security Style: ntfs
Effective Style: unix
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
UNIX User Id: 0
UNIX Group Id: 0
UNIX Mode Bits: 777
UNIX Mode Bits in Text: rwxrwxrwx
ACLs: -
- dst\sub 文件夹的不同视图(
junction path(reparse point))
Total Command人 (将报告为 LNK )

Windows 资源管理器(将报告为快捷方式)

命令提示符(将报告为接合)

数据包跟踪
No. Time Protocol smb2.filename smb2.reparse_tag Info
x x SMB2 Find Request SMB2_FIND_ID_BOTH_DIRECTORY_INFO Pattern: sub
x x SMB2 sub REPARSE_TAG_MOUNT_POINT Create Response File: ;Find Response
- 尝试访问 \ modify (权限 / 所有权) \ delete 时出现 Microsoft Windows 错误消息
dst\sub
Windows cannot access \\svm0\nsroot\dst\sub.
You do not have permission to access \\svm0\nsroot\dst\sub.
Object name: \\svm0\nsroot\dst\sub. You must have Read permissions to view the properties of this object.
An error occurred while applying security information to: \\svm0\nsroot\dst\sub. Failed to enumerate objects in the container. Unable to set owner. Access is denied.
Folder name: \\svm0\nsroot\dst\sub. Folder access denied. You need permission to perform this action.
- 尝试获取的所有权时出现 ONTAP 错误消息
dst\sub
Security can be applied only on a file/directory