January 19, 2010 at 12:33 pm
Correction - looking back at the log we did just do a service restart. Of course, that was after 30 minutes of "OH NO!" detective work.
Chad
January 19, 2010 at 12:35 pm
My concern is the drive being powered off possibly causing data corruption.
January 19, 2010 at 12:48 pm
Lynn Pettis (1/19/2010)
My concern is the drive being powered off possibly causing data corruption.
It may have. Or it may not have. Impossible to tell without running a checkDB, which is why I would suggest reboot (to clear any lingering effects from the missing disk) and then a checkDB before making a decision on how to proceed.
Restoring and losing a day's data because there might be corruption is not something I'd recommend. If there is corruption then, based on how serious/repairable the corruption is, an educated decision on whether or not to restore backups can be made.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 19, 2010 at 12:50 pm
Chad Crawford (1/19/2010)
The drive came back ok when the network came up, but SQL Server didn't 'reconnect' to the file.
It doesn't. Once SQL detects that a drive is missing it almost caches that, won't use that drive/file again properly until at least the service is restarted.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 19, 2010 at 12:53 pm
Sounds good.
January 19, 2010 at 1:33 pm
I had a similar issue once with SQL server starting before the disks on which the data files were accessible. A reboot did the trick and also I ran dbcc checkdb to make sure everything was good with the db.
The_SQL_DBA
MCTS
"Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives."
January 20, 2010 at 8:09 am
Thanks for all the posts. So even though the database appeared totally "out of wack" - technical term, once the server was restarted the database seems good. I ran a checkdb and it returned no error messages. I had restored a backup but I ended up deleting it once I confirmed that the original database was ok.
Anyway I guess I learned a few things during this process.
Cheers.
January 20, 2010 at 9:23 am
scott williams-465021 (1/20/2010)
Thanks for all the posts. So even though the database appeared totally "out of wack" - technical term, once the server was restarted the database seems good. I ran a checkdb and it returned no error messages. I had restored a backup but I ended up deleting it once I confirmed that the original database was ok.Anyway I guess I learned a few things during this process.
Cheers.
Having already restored the database, you were in a position to quickly "swap" it if the checkdb had come back bad. Actually, not a bad idea if you think about it. I'm glad powering off the drive didn't corrupt anything.
January 20, 2010 at 9:32 am
Lynn Pettis (1/20/2010)
Having already restored the database, you were in a position to quickly "swap" it if the checkdb had come back bad.
True, but in general I would still recommend checkDB first then decide on the resolution. Not all corruptions require a restore from backup to fix.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 20, 2010 at 9:38 am
[quote-0True, but in general I would still recommend checkDB first then decide on the resolution. Not all corruptions require a restore from backup to fix.[/quote-0]
I agree with Gail on that. In this case restart the server first, then checkDB and depending on the result, a restore may be needed.
January 20, 2010 at 9:44 am
GilaMonster (1/20/2010)
Lynn Pettis (1/20/2010)
Having already restored the database, you were in a position to quickly "swap" it if the checkdb had come back bad.True, but in general I would still recommend checkDB first then decide on the resolution. Not all corruptions require a restore from backup to fix.
I guess it would also depend on how long checkdb and a restore run. Checkdb on one of our production databases runs about 45 minutes. A restore of the same database usually is done in 35 minutes. In this case, I'd start both so I would have the restored database to the closest point in time ready (or almost ready) should I need it. Reduces the down time for the user community.
January 20, 2010 at 10:26 am
I'll agree with restarting the server (or the instance of SQL Server, could be faster and work just as well).
Viewing 15 posts - 16 through 30 (of 38 total)
You must be logged in to reply to this topic. Login to reply