Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a virtual server running SQL Server 2008 R2. On the server I have configured two maintenance plans, one that takes differential backups every day except Saturday and a job that takes full backups on Saturdays. Now when I tried to restore a differential backup I didn't manage to do it because it complained that the diff backup was out of sync with the selected full backup. After some investigation I noticed that because I run Windows Server Backup on my Hyper-V host machine (the one hosting the virtual server) Windows Server Backup makes snapshots of the databases on the virtual server. The differential backups starts to point to the snapshots instead of the full backups. I now disabled the service SQL Server VSS Writer on my virtual server to prevent snapshots from being taken, but will Windows Server Backup now succeed in taking backup of the virtual server or does it need that specific service to lock the database files? What is the correct way to have snapshots and "normal" backups running side-by-side? Can e.g. the snapshots be configured to be "copy-only" so that they don't mess up the normal backups?

share|improve this question
    
I have run into this exact same issue using Symantec Backup Exec 12.5. Backup Exec transaction log backups fail as soon as it performs a backup of the VM as a whole. I am interested to know what solution, if any, you came up with. –  Patrick Mar 15 '11 at 13:06

1 Answer 1

If you disable a VSS writer in the VM, the VM backups will not be coherent with respect to the database. So you're much more likely to end up in a situation where you try to restore your VM backup and you find your database corrupt. Since database repair can take a while, and since corruption can lead to data loss, I doubt that you should do that.

share|improve this answer
    
But how are you supposed to handle normal backups if the VSS writer is on? With the VSS writer I have to restore the whole server to a point in time instead of just a single database. However I now first take normal backups of the database before running the Windows Server Backup on the Hyper-V supervisor server, so if the databases become corrupt I always have fresh database backups available. –  user57792 Feb 8 '11 at 7:50
    
That's really what "backing up a VM" means. You can restore the whole server to a point in time. If you want to back up a database, do that within the VM. Many people would suggest that you might, now that you're using VMs, want to have a VM for each database. –  Jake Oshins Feb 8 '11 at 18:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.