Skip to main content
NetApp Knowledge Base

XCP SMB sync command deletes all files and folders on target

Views:
118
Visibility:
Public
Votes:
0
Category:
netapp-xcp
Specialty:
nas
Last Updated:

Applies to

  • NetApp XCP SMB
  • SMB

Issue

When xcp sync command is run , it deletes all the files on target and may replace them with 0KB files.
 
Lab Example
 
  • SRC : \\10.216.41.177\c$\src\tuabldgd\bay19
XCP SMB sync command deletes all files and folders on target
  • After XCP COPY 
C:\NetApp\Latest xcp19\xcp\windows>xcp.exe copy -root -acl -fallback-user administrator -fallback-group "domain admins" \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt
XCP SMB 1.9.1; (c) 2023 NetApp, Inc.; Licensed to Vijay Ramamurthy [NetApp Inc] until Sun May 21 04:34:40 2023
16 scanned, 0 matched, 0 skipped, 12 copied, 61.0MiB (11.5MiB/s), 0 errors, 5s, 14 acls copied
xcp.exe copy -root -acl -fallback-user administrator -fallback-group domain admins \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt
16 scanned, 0 matched, 0 skipped, 15 copied, 118MiB (15.3MiB/s), 0 errors, 16 acls copied
Total Time : 7s
STATUS : PASSED
Sending statistics...
 
  • TGT : \\10.216.41.177\c$\tgt
XCP SMB sync command deletes all files and folders on target
 
  • After XCP SYNC :
C:\NetApp\Latest xcp19\xcp\windows>xcp.exe sync -root -acl -fallback-user administrator -fallback-group "domain admins" \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt
XCP SMB 1.9.1; (c) 2023 NetApp, Inc.; Licensed to Vijay Ramamurthy [NetApp Inc] until Sun May 21 04:34:40 2023
Root folder skipped: "". Administrative Share was used.
failed to remove from target "": [Errno 13] A device attached to the system is not functioning: '\\\\?\\UNC\\10.216.41.177\\c$\\tgt'
xcp.exe sync -root -acl -fallback-user administrator -fallback-group domain admins \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt
32 scanned, 0 copied, 31 compared, 0 skipped, 0 removed, 1 errors, 0 acls copied
Total Time : 1s
STATUS : FAILED
Sending statistics...
 
  • All data is deleted in Target after sync
 
XCP SMB sync command deletes all files and folders on target
  • XCP Verify fails and shows that junction-path is used 

C:\NetApp\Latest xcp19\xcp\windows>xcp verify -ll \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt -noatime -nomtime -noctime
XCP SMB 1.9.1; (c) 2023 NetApp, Inc.; Licensed to Vijay Ramamurthy [NetApp Inc] until Sun May 21 04:34:40 2023
LDAPS.cer: Changed (file missing)
ChromeSetup.exe: Changed (file missing)
folder3: Changed (file missing)
folder1\NTAPshark-win64-3.0.4-preben-20190913.exe: Changed (file missing)
folder1\ChromeSetup.exe: Changed (file missing)
folder1: Changed (file missing)
folder2\folder1\NTAPshark-win64-3.0.4-preben-20190913.exe: Changed (file missing)
folder2\folder1\ChromeSetup.exe: Changed (file missing)
folder2\folder1: Changed (file missing)
folder2: Changed (file missing)
folder5\sample.txt: Changed (file missing)
folder5\.test1.txt.swp: Changed (file missing)
folder5\.test1.txt.swo: Changed (file missing)
folder5\test.txt: Changed (file missing)
folder5: Changed (file missing)
<root>: Changed (type, reparse_point, ownership)
  type
    - directory
    + junction
  ownership
    - BUILTIN\Administrators
    + NASLAB\administrator
  file attributes (+1)
    + REPARSE_POINT
xcp verify -ll \\10.216.41.177\c$\src\tuabldgd\bay19 \\10.216.41.177\c$\tgt -noatime -nomtime -noctime
17 scanned, 16 compared, 0 same, 1 different, 15 missing, 0 errors
Total Time : 4s
STATUS : FAILED
Sending statistics...

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.