Skip to main content
NetApp Knowledge Base

Unable to delete a folder (reported as symlink, from a snapmirror copy)

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

Applies to

  • ONTAP 9
  • SnapMirror
  • CIFS

Issue

  • After creating a SnapMirror volume from one system to an another, the folder dst\sub (junction path (reparse point)) of a nested volume in the destination volume can not be deleted

::> volume show -vserver svm0 -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: -

  • Different views of the folder dst\sub (junction path (reparse point))

Total Commander (will report it is a LNK)

ONTAP 9

Windows Explorer (will report it as a shortcut)

ONTAP 9

Command Prompt (will report it is as a junction)

ONTAP 9

Packet Trace

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

 

  • Microsoft Windows error messages when trying to access \ modify (permission/ownership) \ delete 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 error messages when trying to take ownership of dst\sub

Security can be applied only on a file/directory

 

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.