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)
13531정성태1/16/20242612닷넷: 2204. C# - TCP KeepAlive에 새로 추가된 Retry 옵션파일 다운로드1
13530정성태1/15/20242359닷넷: 2203. C# - Python과의 AES 암호화 연동파일 다운로드1
13529정성태1/15/20242352닷넷: 2202. C# - PublishAot의 glibc에 대한 정적 링킹하는 방법
13528정성태1/14/20242502Linux: 68. busybox 컨테이너에서 실행 가능한 C++, Go 프로그램 빌드
13527정성태1/14/20242366오류 유형: 892. Visual Studio - Failed to launch debug adapter. Additional information may be available in the output window.
13526정성태1/14/20242468닷넷: 2201. C# - Facebook 연동 / 사용자 탈퇴 처리 방법
13525정성태1/13/20242352오류 유형: 891. Visual Studio - Web Application을 실행하지 못하는 IISExpress
13524정성태1/12/20242403오류 유형: 890. 한국투자증권 KIS Developers OpenAPI - GW라우팅 중 오류가 발생했습니다.
13523정성태1/12/20242205오류 유형: 889. Visual Studio - error : A project with that name is already opened in the solution.
13522정성태1/11/20242422닷넷: 2200. C# - HttpClient.PostAsJsonAsync 호출 시 "Transfer-Encoding: chunked" 대신 "Content-Length" 헤더 처리
13521정성태1/11/20242525닷넷: 2199. C# - 한국투자증권 KIS Developers OpenAPI의 WebSocket Ping, Pong 처리
13520정성태1/10/20242294오류 유형: 888. C# - Unable to resolve service for type 'Microsoft.Extensions.ObjectPool.ObjectPool`....'
13519정성태1/10/20242261닷넷: 2198. C# - Reflection을 이용한 ClientWebSocket의 Ping 호출파일 다운로드1
13518정성태1/9/20242507닷넷: 2197. C# - ClientWebSocket의 Ping, Pong 처리
13517정성태1/8/20242343스크립트: 63. Python - 공개 패키지를 이용한 위성 이미지 생성 (pystac_client, odc.stac)
13516정성태1/7/20242424닷넷: 2196. IIS - AppPool의 "Disable Overlapped Recycle" 옵션의 부작용
13515정성태1/6/20242785닷넷: 2195. async 메서드 내에서 C# 7의 discard 구문 활용 사례 [1]
13514정성태1/5/20242446개발 환경 구성: 702. IIS - AppPool의 "Disable Overlapped Recycle" 옵션
13513정성태1/5/20242383닷넷: 2194. C# - WebActivatorEx / System.Web의 PreApplicationStartMethod 특성
13512정성태1/4/20242343개발 환경 구성: 701. IIS - w3wp.exe 프로세스의 ASP.NET 런타임을 항상 Warmup 모드로 유지하는 preload Enabled 설정
13511정성태1/4/20242334닷넷: 2193. C# - ASP.NET Web Application + OpenAPI(Swashbuckle) 스펙 제공
13510정성태1/3/20242230닷넷: 2192. C# - 특정 실행 파일이 있는지 확인하는 방법 (Linux)
13509정성태1/3/20242373오류 유형: 887. .NET Core 2 이하의 프로젝트에서 System.Runtime.CompilerServices.Unsafe doesn't support netcoreapp2.0.
13508정성태1/3/20242412오류 유형: 886. ORA-28000: the account is locked
13507정성태1/2/20243153닷넷: 2191. C# - IPGlobalProperties를 이용해 netstat처럼 사용 중인 Socket 목록 구하는 방법파일 다운로드1
13506정성태12/29/20232668닷넷: 2190. C# - 닷넷 코어/5+에서 달라지는 System.Text.Encoding 지원
1  2  3  4  [5]  6  7  8  9  10  11  12  13  14  15  ...