Document ID: 312068
http://support.veritas.com/docs/312068
E-Mail Colleague IconE-Mail this document to a colleague

How to troubleshoot "AOFO: Initialization failure" errors for "Microsoft Volume Shadow Copy Service (VSS)" service during Backups/Restores

Details:
VSS based backups/restores may fail with various AOFO initialization errors. Windows Application log on the affected server may report various VSS related errors/warnings like, Event ID 20 or Event ID 8193 for event source "VSS". Description for event ID 20 and Event ID 8193 is shown in section 1 and Section 2 respectively:

Section 1.

***************************************************************************************************************
Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy service is not registered.  This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider.  The error returned from CoCreateInstance on class with CLSID {faf53cc4-bd73-4e36-83f1-2b23f46e513e} and Name VSSEvent is [0x80040154]
***************************************************************************************************************

Section 2.

***************************************************************************************************************
Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance.
***************************************************************************************************************

To confirm the status of VSS writers, on the affected server run vssadmin list writers from command prompt. It may not show some/any writers at the prompt.


If the writers are not listed follow the steps listed below in Section A and Section B.

Note: The list below includes configuration changes that have been provided by our customer base to resolve VSS related issues. It is advisable to consult Microsoft before making the changes below:

Section A:

To register / re-register Microsoft Shadow Copy Provider and Volume Shadow Copy Services DLLs


1. Open a command prompt (Start>Run>CMD).

2. Execute the following commands:

Net stop vss
Net stop swprv

3. Change directory to \windows\system32  (i.e.: cd C:\windows\system32)

4. Register the below mentioned .dll files by executing the following commands:

regsvr32 ole32.dll
regsvr32 vss_ps.dll
vssvc /Register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll

5. Execute the following commands:

Net Start vss
Net Start swprv

6. Re-run the command vssadmin list writers.

If VSS issue still persists refer to the following Microsoft KB article

 http://support.microsoft.com/kb/940032

After following Section A if the issue still persists, follow Section B.

Section B:

1. Stop the Microsoft Shadow Copy Provider &Volume Shadow Copy Service.

2. Export the contents of the HKLM\Software\Microsoft\EventSystem key to a .regfile.

Warning:Incorrect use of the Windows registry editor may prevent the operating system from functioning properly. Great care should be taken when making changes to a Windows registry. Registry modifications should only be carried-out by persons experienced in the use of the registry editor application. It is recommended that a complete backup of the registry and workstation be made prior to making any registry changes.

3. Delete the HKLM\Software\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\Subscriptions key. (Do not delete the EventClasses key).

4. Restart the server.

5. Run the"VSSADMIN LIST WRITERS" command.

This causes the VSS entries in the HKLM\Software\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\Subscriptions key to be rebuilt when the writers initialize.




Supplemental Material:

System: Ref.#Description
UMI: V-79-32772-8984 VSS Snapshot error. Microsoft Volume Shadow Copy Service (VSS) cannot communicate with the writers.
UMI: V-79-32772-8982 VSS Snapshot error. A Microsoft Volume Shadow Copy Service (VSS) snapshot is already running on the target computer. Only one snapshot can run at a time. Try running the job later.

Acknowledgements
Microsoft

Products Applied:
 Backup Exec for Windows Servers 10.0, 10d (10.1), 11d (11.0), 12.0, 12.5

Last Updated: November 04 2008 01:48 PM GMT
Expires on: 11-03-2009
Subscribe Via E-Mail IconSubscribe to receive critical updates about this document

Subjects:
 Backup Exec for Windows Servers
   Application Basics: Backup-Restore, Troubleshoot
   Open File Option: Configure, Troubleshoot
   Operating System: Backup, Configuration

Languages:
 English (US), French, German

Operating Systems:
Windows Server 2003

DataCenter, DataCenter SP1, DataCenter SP2, Enterprise (IA64), Enterprise (x64), Enterprise SP2, Enterprise Server, R2, Standard Server, Standard Server SP1, Standard Server SP1 (x64), Standard Server SP2, Standard Server(x64), Storage Server