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)
13429정성태10/27/20233253닷넷: 2152. Win32 Interop - C/C++ DLL로부터 이중 포인터 버퍼를 C#으로 받는 예제파일 다운로드1
13428정성태10/25/20233418닷넷: 2151. C# 12 - ref readonly 매개변수
13427정성태10/18/20233602닷넷: 2150. C# 12 - 정적 문맥에서 인스턴스 멤버에 대한 nameof 접근 허용(Allow nameof to always access instance members from static context)
13426정성태10/13/20233681스크립트: 59. 파이썬 - 비동기 호출 함수(run_until_complete, run_in_executor, create_task, run_in_threadpool)
13425정성태10/11/20233484닷넷: 2149. C# - PLinq의 Partitioner<T>를 이용한 사용자 정의 분할파일 다운로드1
13423정성태10/6/20233502스크립트: 58. 파이썬 - async/await 기본 사용법
13422정성태10/5/20233597닷넷: 2148. C# - async 유무에 따른 awaitable 메서드의 병렬 및 예외 처리
13421정성태10/4/20233694닷넷: 2147. C# - 비동기 메서드의 async 예약어 유무에 따른 차이
13420정성태9/26/20236271스크립트: 57. 파이썬 - UnboundLocalError: cannot access local variable '...' where it is not associated with a value
13419정성태9/25/20233421스크립트: 56. 파이썬 - RuntimeError: dictionary changed size during iteration
13418정성태9/25/20234300닷넷: 2146. C# - ConcurrentDictionary 자료 구조의 동기화 방식
13417정성태9/19/20233774닷넷: 2145. C# - 제네릭의 형식 매개변수에 속한 (매개변수를 가진) 생성자를 호출하는 방법
13416정성태9/19/20233468오류 유형: 877. redis-py - MISCONF Redis is configured to save RDB snapshots, ...
13415정성태9/18/20233954닷넷: 2144. C# 12 - 컬렉션 식(Collection Expressions)
13414정성태9/16/20233828디버깅 기술: 193. Windbg - ThreadStatic 필드 값을 조사하는 방법
13413정성태9/14/20234005닷넷: 2143. C# - 시스템 Time Zone 변경 시 이벤트 알림을 받는 방법
13412정성태9/14/20237353닷넷: 2142. C# 12 - 인라인 배열(Inline Arrays) [1]
13411정성태9/12/20233817Windows: 252. 권한 상승 전/후 따로 관리되는 공유 네트워크 드라이브 정보
13410정성태9/11/20235404닷넷: 2141. C# 12 - Interceptor (컴파일 시에 메서드 호출 재작성) [1]
13409정성태9/8/20234159닷넷: 2140. C# - Win32 API를 이용한 모니터 전원 끄기
13408정성태9/5/20234158Windows: 251. 임의로 만든 EXE 파일을 포함한 ZIP 파일의 압축을 해제할 때 Windows Defender에 의해 삭제되는 경우
13407정성태9/4/20233867닷넷: 2139. C# - ParallelEnumerable을 이용한 IEnumerable에 대한 병렬 처리
13406정성태9/4/20233895VS.NET IDE: 186. Visual Studio Community 버전의 라이선스
13405정성태9/3/20234311닷넷: 2138. C# - async 메서드 호출 원칙
13404정성태8/29/20233836오류 유형: 876. Windows - 키보드의 등호(=, Equals sign) 키가 눌리지 않는 경우
13403정성태8/21/20233681오류 유형: 875. The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...