I am facing an issue with VSS during the backup; I have a win 2008 entreprise x64 running NetWorker 7.5.1. Here's the error :
ERROR: Failed to initialize backup, error=0x80042301: VSS Backup or Restore is not in the correct state for the operation, or the writer is not in the correct state. 7154:save: Unable to set up VSS filesystem directives. Failed to back up G:\. : Failed with error(s)
savegrp: suppressed 22 lines of output. 53085 1340784234 1 0 0 2472 1964 0 sfatsbkp nsrsqlsv 27 Backing up of %s succeeded. 1 0 5 model 53085 1340784251 1 0 0 2472 1964 0 sfatsbkp nsrsqlsv 27 Backing up of %s succeeded. 1 0 4 msdb 29067 1340784252 1 0 0 2472 1964 0 sfatsbkp nsrsqlsv 113 Skip building named instance directory because there are no named instances installed or running on this machine. 0 43709 1340784252 1 0 0 2472 1964 0 sfatsbkp nsrsqlsv 13 Stop time: %s 1 35 25 Wed Jun 27 04:04:12 2012
After a couple of look ups I've found this hotfix from microsoft; however, it's for Win 2003..
Restart the follwoing windows services with out a reboot of the server.
COM+Event system
Microsoft software shadow copy provider
volume shadow copy
Note restarting "COM+Event system " service will restart System Event notification service and Background intelligent Transfer service due to the dependencies.
After restarting these services VSS will return to stable state.
Method 2:
faster but more disruptive in production enviornment.
Reboot the server.This will clean the incorrect status of the VSS writers and backup will now succeed.
Please run vssadmin list writers and check Writers status on the client machine. Make sure that all the writers should be in stable state and no errors.
I see 2 different backups running at the same time:
File System and also SQL:
Failed to back up G:\
sfatsbkp nsrsqlsv 113 Skip building named instance directory because there are no named instances installed or running on this machine
Can you please tell us what are you backing up?
Are you mixing File system and SQL backups for the same client in the same group?
Have you checked that all writers are present by running vssadmin list writers? Specially ensure that System Writer is in place.
What is the configuration of the client and what is the saveset you have configured?
Have you checked Application and System event logs on the client to see if there is any event ID 25 volsnap? If so then google it, as there are Microsoft fixes for that (you forgot to attach the fix you found, by the way)
Unfortunately, I cannot reboot the server because it might affect the business since it's a physical server I would need an approval from the other teams and that could take a little while..
Actually I am backing up both file system as well as SQL, yes I have checked all the writers and they are all running with no errors; however, this is what I've found on the System event log as a warning ( the recent one):
The backup operation for the cluster configuration data has been canceled. The cluster Volume Shadow Copy Service (VSS) writer received an abort request.
I have the same problem as well. I've done the step provided by sekaraj and even rebooted the server but i'm still getting below error.
1 retry attempted
ERROR: Failed to initialize backup, error=0x80042301: VSS Backup or Restore is not in the correct state for the operation, or the writer is not in the correct state.
89668:save: Unable to set up VSS file system directives. Failed to back up G:\.
: Failed with error(s)
I used the hardcoded saveset which C and E drive completed succesfully but failed on F,G and H.
This is what I get from vssadmin list writers
C:\>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.
I made a troubleshooting document for myself some time ago , I paste it here since it resolves and gives info regarding all strange VSS Errors you can encounter. (Try re-register writers in the section a bit down)
VSS Providers
Check to see if there are any non-standard providers that are causing the problem when performing the VSS snapshot. To do this, go to the command-line and execute the following command "vssadmin list providers".
If there are any non-standard providers listed, consider uninstalling them. Note that the Microsoft default providers are generally very reliable, so uninstalling 3rd party providers may solve the problem.
If the "vssadmin list providers" command hangs, it is likely that a newly installed VSS provider is malfunctioning. We have seen this with certain imaging products. In this case, uninstall these products to resolve the issue.
2. Multiple Backups
Ensure that the backup is not running at the same time as another backup as the custom provider may only allow one snap-shot at a time.
3.Corrupted data on the drive to be backed up.
Run CHKDSK on each drive with the /f switch to fix any errors on the disk. *PLEASE NOTE THIS CAN CAUSE DATALOSS*
4. VSS believes the system is in setup process
Check the status of the system by following these steps:
a. Go to the Registry Editor and locate HKEY_LOCAL_MACHINE\SYSTEM\Setup
b. Ensure that the following registry values are set to 0:
SystemSetupInProgress
UpgradeInProgress
5.VSS dlls are corrupted. Re-install the VSS dlls by following these steps (please note the difference between OS and platforms):
=======================
WINDOWS 2003 SERVER x86
Following are the suggested updates for vss and some basic troubleshooting for it:
net stop "Background Intelligent Transfer Service"
net stop "COM+ Event System"
net stop "Microsoft Software Shadow Copy Provider "
net stop "Volume Shadow Copy"
cd /d %windir%\system32
net stop vss
net stop swprv
regsvr32 /s ATL.DLL
regsvr32 /s comsvcs.DLL
regsvr32 /s credui.DLL
regsvr32 /s CRYPTNET.DLL
regsvr32 /s CRYPTUI.DLL
regsvr32 /s dhcpqec.DLL
regsvr32 /s dssenh.DLL
regsvr32 /s eapqec.DLL
regsvr32 /s esscli.DLL
regsvr32 /s FastProx.DLL
regsvr32 /s FirewallAPI.DLL
regsvr32 /s kmsvc.DLL
regsvr32 /s lsmproxy.DLL
regsvr32 /s MSCTF.DLL
regsvr32 /s msi.DLL
regsvr32 /s msxml3.DLL
regsvr32 /s ncprov.DLL
regsvr32 /s ole32.DLL
regsvr32 /s OLEACC.DLL
regsvr32 /s OLEAUT32.DLL
regsvr32 /s PROPSYS.DLL
regsvr32 /s QAgent.DLL
regsvr32 /s qagentrt.DLL
regsvr32 /s QUtil.DLL
regsvr32 /s raschap.DLL
regsvr32 /s RASQEC.DLL
regsvr32 /s rastls.DLL
regsvr32 /s repdrvfs.DLL
regsvr32 /s RPCRT4.DLL
regsvr32 /s rsaenh.DLL
regsvr32 /s SHELL32.DLL
regsvr32 /s shsvcs.DLL
regsvr32 /s swprv.DLL
regsvr32 /s tschannel.DLL
regsvr32 /s USERENV.DLL
regsvr32 /s vss_ps.DLL
regsvr32 /s wbemcons.DLL
regsvr32 /s wbemcore.DLL
regsvr32 /s wbemess.DLL
regsvr32 /s wbemsvc.DLL
regsvr32 /s WINHTTP.DLL
regsvr32 /s WINTRUST.DLL
regsvr32 /s wmiprvsd.DLL
regsvr32 /s wmisvc.DLL
regsvr32 /s wmiutils.DLL
regsvr32 /s wuaueng.DLL
net start "COM+ Event System"
6 ) COM+ needs to be re-installed. Re-install COM+ by following these steps:
Backup and then delete HKLM\Software\Microsoft\COM3
Boot to Recovery console and rename clbcatq.dll to ~clbcatq.dll. Be sure to use the tilde.
Boot to normal mode and in Control Panel, open the Add or Remove Programs tool, and then open the Add/Remove Windows Components tool. Do not make any changes, just click "Next". This reinstalls COM+.
7 ) Destination drive is not formatted for NTFS. Check to make sure the backup destination is compatible with the NTFS format. Please view the following article on how to convert a drive to NTFS format: http://support.microsoft.com/kb/307881
Check for disk activity during the time of backup. High disk activity at the time of the snapshot can cause the snapshot manager to determine a cutoff point easily.
Make sure that you have at least 100MB (however the more the better) free space on all drives involved within your backup.
Windows 2008 R2 Action plan for VSS Trouble shooting (General)
Please apply the following resolution plan
Check your NIC cards configurations on both server and client and make sure to set both server and client network cards to Full or half duplex (no auto negotiate)
Check first this solution to verify your NIC cards configurations :
Check the hosts file configuration on both server and client and make sure that the server and client hostname and ip and aliases are configured correctly
Try if you have firewall to configure TCP/IP address and name of the firewall to the client hosts file
Make sure that server and client can ping each other with ip and hostname
Rajesh Sekar
26 Posts
14492
0
Posted June 27th, 2012 20:00
Please try the below methods:
Method 1:
Restart the follwoing windows services with out a reboot of the server.
COM+Event system
Microsoft software shadow copy provider
volume shadow copy
Note restarting "COM+Event system " service will restart System Event notification service and Background intelligent Transfer service due to the dependencies.
After restarting these services VSS will return to stable state.
Method 2:
faster but more disruptive in production enviornment.
Reboot the server.This will clean the incorrect status of the VSS writers and backup will now succeed.