Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

윈도우 서버 백업 - Hyper-V 가상 머신이 백업되지 않는 경우

윈도우 서버 백업(wbadmin) 관리도구에서 마지막 백업 작업이 느낌표로 떴길래 확인해 보니 다음과 같이 VM 하나가 백업 과정에서 실패한 결과를 보이고 있습니다.

Writer Failures
Writer Id: {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}
Instance Id: {86A24888-3A6D-4F81-A3A9-955863C02862}
Writer Name: Microsoft Hyper-V VSS Writer
Writer State: 5
Failure Result: 80042336
Application Result: 80004005
Application Message: (null)
   Component: FD4BB964-2A7F-57EB-A692-54E56A798257
   Logical Path: (null)
   Component Result: 800423F4
   Component Message: Could not create backup checkpoint for virtual machine '...': The shadow copy provider had an unexpected error while trying to process the specified operation. (0x8004230F). (Virtual machine ID FD4BB964-2A7F-57EB-A692-54E56A798257)
       File Spec: D:\...\Virtual Machines\\FD4BB964-5A7F-47EB-A692-54E56A798257.xml Recursive: 0
       File Spec: D:\...\\ddrive.vhdx Recursive: 0
       File Spec: D:\....vhdx Recursive: 0
       File Spec: D:\....vhdx Recursive: 0
       File Spec: D:\...\Snapshots\\FD4BB964-2A7F-57EB-A692-54E56A798257-BackupSnapshot.xml Recursive: 0
       File Spec: D:\...\\ddrive-AutoRecovery.avhdx Recursive: 0
       File Spec: D:\...-AutoRecovery.avhdx Recursive: 0
       File Spec: D:\...-AutoRecovery.avhdx Recursive: 0
*-----------------------------*


Application backup
Writer Id: {66841CD4-6DED-5F4B-8F17-FD23F8DDC3DE}
   Component: FD4BB964-2A7F-57EB-A692-54E56A798257
   Caption     : Online\...
   Logical Path: 
   Error           : 80780175
   Error Message   : Component was skipped from volume shadow copy.

   Detailed Error  : 800423F4
   Detailed Error Message : The writer experienced a non-transient error.  If the backup process is retried,
the error is likely to reoccur

해당 VM에 로그인 해서 vssadmin 명령을 실행하면 Failed 상태의 VSS Writer 들이 있습니다.

C:\Windows\system32>vssadmin list writers
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Waiting for responses.
These may be delayed if a shadow copy is being prepared.

Writer name: 'Task Scheduler Writer'
   Writer Id: {d61d61c8-d73a-4eee-8cdd-f6f9786b7124}
   Writer Instance Id: {1bddd48e-5052-49db-9b07-b96f96727e6b}
   State: [1] Stable
   Last error: No error

Writer name: 'VSS Metadata Store Writer'
   Writer Id: {75dfb225-e2e4-4d39-9ac9-ffaff65ddf06}
   Writer Instance Id: {088e7a7d-09a8-4cc6-a609-ad90e75ddc93}
   State: [1] Stable
   Last error: No error

Writer name: 'Performance Counters Writer'
   Writer Id: {0bada1de-01a9-4625-8278-69e735f39dd2}
   Writer Instance Id: {f0086dda-9efc-47c5-8eb6-a944c3d09381}
   State: [1] Stable
   Last error: No error

Writer name: 'System Writer'
   Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
   Writer Instance Id: {0ef4f237-484a-4cb9-98ae-d26968739abd}
   State: [10] Failed
   Last error: Timed out

Writer name: 'ASR Writer'
   Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
   Writer Instance Id: {6c962330-ded8-4df8-b9bf-5515fc87dc3d}
   State: [10] Failed
   Last error: Timed out

Writer name: 'IIS Config Writer'
   Writer Id: {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
   Writer Instance Id: {c758a808-113e-49fa-a736-1dbcc2329f5d}
   State: [10] Failed
   Last error: Timed out

Writer name: 'Registry Writer'
   Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
   Writer Instance Id: {76bd1a4e-566c-4bbf-b69e-b9b99777c5cf}
   State: [10] Failed
   Last error: Timed out

Writer name: 'Shadow Copy Optimization Writer'
   Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
   Writer Instance Id: {89c9eac4-862c-4dc8-8ee4-738fa877376a}
   State: [10] Failed
   Last error: Timed out

Writer name: 'WMI Writer'
   Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
   Writer Instance Id: {9c71fb36-6727-4c8b-a80b-7045ab355e48}
   State: [10] Failed
   Last error: Timed out

Writer name: 'COM+ REGDB Writer'
   Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
   Writer Instance Id: {c73dc37a-3e42-4db9-97cf-19eaaf7bd7cc}
   State: [10] Failed
   Last error: Timed out


검색해 보니 다음의 글이 나오는데요.

vssadmin list writers shows errors -> Windows Backup fails
; http://social.technet.microsoft.com/Forums/windowsserver/en-US/81b004bc-068c-4d13-aebb-d9477188fa9d/vssadmin-list-writers-shows-errors-windows-backup-fails?forum=winserverfiles

오호~~~ 실패한 VSS Writer와 연관된 서비스를 재시작하라는 것입니다. 그래서 가장 위에 있는 "System Writer"에 대해 "Cryptographic Services"를 재시작했더니 2개만 남고 해결되었습니다.

나머지 2개 중에서 "WMI Writer"의 경우 "Windows Management Instrumentation" 서비스를 재시작했더니 해결되었습니다.

그런데, 마지막까지 실패로 표시되어 있던 "IIS Config Writer"는 다릅니다. 얼핏 이름에서 "IIS"와 관련있는 듯 싶어 iisreset을 해도 해결되지 않았는데요. 다음의 글에서 그 해답을 발견할 수 있었습니다.

Documentation on restarting NPS and IIS Config writers in failed state  
; http://social.technet.microsoft.com/Forums/windowsserver/en-US/65bc3fe7-4a0f-4c1d-ad37-004dbb9cd5e2/documentation-on-restarting-nps-and-iis-config-writers-in-failed-state?forum=windowsbackup

위의 글에 정리된 표를 보면 대응 관계가 이렇습니다.

Writer Service Name Service Display Name
ASR Writer VSS Volume Shadow Copy
BITS Writer BITS Background Intelligent Transfer Service
COM+ REGDB Writer VSS Volume Shadow Copy
IIS Config Writer AppHostSvc Application Host Helper Service
IIS Metabase Writer IISADMIN IIS Admin Service
Microsoft Exchange Writer MSExchangeIS Microsoft Exchange Information Store
Microsoft Hyper-V VSS Writer vmms Hyper-V Virtual Machine Management
Registry Writer VSS Volume Shadow Copy
Shadow Copy Optimization Writer VSS Volume Shadow Copy
System Writer CryptSvc Cryptographic Services
WMI Writer Winmgmt Windows Management Instrumentation

따라서, "Application Host Helper Service" 서비스를 재시작하고 나니 "IIS Config Writer"까지 모두 "Stable" 상태로 바뀌었습니다. 물론, 이 상태에서 다시 윈도우 서버 백업을 실행하니 정상적으로 처리가 되었습니다.

그러나 문제는? 애당초 VSS Writer들이 왜 이런 상태로 빠졌는지 알 수 없다는 것!




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 11/19/2013]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13629정성태5/18/2024208개발 환경 구성: 710. Android - adb.exe를 이용한 파일 전송
13628정성태5/17/2024227개발 환경 구성: 709. Windows - WHPX(Windows Hypervisor Platform)를 이용한 Android Emulator 가속
13627정성태5/17/2024224오류 유형: 903. 파이썬 - UnicodeEncodeError: 'ascii' codec can't encode character '...' in position ...: ordinal not in range(128)
13626정성태5/15/2024291Phone: 15. C# MAUI - MediaElement Source 경로 지정 방법파일 다운로드1
13625정성태5/14/2024644닷넷: 2262. C# - Exception Filter 조건(when)을 갖는 catch 절의 IL 구조
13624정성태5/12/2024805Phone: 14. C# - MAUI에서 MediaElement 사용파일 다운로드1
13623정성태5/11/2024947닷넷: 2261. C# - 구글 OAuth의 JWT (JSON Web Tokens) 해석파일 다운로드1
13622정성태5/10/20241000닷넷: 2260. C# - Google 로그인 연동 (ASP.NET 예제)파일 다운로드1
13621정성태5/10/2024922오류 유형: 902. IISExpress - Failed to register URL "..." for site "..." application "/". Error description: Cannot create a file when that file already exists. (0x800700b7)
13620정성태5/9/20241030VS.NET IDE: 190. Visual Studio가 node.exe를 경유해 Edge.exe를 띄우는 경우
13619정성태5/7/2024987닷넷: 2259. C# - decimal 저장소의 비트 구조파일 다운로드1
13618정성태5/6/20241104닷넷: 2258. C# - double (배정도 실수) 저장소의 비트 구조파일 다운로드1
13617정성태5/5/20241051닷넷: 2257. C# - float (단정도 실수) 저장소의 비트 구조파일 다운로드1
13616정성태5/3/2024991닷넷: 2256. ASP.NET Core 웹 사이트의 HTTP/HTTPS + Dual mode Socket (IPv4/IPv6) 지원 방법파일 다운로드1
13615정성태5/3/2024949닷넷: 2255. C# 배열을 Numpy ndarray 배열과 상호 변환
13614정성태5/2/2024876닷넷: 2254. C# - COM 인터페이스의 상속 시 중복으로 메서드를 선언
13613정성태5/1/2024915닷넷: 2253. C# - Video Capture 장치(Camera) 열거 및 지원 포맷 조회파일 다운로드1
13612정성태4/30/2024934오류 유형: 902. Visual Studio - error MSB3021: Unable to copy file
13611정성태4/29/2024938닷넷: 2252. C# - GUID 타입 전용의 UnmanagedType.LPStruct - 두 번째 이야기파일 다운로드1
13610정성태4/28/20241008닷넷: 2251. C# - 제네릭 인자를 가진 타입을 생성하는 방법 - 두 번째 이야기
13609정성태4/27/20241048닷넷: 2250. PInvoke 호출 시 참조 타입(class)을 마샬링하는 [IN], [OUT] 특성파일 다운로드1
13608정성태4/26/20241119닷넷: 2249. C# - 부모의 필드/프로퍼티에 대해 서로 다른 자식 클래스 간에 Reflection 접근이 동작할까요?파일 다운로드1
13607정성태4/25/20241136닷넷: 2248. C# - 인터페이스 타입의 다중 포인터를 인자로 갖는 C/C++ 함수 연동
13606정성태4/24/20241081닷넷: 2247. C# - tensorflow 연동 (MNIST 예제)파일 다운로드1
13605정성태4/23/20241111닷넷: 2246. C# - Python.NET을 이용한 파이썬 소스코드 연동파일 다운로드1
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...