跳转到主内容

Cloud Sync 无法复制 CIFS 长名称后缀为空格( " " )和 / 或点( "." )的文件

Views:
6
Visibility:
Public
Votes:
0
Category:
cloud-sync
Specialty:
cifs
Last Updated:

适用场景

  • Cloud Sync
  • ONTAP 9
  • ONTAP SMB 目标

问题描述

  • 对于 SMB 目标, Cloud Sync 无法复制 CIFS 长名称后缀为空格( " " )和 / 或点( "." )的文件 
  • Cloud Sync 将复制失败原因显示为 "ENOENT: no such file or directory"
clipboard_ecc0b1364030ea4297a9ab851da4327bf.png
 
  • 失败日志:
    • 数据代理失败的日志指示 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
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

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.