복원된 파일 경로가 MAX_PATH(Maximum Path Length Limitation)을 초과하면 Windows VMware FLR(File Level Restore)이 실패함

Den här artikeln gäller för Den här artikeln gäller inte för Den här artikeln är inte kopplad till någon specifik produkt. Alla produktversioner identifieras inte i den här artikeln.

Symptom



깊은 재귀로 인해 특정 디렉토리 경로에서 파일 레벨 복원 작업이 실패합니다.      FLR 로그에는 일반 오류 로그가 표시됩니다 

 
--------------------------------------------------------------------------------------------------------
-----  START avvmwfile log <timestamp> UTC  [18.2.100-134 Linux-x86_64]
--------------------------------------------------------------------------------------------------------

<timestamp> avvmwfile Info <5008>: Logging to /usr/local/avamarclient/var/MOD-1565970042058-<cid>-3019-vmwfilew.log
<timestamp> avvmwfile Info <5174>: - Reading /usr/local/avamarclient/var/avvmwfile.cmd
<timestamp> avvmwfile Info <5174>: - Reading /usr/local/avamarclient/var/avvmwfileAll.cmd
<timestamp> avvmwfile Info <6673>: CTL listening on port 34258
<timestamp> avvmwfile Info <10684>: Setting ctl message version to 3 (from 1)
<timestamp> avvmwfile Info <16136>: Setting ctl max message size to 268435456
<timestamp> avvmwfile Info <5174>: - Reading /usr/local/avamarclient/var/avvmwfile.cmd
<timestamp> avvmwfile Info <5174>: - Reading /usr/local/avamarclient/var/avvmwfileAll.cmd
<timestamp> avvmwfile Info <19660>: targetlist contains <dir backup="true" date="1969-01-01 00:00:00" internal="0" group="unknown" protection="drwx------" name="C:/DFS_Shares/Users/Bob" size="65536" saveas="C:/DFS_Shares/users/restore" user="unknown" />

<timestamp> avvmwfile Error <0000>: Failed to restore files via network, check proxy log for details
<timestamp>  avvmwfile Error <0000>: assist_restore error. ret: 157

--------------------------------------------------------------------------------------------------------
----- END avvmwfile log <timestamp> UTC  (0 warnings, 2 errors, 0 fatal errors)
--------------------------------------------------------------------------------------------------------

 

Orsak

가상 머신 내에서 Microsoft Windows는 매우 깊은 파일 트리 구조를 가진 DFS(분산 파일 시스템) 로 구성됩니다. 

원래 위치 복원 옵션으로 복원할 때 프록시에서 FLR 스크립트 로그(/usr/local/avamarclient/bin/logs/flr*.err)에 다음이 표시됩니다.
 
>file name: file1.txt
>file name: files2 
>file name: <long-file>-example.txt
>fail to create file  C:\DFS_Shares\users\restore\folder1\folder2\folder3\....< file length bigger than 260 characters>-example.txt  error code:2

문제: 최대 경로 길이 제한(MAX_PATH)을 초과했습니다.  기본적으로 이 제한은 260자이며, 저장 위치와 파일 이름 경로의 조합이 260자를


초과하는 경우 복원 파일 생성 문제가 발생합니다. 자세한 내용은 이 Microsoft 페이지에서 확인할 수 있습니다. https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

"Windows API(다음 단락에서 설명하는 몇 가지 예외 포함)에서 경로의 최대 길이는 MAX_PATH이며 260자로 정의됩니다.
로컬 경로는 드라이브 문자, 콜론, 백슬래시, 백슬래시로 구분되는 이름 구성 요소 및 종료 null 문자의 순서로 구성됩니다."

Upplösning


1. 최신 Windows 운영 체제(Windows 10 버전 1607 이상)에서는 긴 경로 사용을 사용하도록 설정합니다.     
다음 Microsoft KB에는 지침이 있습니다. https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

또는

2. 원래 위치로 복원하는 대신 단축 디렉토리 경로로 리디렉션 복원을 수행합니다. 
예: c:\restore\는 전체 파일 경로를 줄입니다.  

Berörda produkter

Avamar

Produkter

Avamar, Avamar Client for VMware
Artikelegenskaper
Artikelnummer: 000053607
Artikeltyp: Solution
Senast ändrad: 09 okt. 2024
Version:  3
Få svar på dina frågor från andra Dell-användare
Supporttjänster
Kontrollera om din enhet omfattas av supporttjänster.