Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…
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.

863 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

25 Experts available now in Live!

Get 1:1 Help Now