Solved

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

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

856 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