Cloud Sync 无法复制 CIFS 长名称后缀为空格( " " )和 / 或点( "." )的文件
适用场景
- Cloud Sync
- ONTAP 9
- ONTAP SMB 目标
问题描述
- 对于 SMB 目标, Cloud Sync 无法复制 CIFS 长名称后缀为空格( " " )和 / 或点( "." )的文件
- Cloud Sync 将复制失败原因显示为 "
ENOENT: no such file or directory"
- 失败日志:
- 数据代理失败的日志指示 Cloud Sync 复制了以 ( "." )开头的临时名称的文件 然后,尝试将文件重命名为原始文件,并在末尾添加尾随空格和 / 或点
- 此重命名操作失败,并显示错误 "
ENOENT: no such file or directory"
[2021-09-29T18:16:09.184] [INFO] [TRANSFERRER] [1] [13473] [614af5db716b8e33fcf50c66] [COPY] FAILED: source { nfs: { host: '10.216.41.102', export: '/test_vol1', version: '3', path: 'new1', provider: 'nfs' } } target: { cifs: { host: '10.216.41.102', share: '/ntfs_vol', version: '2.1', provider: 'cifs' } } entry: { path: 'file_with_dot.', type: 'FILE', size: 0, mode: 33188, uid: 0, gid: 0, mtimeSec: 1632919545, tempEntryName: '.file_with_dot._mdd7F6n_netapp' } [Error: ENOENT: no such file or directory, rename 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/.file_with_dot._mdd7F6n_netapp' -> 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/file_with_dot.'] { errno: -2, code: 'ENOENT', syscall: 'rename', path: 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/.file_with_dot._mdd7F6n_netapp', dest: 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/file_with_dot.' }
[2021-09-29T18:16:09.184] [INFO] [TRANSFERRER] [1] [13473] [614af5db716b8e33fcf50c66] [COPY] FAILED: source { nfs: { host: '10.216.41.102', export: '/test_vol1', version: '3', path: 'new1', provider: 'nfs' } } target: { cifs: { host: '10.216.41.102', share: '/ntfs_vol', version: '2.1', provider: 'cifs' } } entry: { path: 'file_with_space ', type: 'FILE', size: 0, mode: 33188, uid: 0, gid: 0, mtimeSec: 1632919531, tempEntryName: '.file_with_space _RHHW0FJ_netapp' } [Error: ENOENT: no such file or directory, rename 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/.file_with_space _RHHW0FJ_netapp' -> 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/file_with_space '] { errno: -2, code: 'ENOENT', syscall: 'rename', path: 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/.file_with_space _RHHW0FJ_netapp', dest: 'mnt/614af5db716b8e33fcf50c66/03bce881-4a19-4e0f-89f7-5142e508158d_trg/file_with_space ' }
- 数据包跟踪:
- 数据包跟踪显示临时文件创建成功,但 Cloud Sync 尝试将其重命名为原始文件时失败,并显示错误
Error: STATUS_OBJECT_NAME_INVALID
- 数据包跟踪显示临时文件创建成功,但 Cloud Sync 尝试将其重命名为原始文件时失败,并显示错误
614 2021-09-29 18:16:09 10.216.41.22 10.216.41.102 SMB2 SetInfo Request FILE_INFO/SMB2_FILE_RENAME_INFO File: .file_with_dot._mdd7F6n_netapp NewName:file_with_dot.
615 2021-09-29 18:16:09 10.216.41.102 10.216.41.22 SMB2 SetInfo Response, Error: STATUS_OBJECT_NAME_INVALID
622 2021-09-29 18:16:09 10.216.41.22 10.216.41.102 SMB2 SetInfo Request FILE_INFO/SMB2_FILE_RENAME_INFO File: .file_with_space _RHHW0FJ_netapp NewName:file_with_space
623 2021-09-29 18:16:09 10.216.41.102 10.216.41.22 SMB2 SetInfo Response, Error: STATUS_OBJECT_NAME_INVALID