Do You Need Log Files to Repair the Database?
Exchange records every edit in a transaction log before it reaches the database. The logs let Exchange replay work that did not finish when a server stopped.
Not every database needs them. Microsoft explains that a database shut down correctly is in a clean shutdown state and has detached from its log files. Check the state of the Exchange database before you do anything else.
eseutil /mh "D:\Mailbox\DB01\DB01.edb"| State in the header | Meaning | Log files needed |
|---|---|---|
| Clean Shutdown | Exchange committed all changes | No, you can mount the database |
| Dirty Shutdown | Changes wait in the logs | Yes, the Log Required field lists them |
Which Errors Appear When Logs are Gone?
A missing or damaged log stops soft recovery. Microsoft lists these codes in its Eseutil error reference.
| Error | Name | Meaning |
|---|---|---|
| -501 | JET_errLogFileCorrupt | A log file has physical damage and cannot be repaired |
| -514 | JET_errBadLogVersion | A different Exchange version created the log |
| -515 | JET_errInvalidLogSequence | A log is missing or does not match the others |
| -533 | JET_errCheckpointCorrupt | Exchange deleted a corrupt checkpoint file |
Our JET error -501 guide explains the damaged log case in detail.
How do You Repair It Without Log Files?
Method #1: Restore a Backup (Free With Your Backup)
Who it suits. Admins with a recent Exchange aware backup. Extra application. None.
Microsoft advises that you should not use Eseutil repair when you can restore from backup without data loss. Restore the Exchange database and replay the logs that came with the backup. You lose only the mail that arrived after the backup.
Method #2: Use Eseutil /p (Free, Data Loss Possible)
Who it suits. Admins with no backup who accept data loss. Extra application. None.
- Copy the Exchange database and every log file you still have to a safe disk.
- Dismount the database.
- Execute the repair command and accept the data loss prompt.
- Check the state again with eseutil /mh. Expect Clean Shutdown.
- Mount the database and move the mailboxes to a new database.
eseutil /p "D:\Mailbox\DB01\DB01.edb"Microsoft states that repair discards data it cannot fix. A repair can finish and still produce a database that will not mount. Microsoft IT practice is to move mailboxes soon after a repair instead of leaving a repaired database in service.
Heads Up. Eseutil /p needs free disk space for a temporary database. Check the space before you start.
What if Repair Fails or You Cannot Accept Data Loss?
Method #3: Exchange Recovery Software (Paid After Demo)
Who it suits. Admins with a dismounted or damaged EDB file and no logs. Extra application. Exchange Recovery Tool.
The Exchange Recovery Tool reads an offline EDB file directly, so it does not need the transaction logs. It previews the mailboxes and exports them to PST or other formats. Test the demo on a copy of the database first.
Our EDB file guide explains the file, and the JET error 1018 guide explains page damage that can follow.
What should You do After the Database Mounts?
- Take a full backup at once.
- Move mailboxes to a new Exchange database.
- Check disk health and power protection.
- Test restores on a schedule.
Backups that Exchange recognizes clear old logs. A steady schedule stops logs from filling the drive.
Frequently Asked Questions
Can You Repair an Exchange Database Without Log Files?
Yes. Restore a backup, use Eseutil /p with data loss or use recovery software that reads the EDB file with no logs.
How do You Know if an Exchange Database Needs Its Logs?
Check the header with eseutil /mh. Clean Shutdown needs no logs. Dirty Shutdown lists the log files it still requires.
Is Eseutil /p Safe?
No. Microsoft states that repair discards data it cannot fix. Copy the files first and use it as a last resort.
What does Error -501 Mean?
It means a log file has physical damage. Microsoft states that you cannot repair or recover such a log file.
Does Eseutil /p Fix a Missing Log?
It does not replay logs. It forces the database to a consistent state and removes pages it cannot repair.
Should You Move Mailboxes After a Repair?
Yes. Microsoft IT practice is to move mailboxes soon after a repair instead of leaving the database in service.
Does Recovery Software Need Log Files?
No. It reads the EDB file directly. Test the demo on a copy before you buy.
Author's Verdict
Check the shutdown state first, because a Clean Shutdown database needs no logs at all.
Restore from backup when you can, and save Eseutil /p and recovery software for the cases with no backup.
Key Takeaways
- Eseutil /mh shows if you need the logs.
- Eseutil /p removes data it cannot repair.
- Move mailboxes to a new Exchange database after any repair.
Related Guides