xcp smb sync命令会删除目标上的所有文件和文件夹
适用场景
- NetApp XCP SMB
- SMB
问题描述
xcp sync
当命令运行时,它会删除目标上的所有文件,并可能将其替换为0KB文件。- 源:\\10.216.41.177\c$\src\tuabldgd\bay19

- 在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

- 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...
- 同步后、目标中的所有数据都将被删除

- 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...