Solved

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

Posted on 2006-10-23
5
630 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

776 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