SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 Recovering from a recovery from tape
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

amccrackin
Starting Member

USA
3 Posts

Posted - 12/05/2012 :  09:48:02  Show Profile  Reply with Quote
I'm afraid I know the answer to this one but I want to ask anyway (I'm not a dba but I'm at the bottom of the hill so to speak)...

Our SAN lost several drives and our TFS 2008 SQL Server (SQL 2005) vm was restored from tape. Apparently the tape backup routine is SQL unaware because I have 0 allocation errors but I do have consistency errors in some db's. I found this out after the server was brought back up and was already being actively used again.

I do have SQL backups for before the failure.

Do I have any options besides either:
1) repairing as best as it can and keeping the backup as reference
2) reverting to pre-crash and having people re-apply their changes

Is there anyway to restore my backup as a different db & compare it to the active db to see what it has that's missing from the active db?

Thanks

Andrew McCrackin

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3355 Posts

Posted - 12/05/2012 :  10:34:40  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
You should be able to restore to another db and compare but I was at a company recently which said their 3rd party backup solution did not allow that (nor to another server). I told them to get rid of the backup solution if that was the case - they couldn't test it.

Do you know if the database had problems before the crash?
If your backup solution is not sql aware and just backing up files (and you are not taking sql backups) then you probably can't guarantee that any can be restored - basically you don't really have any backups.
Have you ever tested the backup solution?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

amccrackin
Starting Member

USA
3 Posts

Posted - 12/05/2012 :  10:50:25  Show Profile  Reply with Quote
I found the problem because of post-restore backup and index rebuild issues. We are going to do a DR review and discuss this issue. I am also thinking about proposing investing in a mirrored server for a on-line backup (log shipping maybe). I do have SQL full and txn backups running, but didn't get get to check the db before it went live this time.

I am currently prepping another server so that I can run the repair on a copy of the db to see what I get.

Thanks for the reply.

quote:
Originally posted by nigelrivett

You should be able to restore to another db and compare but I was at a company recently which said their 3rd party backup solution did not allow that (nor to another server). I told them to get rid of the backup solution if that was the case - they couldn't test it.

Do you know if the database had problems before the crash?
If your backup solution is not sql aware and just backing up files (and you are not taking sql backups) then you probably can't guarantee that any can be restored - basically you don't really have any backups.
Have you ever tested the backup solution?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.



Andrew McCrackin
Go to Top of Page

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3355 Posts

Posted - 12/05/2012 :  11:35:58  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Are the backup files also being copied to tape? You could restore those files then restore the database from them.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

amccrackin
Starting Member

USA
3 Posts

Posted - 12/05/2012 :  11:47:33  Show Profile  Reply with Quote
I have those available, but I want to try to preserve the changes made since the restore. If the repair goes badly, then I'll end up restoring from those and having to manually re-apply all changes since...

quote:
Originally posted by nigelrivett

Are the backup files also being copied to tape? You could restore those files then restore the database from them.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.



Andrew McCrackin

Edited by - amccrackin on 12/05/2012 11:54:45
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000