Exchange How To
How to Recover an Exchange Database Without Log Files
Exchange cannot mount a dirty database when transaction logs are gone. Compare the log range with the files you have and choose the recovery that keeps the most mail.
- Eseutil checks with exact commands
- Backup restore and hard repair
- Mailbox recovery without any logs
- Works for Exchange 2019 to 2003
1What is it?
What Happens When Exchange Log Files Vanish?
Exchange records every change in the logs before the database and needs them to finish a dirty shutdown.
Dirty shutdown leaves changes that sit only in the log files. Exchange replays those logs at the next mount and brings the database to a clean state.
Soft recovery stops when one file in the required range is gone. Mailboxes stay out of reach while the database stays dismounted.
Eseutil /mh lists the range under Log Required. Compare that range with the files in your log folder to see which ones are gone.
2Why does it happen?
What Causes Missing Log Files?
Knowing the cause tells you whether a backup exists to fall back on.
Manual Cleanup
An admin deletes old logs to free disk space and removes files that the database still needs.
Antivirus Quarantine
Scanners that do not exclude Exchange folders quarantine log files.
Disk Failure
A failing drive loses the log volume while the database volume survives.
Circular Logging
Circular logging deletes a log once Exchange saves its data to the database.
Ransomware
Malicious software encrypts or removes the log folder.
Database Moved Alone
Someone copies the EDB file to a new server and leaves the logs behind.
3Can I do it myself?
How to Recover a Database Without Its Logs
Start with the checks. Move to hard repair only when no backup exists.
- 1Check
Check the Required Logs
Enter
Eseutil /mh D:\DB01\db01.edband note the Log Required range. Then enterEseutil /ml D:\DB01\Logs\E01to test the log files you still have. - 2Restore
Restore a Backup
Restore the latest backup of the database with its logs. Enter
Eseutil /cc D:\Restoreto finish the recovery with the logs that came with the backup. - 3Hard
Repair as a Last Resort
Enter
Eseutil /p D:\DB01\db01.edbafter you copy the file to safe storage. Hard repair mounts the database without the missing logs but removes pages that it cannot fix. - 4Defrag
Defragment the Repaired File
Enter
Eseutil /d D:\DB01\db01.edbto rebuild the indexes. Keep free space equal to 110 percent of the database size.
Microsoft documents these switches in the Eseutil guide.
Move the mailboxes into a new database once the repair finishes. Repaired files carry hidden damage.
4What are the limits?
When Manual Repair Falls Short
Every manual route trades something. Weigh the loss before you choose one.
Missing Logs Block Soft Recovery
Soft recovery needs every file in the Log Required range.
Hard Repair Discards Data
Eseutil /p removes pages that it cannot fix and Microsoft does not support the database afterward.
Defrag Needs Space
Eseutil /d needs free disk space equal to 110 percent of the database size.
5Is there an easier way?
How to Recover Mailboxes With EDB Recovery
RecoveryTools software opens the EDB file without a mount. You skip the log file replay and keep your mailboxes.
- 1Download
Install the Demo
Download Exchange EDB Recovery and install it on any Windows computer. Your Exchange server does not need to be online.
- 2Add
Add the EDB File
Click Add File and select the dismounted EDB file. Linked STM files load when they sit in the same folder.
- 3Scan
Select Quick or Advance Scan
Select Quick scan for light damage and Advance scan for heavy damage that Eseutil cannot repair.
- 4Export
Preview and Export
Preview the mailboxes and export the data to a file format, Office 365 or a live Exchange Server. Demo mode saves 25 items per folder.
Screenshots of every step sit in the Exchange EDB Recovery guide.
6Still have a question?
Questions About This Exchange Task
Can I mount a database when the log files are gone?
Only a database in Clean Shutdown state mounts without its logs. Dirty databases need the logs or a hard repair.
How do I find which logs the database needs?
Enter Eseutil /mh with the path of the EDB file and find the Log Required line.
Can I delete the checkpoint file to fix it?
No. Deleting edb.chk does not bring back lost logs and can leave the database in a worse state.
Does hard repair bring back lost emails?
No. Eseutil /p removes pages that it cannot fix and never restores anything. Back up the file before you try it.
Can I get mailboxes out without any logs?
Yes. RecoveryTools Exchange EDB Recovery scans the EDB file without the logs, previews the mailboxes and exports them.
Should I avoid circular logging?
Circular logging saves disk space but removes logs that a restore after a crash needs. Keep it off on servers that you back up.
Which Exchange versions does EDB Recovery support?
Exchange Server 2019, 2016, 2013, 2010, 2007 and 2003 work in 32 bit and 64 bit editions.
7Where next?
Related Exchange Tools and Guides
RecoveryTools Exchange EDB Recovery
Recovers mailboxes from corrupt and dismounted EDB files.
RecoveryTools EDB to PST Converter
Saves EDB files as PST files that open in Outlook.
RecoveryTools Exchange Log Analyzer
Opens Exchange transaction logs and recovers corrupt log files.
RecoveryTools Exchange EDB Reader
Free viewer that opens EDB files and lists mailbox items.
Recover Your Exchange Mailboxes With the Free Demo
Download the free demo, preview your mailboxes from the EDB file and buy the license when the data looks right.