跳转到主内容

xcp smb sync命令会删除目标上的所有文件和文件夹

Views:
7
Visibility:
Public
Votes:
0
Category:
netapp-xcp<a>2009524118</a>
Specialty:
nas
Last Updated:

适用场景

  • NetApp XCP SMB
  • SMB

问题描述

xcp sync 当命令运行时,它会删除目标上的所有文件,并可能将其替换为0KB文件。
 
实验室示例
 
  • 源:\\10.216.41.177\c$\src\tuabldgd\bay19
clipboard_e1c60781e47b0233956ba1e0bf5f557d5.png
  • 在XCP副本之后 
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
clipboard_e2972ad8d3701e0a2d6d7381a4598c232.png
 
  • XCP同步后:
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...
 
  • 同步后、目标中的所有数据都将被删除
 
clipboard_e1430fc2806da3dbc45d0f2b740fac6e6.png
  • XCP验证失败、并显示正在使用接合路径 

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.