Exchange 2010 - EDB defrag stuck, cancelled and now the DB wont mount

Posted on 2016-11-17
Last Modified: 2016-11-25
Dear EE

Please can someone assist me.

So, as per the title, I was defragging an EDB. It was stuck on the last part for a few hours...."moving the temp.edb to replace original edb"

After a quick google I endded the task via CTRL + C.

Now the DB wont mount.

I still got the temp.edb file it created.

Any ideas??
Question by:TTAF4
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +4

Expert Comment

ID: 41892552
What's the error you get when you are trying to mount the DB?

Do you have a backup of the original as you may have corrupted it by ctrl-c?
I would restore from a backup if you have one.

Author Comment

ID: 41892554
no backups. this is a client of mine.

Expert Comment

ID: 41892557
"Never" offline defrag a single DB without a backup!!!

OK, what error do you get?
Is it in a DAG? If it is, remove the failed database copy, delete any files and recreate the database copy.
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.

LVL 14

Assisted Solution

by:Ajit Singh
Ajit Singh earned 100 total points
ID: 41892642
As above suggested, be sure to make a copy to another machine before doing offline defrag. Also look into your System and Application Event logs on the Exchange server to see if there have been any critical or warning errors occurring.

using eseutil /ml to figure out what log file is damaged, then deleting it, then trying to mount. Here is an article which lets you how to use the Eseutil function to restore Exchange databases:

If the log files are healthy, then perform the Soft recovery with the command Eseutil /r <Log Prefix> /l “Path of the log files” /d “Path of the database”.

Hope this helps!
LVL 17

Expert Comment

by:Viral Rathod
ID: 41892839
Database is clean shutdown or dirty shutdown.

Please run eseutil/mh and post the results.
LVL 43

Assisted Solution

Amit earned 100 total points
ID: 41892840
I don't see you have much option left, apart from creating dial-tone and restoring data from backup. If no backup, update customer db is lost and cannot be recovered any more. Or you can try out 3rd party tools for edb to pst.
LVL 17

Assisted Solution

by:Viral Rathod
Viral Rathod earned 100 total points
ID: 41892842
LVL 17

Assisted Solution

by:Viral Rathod
Viral Rathod earned 100 total points
ID: 41892843
If database is dirty shutdown then you need to take the backup and repairs the database.

Do not do anything else first post the results of eseutil /mh
LVL 19

Assisted Solution

suriyaehnop earned 100 total points
ID: 41893500
I believe your db is dirty shutdown that why you won't able t mount it. Run eseutil /mh "path of database"

1. Run soft recovery to clean the db. Restore the log file from latest tape backup

Eseutil /r "E0n" /d <database path> /l <db log path>

2. If soft recovery failed. Run hard repair. Process will take long time. My last hard repair took about 8 hours to complete

Eseutil /p <database path>
LVL 11

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 100 total points
ID: 41894039
Go for repairing the EDB file using ESEUTIL Comands. If after recovering (Soft/Hard) the file successfully then try to mount the file into the Exchange server.
If ESEUTIL commands is not working in your case, then you have to go with any third party tool to recover corrupt Exchange database. I know some popular tool which you could try by downloading its demo version:
- SysTools Exchange Recovery
- PCVITA EDB to PST Converter
- Recovery Tools For Exchange Server

There are many other tools also available in the market, which you can explore by googleness.

Accepted Solution

TTAF4 earned 0 total points
ID: 41895371
wow thank you all for the many suggestions.

this i what i did to resolve this issue.

i deleted the original db. copied the temp.edb to the original location.

gave it the original name and mounted.

worked like a charm.
LVL 43

Expert Comment

ID: 41899099
Great it worked in your case. However, going forward avoid using ctrl + c let defrag get completed by its own. Defrag can take long time to complete. Nearly 4GB per hour.

Author Closing Comment

ID: 41901390
this is what fixed the problem

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

624 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