可以检查哪些日志以查看Cloud Sync 传输的文件/目录?
适用场景
Cloud Sync
问题解答
下载数据库记录、并检查"relationships.log
"文件、其中包含所有文件/目录详细信息、这些详细信息由Cloud Sync 数据存储器成功或失败传输。
注意:从relationship.log手动提取所有文件/目录详细信息并不容易、因为可能涉及多个数据代理、而且日志文件也不容易提取和读取。
追加信息
以下是读取关系日志的示例:
[2022-10-10T21:16:18.151] [INFO] [TRANSFERRER] [1] [16603] [62c534af57663c84375dbc20] STARTING copy from: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_src"}} to: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_trg"}} entry: {"path":"test","type":"DIRECTORY","size":0,"mode":16822,"uid":0,"gid":0,"mtimeSec":1660029145,"creationTimeSec":1660029132,"cifsAcl":"ACL:Everyone@WORLD AUTHORITY:ALLOWED/I/FULL,ACL:Everyone@WORLD AUTHORITY:ALLOWED/OI|CI|IO|I/","tempEntryName":".test_i0zhzAN_netapp"}
[2022-10-10T21:16:18.179] [INFO] [TRANSFERRER] [1] [16603] [62c534af57663c84375dbc20] COMPLETED copy from: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-001-4a4f-9641-4a4cbac16eee_src"}} to: {"local":{"path":"mnt/62c534af57663c84375dbc20/d7b2f827-00e1-4a4f-9641-4a4cbac16eee_trg"}} entry: {"path":"test","type":"DIRECTORY","size":0,"mode":16822,"uid":0,"gid":0,"mtimeSec":1660029145,"creationTimeSec":1660029132,"cifsAcl":"ACL:Everyone@WORLD AUTHORITY:ALLOWED/I/FULL,ACL:Everyone@WORLD AUTHORITY:ALLOWED/OI|CI|IO|I/","tempEntryName":".test_i0zhzAN_netapp"} took: 27
注:
62c534af57663c84375dbc20
->关系IDpath
->是复制的文件/目录的路径。STARTING
->表示已启动此文件/目录的副本COMPLETED
->表示此文件/目录的副本已成功完成took ->
指示将文件复制到目标所用的时间(以毫秒为单位)