Thursday 14 May 2009

Using ESEUTIL to recover and repair exchange databases with dirty shutdown state


There are plenty of guides on using eseutil but getting the parameters right always seems to be a case of trial an error, so here's a quick howto:

1) Copy all the original database and log files to somewhere safe. Then also copy them into a working directory. Eseutil will modify the files in situ so if it goes wrong you don't want your original files modified.

You need to have a copy of the database files (*.edb and *.stm) plus the transaction logs (Exx*.log where xx is a number relating to the information store). The location of the files is available from exchange system manager, but you really should know where they all are anyway.

I'm going to assume the temp directory for the database files is e:\temp\data and they're called exchdb.edb, exchdb.stm. If they reside in the 1st storage group, the transaction logs will be called E00.log (this is the most recent base file) and E00xxxx.log etc (these are the old logs). Lets assume these are copied to e:\temp\logs. You need to replace these with your own paths/filenames of course.

2) Check the database state and expected log files with

eseutil.exe /mh e:\temp\data\exchdb.edb

The output will show a line State: which will be either clean or dirty shutdown. If it's clean, then you don't need this article :)

It will also show which logs are required e.g. which hadn't yet been played into the database when the dirty shutdown occured. If you have any missing then you will have lost email. This generally only occurs if you lost a log drive and have replicated copies of the logs you can use.

3) "Recover" the database. This replays missing transaction logs into the database file - run:

eseutil.exe /r E00 /d"e:\temp\data\exchdb.edb"

You might receive an error that there is an outstanding database attachment. In this case use the /i switch in the command

eseutil.exe /r E00 /d"e:\temp\data\exchdb.edb" /i

4) recheck the database state with the command in 2). If it still shows dirty shutdown you need to repair the database with:

eseutil /p e:\temp\data\exchdb.edb

5) Recheck the database once more and it should show clean shutdown. At this point you should defrag the database

eseutil /d e:\temp\data\exchdb.edb

6) The file is now in a clean state and is ready to be put back into exchange so copy it back to the original location on your exchange server but don't yet mount the file. The last step before mounting the file is to get rid of any remaining errors using isinteg.exe. This tool requires the database to be in the original location on the original exchange server. It needs to be run several times until it no longer reports any errors.

7) Once the database file has no more errors you can now remount it in exchange.

11 comments:

Alex said...

EDB repair has some necessary facilities for solving out given trouble. It can't modify source data of edb file during recovering. The program using modern methods of repairing. The utility is compatible with all software configurations.

Bob Luis said...

At times of severe corruption, the built-in ESE utilities fall short to repair the damaged .edb file. In this situation, only a third party Exchange database recovery tool becomes imperative. Copious Exchange recovery tools are exist in the market which successfully repair and recover all the vital data from the damaged or corrupt EDB files. A veracious third party tool is Stellar Phoenix Mailbox Exchange Recovery that recover all data from damaged Exchange database file effectively and supports all versions of MS Exchange Server.

Unknown said...

One of the most globally used edb to pst converter software which is used and recommended by most of technician. Easy to Use and perform conversion process with in few minutes. We recommended to use the free trial version first. In trial version you can see the preview of converted mailboxes.
http://www.recoverydeletedfiles.com/exchange-server-edb-recovery.html

David Harper said...

Great step, but I used the exchange server recovery tool from http://www.lepide.com/exchange-manager/ that helps to recover corrupt exchange server database and fix exchange server corruption issues like jet errors, file size errors, malicious errors etc. This tool converts inaccessible exchange edb files to outlook pst files format. This tool extracts exchange server backup from the backups created using HP backup, VERITAS, Symantec and NTBAckup.

Unknown said...

Through EDB to PST Recovery Tool you can recover and convert damage EDB File into working PST/EML/MSG and HTML. This program has aptitude to transfer Mailboxes from Exchange EDB to PST along with all properties/attachment/junk mail/appointment/subject/calendar and journal etc. This tool works on all windows versions for downloading process and Recuperate damage Exchange EDB File to PST From all updates Exchange versions.


Read More Information So Visit Here :- http://www.enstella.com/edb-to-pst-conversion.html

Anonymous said...

Also use this EDB to PST tool to recover permanently deleted or lost and instantly solve database issue and restore lost mailbox items like Inbox, Outbox, Sent Items, Deleted Items, Draft, Journals, Tasks, Calendars, Notes etc. See more information at: https://softcart.wordpress.com/edb-to-pst-converter/

bloggertipstricks said...

While using Eseutil commands to repair Exchange database after dirty shutdown state, I have faced so many errors. To fix these errors, I have tried two methods:
1. Run soft repair and
2. Defragment the database

But can’t repair it. I get frustrated due to errors. Then I searched this issue and found a useful tool ‘Stellar repair for Exchange’ tool and fix all the errors. I have found this tool over this site:
https://it.toolbox.com/blogs/janeparker/top-5-best-exchange-server-database-edb-recovery-software-for-it-administrators-062817

Anonymous said...

Thanks for sharing this blog post, I tried this edb to pst tool which helps to recover corrupt data from offline or unmounted edb files and easily fix all issues of exchange server by using it. This tool extract the entire exchange emails from damage or corrupt exchange edb files or or pst, eml and msg files format.

alinadesuza said...

There is application which can retrieve corrupted or damaged EDB files of Exchange Server and convert them into new readable PST format, And the application name is Exchange Recovery Software . It simply fix all EDB file errors and convert EDB to PST File easily. Restores mailboxes items likes emails, folders, attachments, tasks, calendar, contacts etc. It also provide to save all corrupt EDB File them in various formats like PST, MSG, EML, HTML, format.https://www.osttopstapp.com/exchange-recovery.html

hamilton said...

To repair the damaged or inaccessible Exchange mailbox database EDB, you need to make them readable migrating EDB file to PST format. You can export EDB data to PST using this application.This tool fix EDB files corruption issues and convert them in PST formats and migrates EDB mailboxes to Office 365 and Live Exchange mailboxes. It supports all versions of Exchange Server, Office 365 and MS Outlook. You can also try the free demo version of this software. Visit here for more information:-https://www.sametools.com/exchange/edb-to-pst/

Mihir Mane said...

Apply to get perfect job in modelling as freelance model, freelance singer, freelance actors for short films, movies and for other artists jobs in India. Call for all the budding models in India. Apply for freelance modelling jobs, freelance singing jobs,freelance acting jobs, freelance cinematography jobs in India. casting calls