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)
13618정성태5/6/2024190닷넷: 2258. C# - double (배정도 실수) 저장소의 비트 구조파일 다운로드1
13617정성태5/5/2024340닷넷: 2257. C# - float (단정도 실수) 저장소의 비트 구조파일 다운로드1
13616정성태5/3/2024351닷넷: 2256. ASP.NET Core 웹 사이트의 HTTP/HTTPS + Dual mode Socket (IPv4/IPv6) 지원 방법파일 다운로드1
13615정성태5/3/2024300닷넷: 2255. C# 배열을 Numpy ndarray 배열과 상호 변환
13614정성태5/2/2024416닷넷: 2254. C# - COM 인터페이스의 상속 시 중복으로 메서드를 선언
13613정성태5/1/2024655닷넷: 2253. C# - Video Capture 장치(Camera) 열거 및 지원 포맷 조회파일 다운로드1
13612정성태4/30/2024733오류 유형: 902. Visual Studio - error MSB3021: Unable to copy file
13611정성태4/29/2024822닷넷: 2252. C# - GUID 타입 전용의 UnmanagedType.LPStruct - 두 번째 이야기파일 다운로드1
13610정성태4/28/2024891닷넷: 2251. C# - 제네릭 인자를 가진 타입을 생성하는 방법 - 두 번째 이야기
13609정성태4/27/2024961닷넷: 2250. PInvoke 호출 시 참조 타입(class)을 마샬링하는 [IN], [OUT] 특성파일 다운로드1
13608정성태4/26/20241044닷넷: 2249. C# - 부모의 필드/프로퍼티에 대해 서로 다른 자식 클래스 간에 Reflection 접근이 동작할까요?파일 다운로드1
13607정성태4/25/20241060닷넷: 2248. C# - 인터페이스 타입의 다중 포인터를 인자로 갖는 C/C++ 함수 연동
13606정성태4/24/20241006닷넷: 2247. C# - tensorflow 연동 (MNIST 예제)파일 다운로드1
13605정성태4/23/2024985닷넷: 2246. C# - Python.NET을 이용한 파이썬 소스코드 연동파일 다운로드1
13604정성태4/22/2024997오류 유형: 901. Visual Studio - Unable to set the next statement. Set next statement cannot be used in '[Exception]' call stack frames.
13603정성태4/21/20241039닷넷: 2245. C# - IronPython을 이용한 파이썬 소스코드 연동파일 다운로드1
13602정성태4/20/20241017닷넷: 2244. C# - PCM 오디오 데이터를 연속(Streaming) 재생 (Windows Multimedia)파일 다운로드1
13601정성태4/19/20241036닷넷: 2243. C# - PCM 사운드 재생(NAudio)파일 다운로드1
13600정성태4/18/20241082닷넷: 2242. C# - 관리 스레드와 비관리 스레드
13599정성태4/17/2024987닷넷: 2241. C# - WAV 파일의 PCM 사운드 재생(Windows Multimedia)파일 다운로드1
13598정성태4/16/20241037닷넷: 2240. C# - WAV 파일 포맷 + LIST 헤더파일 다운로드2
13597정성태4/15/20241063닷넷: 2239. C# - WAV 파일의 PCM 데이터 생성 및 출력파일 다운로드1
13596정성태4/14/20241140닷넷: 2238. C# - WAV 기본 파일 포맷파일 다운로드1
13595정성태4/13/20241089닷넷: 2237. C# - Audio 장치 열기 (Windows Multimedia, NAudio)파일 다운로드1
13594정성태4/12/20241115닷넷: 2236. C# - Audio 장치 열람 (Windows Multimedia, NAudio)파일 다운로드1
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...