Server 2012 Backups and VSS

Hi all we are using a Third Party Backup solution for our Hyper V Server which is failing, and I have noticed in device manager about 200 Generic Volume Shadow Copy.

These appeared when I successfully created a backup, but now the backup fails and have read that I need to clear these out.

My question is rather than individually deleting each one is there a way I can do this in 1 go.

and why do they keep appearing?

Who is Participating?
piyushranusriConnect With a Mentor System Cloud SpecialistCommented:
basically you have to run vssadmin list writers( with admin priviliges ) on command prompt
and it will show you writers status with no error or timed out error.

with Timed out error writers, you have to restart the related services. and run again vssadmin command
it will show no error

like IIS related times out error-  restart IIS admin services
WMI timed out error- wmi service

Please share the services status with us, so that i can give you the proper service name to be restarted.
Rodney BarnhardtServer AdministratorCommented:
The first step I would do is to check the status of the VSS writers. Run the command "vssadmin list writers" and look for any errors. If there are problems, then those need to be investigated first as they are causing the problem.
pepps11976Author Commented:
Yes i have done this and get various Failed States however restarting various Services gets these back to normal, and then afer i try to run the backup again they then fail
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Rodney BarnhardtServer AdministratorCommented:
There should be an event ID to match the failure of the VSS writer. What is the error? Also, what product are you using to perform the backup?
pepps11976Author Commented:
The product is Active Image Protector The Event ID Is not helpful but

A Vss Writer has rejected an event with error 0x00000000 the operation completed successfully

Vss Event Log
Rodney BarnhardtServer AdministratorCommented:
Have you tried to contact their support. The error appears to relate to the writer "AIP", which is I am assuming means "Active Image Protector Writer". Since it originally worked, there could have been a Microsoft update that is causing a conflict or something along those lines. I have seen updates cause problems with third party apps in the past.

I did track down a similar issue with host on a VMware system that had Microsoft workarounds.

There was also a KB on the Active Image site about VSS issues:

Windows Application Log:
- Source: VSS
- Type (Level) : Error

Windows System Log:
- Source: Volsnap
- Type (Level) : Error

If the error is generated due to the AIP Software:
1. Please ensure that the AIP tracking driver was installed at the same time that AIP was installed. Also, ensure that Windows was rebooted after the AIP installation.
If a full and incremental backup task is scheduled to run while the tracking driver is not working correctly or is not installed, VSS cannot be started and consequently returns a -311 error. The tracking driver is a component included in the AIP standard installation.

* Windows 2000 systems do not include VSS. A -999 error may occur instead of a -311 error. Also, the above error will occur during a scheduled full backup task.

To confirm that the tracking driver is functioning properly, please select [System Information] - [Software Environment] and confirm that "aiptrack" is on the list of system drivers.

If the error is due to the OS:
Windows Server 2003:
Please install the update program for Windows Server 2003 or earlier as follows to see if the problem is solved.
1. Apply Windows Server 2003 Service Pack 2.

A Volume Shadow Copy Service (VSS) update package is available for Windows Server 2003

2. Apply the roll-up package.

An update rollup package is available to resolve some Volume Shadow Copy Service (VSS) snapshot issues in Windows Server 2003.
pepps11976Author Commented:
Ok this is a Hyper V server 2012, all updates are the latest, the server was rebooted after installation of AIP.

Also I did get the backup to perform once yesterday, unfortunately after that it stopped working again, but everytime it put 100's of Generic Shadow Copy Devices in storage manager, they are not used and I know having theses can cause issues, but its painful going in and having to delete these every time

Generic devices
pepps11976Author Commented:
I can also confirm that AIP Track is presenr
Rodney BarnhardtServer AdministratorCommented:
Ok. These have to do with system restore. Microsoft released an update\hotfix for the problem in server 2008.

You could also stop the shadow copy service otherwise. This could be a bug for 2012 that they have not addressed yet.
Rodney BarnhardtConnect With a Mentor Server AdministratorCommented:
I did find where there is a scripting option:

"If you download devcon.exe from Microsoft, you can remove them with a simple command at the command prompt. If you want to know how many items you have that need removing, you can do:

devcon findall * | find "HARDDISKVOLUMESNAPSHOT"

That will show all the devices. Look for STORAGE\VOLUMESNAPSHOT\HARDDISKVOLUMESNAPSHOT followed by a number. It won't hurt to try to remove devices that don't exist, you'll just get a message that no devices were removed.

Then run this command, change 1527 to your highest number found, if you want.

for /L %b in (0,1,1527) do devcon remove @"STORAGE\VOLUMESNAPSHOT\HARDDISKVOLUMESNAPSHOT%b"
pepps11976Author Commented:
yep ok I have downloaded the Devcon and managed to clear them down, I have just uninstalled AIP and reinstalled with a reboot.

Just tried to do a full backup job and same errors etc happening
Rodney BarnhardtServer AdministratorCommented:
Unfortunately, I am not familiar with this backup product. I checked their support website, but there really is not that much information available. I was going to suggest contacting them, but then I located an article with someone having the same problem using Computer Associates ArcServe product in a 2012 Hyper-V environment. It appears to be a Microsoft issue based on his findings.

Here is the workaround:

Here is the original thread:
pepps11976Author Commented:
Yes I have tried this but when I try to list the shadows I just get no shadows can be found
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.