Advertisement

10.27.2007 at 06:52PM PDT, ID: 22922587
[x]
Attachment Details

Rebuilding corrupt log file

Asked by westdalemis in SQL Server 2005, MS SQL Server, Hard Drives & Storage

Tags: sql, log, 2005, rebuild, file

We had a SQL Server 2005 x64 Enterprise SP2 attached to an MSA 1500 SAN with the HA kit. The backplane experienced problems and messed up the MBR on the two volumes where the data and log files reside. The database shutdown unclean and it took a while to get the SAN backup and moving. We fixed the MBR's and the data is there (both ldf and mdf). However, the logfile is corrupt and the database is stuck in recovery mode. You can't attach the database and if you trick it (by creating a new database then repointing it to the existing log and datafiles) the database loads but is inaccessible. It is not marked as suspect, emergency or repair, it's just there and you can't enumerate it in SQL Server Management studio. I spent quite a bit of time with MS PSS trying to rebuild the log file and then finally trying to do a emergency mode repair, but to no avail. When I put the DB in emergency mode, sys.databases still shows it as in recovery mode.

Any ideas? The data is there, and I'm ok with consistency issues as I can rectify them with the repair_allow_data_loss option if I can ever get access to the DB.Start Free Trial
[+][-]10.28.2007 at 08:08AM PDT, ID: 20165240

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, MS SQL Server, Hard Drives & Storage
Tags: sql, log, 2005, rebuild, file
Sign Up Now!
Solution Provided By: lexiflex
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.28.2007 at 03:54PM PDT, ID: 20166610

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628