VSS Writer falló: volver a registrar VSS Writers en Windows Server
La mayoría de las soluciones de copia de seguridad para Windows utilizan el Servicio de instantáneas de volumen (VSS) para crear copias de seguridad de los datos de la aplicación o el servicio. En algunos casos, el servicio VSS o uno de sus escritores comienza a funcionar incorrectamente, lo que genera fallas durante la copia de seguridad. Me he enfrentado a un problema de este tipo en los servidores Exchange, MSSQL e Hyper-V. Para recuperar rápidamente VSS y sus componentes, uso las siguientes instrucciones.
Para detectar un escritor VSS fallido, mostremos la lista de escritores VSS registrados en el sistema y su estado usando el comando vssadmin.
vssadmin list writersBusque los componentes con el estado Error en la lista. Para los componentes que funcionan normalmente, el estado es el siguiente: Estado: [1] Estable.
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 errorComo puede ver, en nuestro caso, Microsoft Exchange Writer ha fallado (estado: [8] fallido), por lo que no podrá completar la copia de seguridad de Exchange. Normalmente, para corregir el estado de este componente, basta con reiniciar el servidor (lo que no siempre es posible por motivos de producción).
Para reparar el escritor de Exchange, intente reiniciar el servicio relacionado. (La siguiente tabla muestra la lista de VSS Writers típicos y los servicios de Windows relacionados). Además de detener el servicio, a veces tendrá que eliminar manualmente un proceso de servicio bloqueado.
| VSS Writer | System Service Name | Full Name of a Service |
| IIS Config Writer | AppHostSvc | Application Host Helper Service |
| BITS Writer | BITS | Background Intelligent Transfer Service |
| Certificate Authority | CertSvc | Active Directory Certificate Services |
| System Writer | CryptSvc | Cryptographic Services |
| DFS Replication service writer | DFSR | DFS Replication |
| DHCP Jet Writer | DHCPServer | DHCP Server |
| NPS VSS Writer | EventSystem | COM+ Event System |
| IIS Metabase Writer | IISADMIN | IIS Admin Service |
| Microsoft Exchange Writer | MSExchangeIS | Microsoft Exchange Information Store |
| Microsoft Exchange Replica Writer | MSExchangeRepl | Microsoft Exchange Replication Service |
| MSMQ Writer (MSMQ) | MSMQ | Message Queuing |
| NTDS | NTDS | Active Directory Domain Services |
| FRS Writer | NtFrs | File Replication |
| OSearch VSS Writer | OSearch | Office SharePoint Server Search |
| OSearch14 VSS Writer | OSearch14 | SharePoint Server Search 14 |
| SMS Writer | SMS_SITE_VSS_WRITER | SMS_SITE_VSS_WRITER |
| SPSearch VSS Writer | SPSearch | Windows SharePoint Services Search |
| SPSearch4 VSS Writer | SPSearch4 | SharePoint Foundation Search V4 |
| SqlServerWriter | SQLWriter | SQL Server VSS Writer |
| FSRM writer | srmsvc | File Server Resource Manager |
| TermServLicensing | TermServLicensing | Remote Desktop Licensing |
| Microsoft Hyper-V VSS Writer | vmms | Hyper-V Virtual Machine Management |
| ASR Writer | VSS | Volume Shadow Copy |
| COM+ REGDB Writer | VSS | Volume Shadow Copy |
| Registry Writer | VSS | Volume Shadow Copy |
| Shadow Copy Optimization Writer | VSS | Volume Shadow Copy |
| WDS VSS Writer | WDSServer | Windows Deployment Services Server |
| WIDWriter | WIDWriter | Windows Internal Database VSS Writer |
| WMI Writer | Winmgmt | Windows Management Instrumentation |
| WINS Jet Writer | WINS | Windows Internet Name Service (WINS) |
| MSSearch Service Writer | WSearch | Windows Search |
Ejecute el siguiente comando nuevamente:
vssadmin list writersVerifique el estado del escritor de VSS problemático. Si no ha cambiado al estado Estable y el problema no se soluciona, puede intentar volver a registrar los componentes y las bibliotecas de VSS.
Ir a este directorio:
cd c:\windows\system32Detenga los siguientes servicios: Volume Shadow Copy y Microsoft Software Shadow Copy Provider.
Net Stop VSS
Net Stop SWPRVVuelva a registrar los componentes de VSS:
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 /registerInicie los servicios detenidos anteriormente:
Net Start SWPRV
Net Start VSSAsegúrese de que el error del escritor de VSS problemático haya desaparecido.
Este método de reiniciar y volver a registrar los componentes de VSS es efectivo tanto en Windows Server 2008/2012/R2 como en Windows Server 2016.


