Solved

I/O error (bad page ID): cannot recover. Urgent!!

Posted on 2006-10-23
5
620 Views
Last Modified: 2011-10-03
Hi guys,

The SQL server was restarted this morning and three databases didn't start up and were marked as Suspect. In the logs I have the follwoing error:

I/O error (bad page ID) detected during read at offset 0x00000000010000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL\data\GTHub_Data.MDF'..

I cleared the flag  and put it to emergency mode (read somewhere than while in this mode I could have access to the data) with the following commands:

exec Sp_configure 'allow updates', 1
go
Reconfigure with override
go

exec sp_resetstatus GTHub
go
update sysdatabases set status = 32768 where name = 'GTHub'
go

exec Sp_configure 'allow updates', 0
go
Reconfigure with override
go


But still marked as Suspect.

The database recovery model is Simple, and we dont seem to have a good backup. The only one are files copied at the OS level by a backup software, but when I try to attach the files it says they are not the primary source. Then created a new db, shutdown the server, replace the old db files with those recovered by the backup software, and restarted the server. Encountered that, although those are supposed to be our backup files, they were marked as suspect too.

How coud we recover the data from our MDF-LDF?  

Using Sql Server 2000, SQL Server 8.00.2039 - SP4 (Developer Edition). Server Windows 2003 using SCSI RAIS array of discs.

Any help to get our data back will much be appreciated.

0
Comment
Question by:dtbmw
  • 2
5 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 17791727
try to run ms-dos utility CHKDSK- to find and fix bad sectors ( if there are any)

CHKDSK /F

CHKDSK   Checks a disk and displays a status report.
 /F              Fixes errors on the disk.
0
 

Author Comment

by:dtbmw
ID: 17792071
Thank you. Already did without success, although found some errors in the file system.
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 17792151
did you find bad sectors and fixed them?


< Server Windows 2003 using SCSI RAIS array of discs.>
probably your drive C is not on RAID 5..

Can you read the tables ?or it is did not became 'emergency mode '?

---


How to use the SQLIOSim utility to simulate SQL Server activity on a disk subsystem
http://support.microsoft.com/kb/231619/

--
if mdf is corrupted
call the Microsoft  Product Support Services.  
http://support.microsoft.com/default.aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now