Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows Server

VSS Writer Failed: การ Re-register VSS Writers บน Windows Server

บทนำ

โซลูชันสำรองข้อมูลส่วนใหญ่สำหรับ Windows ใช้ Volume Shadow Copy Service (VSS) เพื่อสร้าง Backup Copies ของข้อมูล Application หรือ Service ในบางกรณี VSS Service หรือ Writer หนึ่งเริ่มทำงานผิดปกติ ทำให้ Backup ล้มเหลว เคยเจอปัญหานี้บน Exchange, MSSQL และ Hyper-V Servers เพื่อกู้คืน VSS และ Components ให้ทำงานได้เร็วที่สุด ใช้คำแนะนำดังนี้

ตรวจจับ VSS Writer ที่ล้มเหลว

แสดงรายการ VSS Writers ที่ลงทะเบียนในระบบและสถานะด้วยคำสั่ง vssadmin:

vssadmin list writers

ค้นหา Components ที่มีสถานะ Failed สำหรับ Components ที่ทำงานปกติ สถานะจะเป็น: State: [1] Stable

Writer name: 'Microsoft Exchange Writer'
Writer Id: {53da1ac4-4bab-404a-0917-ae23f8aacfb7}
Writer Instance Id: {61b56ab0-9588-432f-ae7b-3233753ffa38}
State: [7] Failed
Last error: Retryable error

ในกรณีนี้ Microsoft Exchange Writer ล้มเหลว (State: [8] Failed) ทำให้ไม่สามารถ Backup Exchange ได้ ปกติแล้วเพื่อแก้สถานะ Component นี้ ก็แค่ Restart Server (ซึ่งไม่ได้ทำได้ตลอดบน Production)

การซ่อมแซม Exchange Writer

ลอง Restart Service ที่เกี่ยวข้อง (ตารางด้านล่างแสดง VSS Writers ทั่วไปและ Windows Services ที่เกี่ยวข้อง) นอกจากหยุด Service แล้ว บางครั้งต้อง Kill Process ของ Service ที่ Hang อยู่ด้วยตนเอง

VSS Writer System Service Name Full Name of Service
IIS Config WriterAppHostSvcApplication Host Helper Service
BITS WriterBITSBackground Intelligent Transfer Service
Certificate AuthorityCertSvcActive Directory Certificate Services
System WriterCryptSvcCryptographic Services
DFS Replication service writerDFSRDFS Replication
DHCP Jet WriterDHCPServerDHCP Server
NPS VSS WriterEventSystemCOM+ Event System
IIS Metabase WriterIISADMINIIS Admin Service
Microsoft Exchange WriterMSExchangeISMicrosoft Exchange Information Store
Microsoft Exchange Replica WriterMSExchangeReplMicrosoft Exchange Replication Service
MSMQ Writer (MSMQ)MSMQMessage Queuing
NTDSNTDSActive Directory Domain Services
FRS WriterNtFrsFile Replication
OSearch VSS WriterOSearchOffice SharePoint Server Search
OSearch14 VSS WriterOSearch14SharePoint Server Search 14
SMS WriterSMS_SITE_VSS_WRITERSMS_SITE_VSS_WRITER
SPSearch VSS WriterSPSearchWindows SharePoint Services Search
SPSearch4 VSS WriterSPSearch4SharePoint Foundation Search V4
SqlServerWriterSQLWriterSQL Server VSS Writer
FSRM writersrmsvcFile Server Resource Manager
TermServLicensingTermServLicensingRemote Desktop Licensing
Microsoft Hyper-V VSS WritervmmsHyper-V Virtual Machine Management
ASR WriterVSSVolume Shadow Copy
COM+ REGDB WriterVSSVolume Shadow Copy
Registry WriterVSSVolume Shadow Copy
Shadow Copy Optimization WriterVSSVolume Shadow Copy
WDS VSS WriterWDSServerWindows Deployment Services Server
WIDWriterWIDWriterWindows Internal Database VSS Writer
WMI WriterWinmgmtWindows Management Instrumentation
WINS Jet WriterWINSWindows Internet Name Service (WINS)
MSSearch Service WriterWSearchWindows Search

รันคำสั่งอีกครั้ง: vssadmin list writers ตรวจสอบสถานะ Writer ที่มีปัญหา หากยังไม่เปลี่ยนเป็น Stable และปัญหาไม่หาย ลอง Re-register VSS Components และ Libraries

ขั้นตอน Re-register VSS Components

  1. ไปที่ Directory: cd c:\windows\system32
  2. หยุด Services: Volume Shadow Copy และ Microsoft Software Shadow Copy Provider
    Net Stop VSS
    Net Stop SWPRV
  3. Re-register VSS Components:
    regsvr32 /s ole32.dll
    regsvr32 /s oleaut32.dll
    regsvr32 /s vss_ps.dll
    vssvc /register
    regsvr32 /s /i swprv.dll
    regsvr32 /s /i eventcls.dll
    regsvr32 /s es.dll
    regsvr32 /s stdprov.dll
    regsvr32 /s vssui.dll
    regsvr32 /s msxml.dll
    regsvr32 /s msxml3.dll
    regsvr32 /s msxml4.dll
    vssvc /register
  4. Start Services ที่หยุดไว้ก่อนหน้า:
    Net Start SWPRV
    Net Start VSS
  5. ตรวจสอบว่า Error ของ VSS Writer ที่มีปัญหาหายไปแล้ว

วิธีการ Restart และ Re-register VSS Components นี้มีผลทั้งบน Windows Server 2008 / 2012 / R2 และ Windows Server 2016