メインコンテンツまでスキップ

Cloud Sync で、長い CIFS 名の末尾に空白文字( ' ' )またはドット( ' ' ' ' ' )が含まれているファイルのコピーに失敗しました

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

環境

  • Cloud Sync
  • ONTAP 9
  • ONTAP SMB ターゲット

問題

  • SMB ターゲットで、 Cloud Sync の長い名前で末尾に空白文字( ' ' )またはドット( ' ' ' ' 。 ' )が含まれているファイルのコピーに失敗します 
  • 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.