Solved

Server 2012 Backups and VSS

Posted on 2015-01-22
13
89 Views
Last Modified: 2015-08-06
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?

John
0
Comment
Question by:pepps11976
  • 6
  • 6
13 Comments
 
LVL 32

Expert Comment

by:Rodney Barnhardt
ID: 40566247
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.
0
 

Author Comment

by:pepps11976
ID: 40566285
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
0
 
LVL 32

Expert Comment

by:Rodney Barnhardt
ID: 40566291
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?
0
 

Author Comment

by:pepps11976
ID: 40566320
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
0
 
LVL 32

Expert Comment

by:Rodney Barnhardt
ID: 40566371
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.

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

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
http://support.microsoft.com/kb/833167/en-us

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.
http://support.microsoft.com/kb/940349/en-us
0
 

Author Comment

by:pepps11976
ID: 40566390
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
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:pepps11976
ID: 40566491
I can also confirm that AIP Track is presenr
0
 
LVL 32

Expert Comment

by:Rodney Barnhardt
ID: 40566526
Ok. These have to do with system restore. Microsoft released an update\hotfix for the problem in server 2008.

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

You could also stop the shadow copy service otherwise. This could be a bug for 2012 that they have not addressed yet.
0
 
LVL 32

Assisted Solution

by:Rodney Barnhardt
Rodney Barnhardt earned 250 total points
ID: 40566529
I did find where there is a scripting option: http://www.storagecraft.com/support/forum/deleting-generic-volume-shadow-copies-command-or-script

"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"
0
 

Author Comment

by:pepps11976
ID: 40566625
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
0
 
LVL 32

Expert Comment

by:Rodney Barnhardt
ID: 40567248
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:
http://www.guillaumeverrey.com/2013/07/error-the-specified-component-was-not-reported-by-the-vss-writer-error-517-in-windows-server-2012-backup/

Here is the original thread:
https://communities.ca.com/thread/106282465
0
 

Author Comment

by:pepps11976
ID: 40569201
Yes I have tried this but when I try to list the shadows I just get no shadows can be found
0
 
LVL 8

Accepted Solution

by:
piyushranusri earned 250 total points
ID: 40908160
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.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now