Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 All Databases corrupt

Author  Topic 

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2009-12-11 : 23:05:00
We have windows 2003, sql 2005.
We just expanded the drive containing .ldf files.
Before doing that we had copied the files over as a safety to another server.
When the drive came up(expanded from 72 GB to 300 GB), we copied the files back from the other server to the current location.
We tried to bring up the sql service, and all databases show as corrupt. Any ideas?
Paresh

Regards
Paresh Motiwala
Boston, USA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-11 : 23:11:25
You probably didn't stop the SQL Server service when you performed the copy. That's the only way to know the files are good.

So what state was the service in when you performed the copy?

Do you have good SQL backups?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2009-12-11 : 23:21:35
the sql was indeed stopped completely when we copied them over.
recovering from backups may be a problem as we have about 25 dbs.

Regards
Paresh Motiwala
Boston, USA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-11 : 23:33:57
Then something happened during the copies (to or from) or the remote server corrupted them.

We use the stop/copy files/copy files/start method all the time and have never had an issue.

When you say corrupt, do you mean suspect mode?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2009-12-11 : 23:38:45
yes they are in suspect mode

Regards
Paresh Motiwala
Boston, USA
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2009-12-11 : 23:57:04
u there?


Regards
Paresh Motiwala
Boston, USA
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-12-12 : 04:06:42
This isn't a help desk and there's no SLA on replies. We reply when and as we have spare time. If you need urgent assistance, I suggest you contact Microsoft's customer support,

Query sys.databases, check the column state_desc for all the databases.
Open the SQL error log, look for all the messages relating to these DBs. Post them here (if you're not sure post the entire error log)

--
Gail Shaw
SQL Server MVP
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-12 : 13:02:04
quote:
Originally posted by pareshmotiwala

u there?



No I was sleeping.

Did you start restoring the databases yet?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

323 Posts

Posted - 2009-12-14 : 16:08:27
Tara, thanks for your help. I did not have to restore the databases. But I did the following since there was no extra activity on the databases sicne we last shut them down.

I first put them in emergency mode, then into single user mode, then run dbcc with "allow data loss" and then back into multi user mode. put them all back into Full mode. Scary scenes, but we survived.

This week we were planning to do the same with the drive having the .mdf files but have chosen to abstain from it...
We met today to move the entire server to a VM environment.

Thanks for your help once again and wish that other members were as obliging and nice as you.


Regards
Paresh Motiwala
Boston, USA
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-12-15 : 04:42:57
quote:
Originally posted by pareshmotiwala

I first put them in emergency mode, then into single user mode, then run dbcc with "allow data loss" and then back into multi user mode. put them all back into Full mode. Scary scenes, but we survived.


You do realise that you may well have lost data? Repair with allow data loss is an absolute last resort when there's no other solution. Restoring from backup is the recommended solution for most forms of corruption. Only if there's no backup should a repair be considered.

quote:
Thanks for your help once again and wish that other members were as obliging and nice as you.

Anyone in particular that's aimed at?

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -