
I finally have the t-sql backups using the MSDE Writer, but I still haven’t been able to backup VSS afterwards. Unlike the SQL Server VSS Writer though, the MSDE Writer doesn’t seem to know that something’s wrong after the db backup runs because it’s in state 1 when I check it in the morning. Based on Event Log entries I did figure out that whatever is going on is happening at the end of the first backup statement in the t-sql script. Even though the log and database backup commands that follow it are executed (which I verified by checking the contents of the backup file) the event log shows an entry for each additional backup command saying that the device is in use. After that, the Backup Exec job isn’t able to access VSS, so I’m sure it’s already disabled.
The really strange thing is that I can’t reproduce it manually. My nightly backup process goes like this:
9PM - Database backups run
10PM - Backup Exec backs up everything except VSS and files I know will be in use
11PM - Second Backup Exec job is queued to backup backup files from t-sql backups and VSS
When I run the database backups manually the VSS Writer doesn’t get stuck and I don’t get the device in use Event Log entries. Not surprisingly, after that the VSS backup job in Backup Exec goes fine. For now I’ve re-enabled the SQL Server VSS Writer and set it to manual so I can start it right before the database backup and stop it right afterwards. I don’t know if this will help because I’m not sure exactly when VSS is being disabled, but if it doesn’t work I’m either going to have to come in on the weekend or stay late one night so I can run the whole backup process just to find where it fails.

[...] many Google searches I finally came across this page “VSS Backup Fails On Servers Running SQL Server 2005“. There were a few differences like the fact that this computer was running Windows XP [...]










