While trying to mount a database, Exchange administrators may sometimes face a dirty shutdown error. This dirty shutdown error will not let them mount the database as it is in an inconsistent state. It is the sudden termination of the Exchange Server (due to reasons like power loss) that causes a dirty shutdown error.
When you make changes in an Exchange database, Exchange records updates information in transaction log files before committing to the database. But when the log files are not replayed into the database and the modifications you have done are not reflected in the Exchange Database. In such case, your database is in an inconsistent state. This results that the log files are corrupt, missing, or damaged. So, when your database is inconsistent and you are trying to mount this, you will face a dirty shutdown error.
There are many reasons of dirty shutdown error:
- Faulty Exchange server updates or relying on outdated versions.
- EDB files are not detached from log files properly.
- Log files are missing from the server.
- Log files are damaged.
- The server is unable to read the log files.
To fix this dirty shutdown error, you should check the status of the database to see whether it is in dirty shutdown or clean shutdown. Use the below command on the Exchange Management Shell (Run as Administrator) to check the database status:
If the Exchange database is in a dirty shutdown state, then you have to fix it. Use the following steps to fix the dirty shutdown error:
- Create a backup of your entire Exchange database files.
- Run eseutil command to check the consistency of the tool. Execute the command mentioned below on the Exchange Management Shell.
eseutil /mh < path to database >
- Now perform soft recovery on the database with this command:
- Now, recheck the consistency of the database. If it is still in an inconsistent state, then perform hard recovery. Run this command:
- Now it’s time to perform defragmentation on the database.
- Finally, check the integrity of the database with the below command.
eseutil /r enn /l < path to log files > /d < path to database file > /i
Well, if you’re still not getting the desired result, then you should recover mailboxes from the EDB file or the available Exchange backup files.
Recoveryfix for Exchange Server helps you in recovering mailboxes from dismounted EDB files. Yes, you can repair your Exchange database using this tool without log files, and then you can export them to Exchange Server or Office 365 directly. In this software, you just need to add your offline EDB file as the source, and the software will automatically repair it. Then, it offers you the option to export mailboxes to Exchange server, Office 365 or Outlook PST files.
When you cannot mount EDB files due to dirty shutdown errors, you can try recovering data from offline EDB files by EDB to PST conversion. The entire recovery process is relatively easy by following these steps:
- Launch the installed Recoveryfix for Exchange server tool and select the Offline EDB file as the source.
- Add EDB file from your system hard drive and then move ahead.
- Here, the EDB file is successfully added as the source. The tool also offers a preview of the mailbox data.
- Right-click on the Source Files and select Export mailboxes to PST.
- Select the mailboxes or mailbox folders, apply filters on data (like Date Range and Item Type) and select the required options (to split it into multiple PSTs & to create Unicode PST). Then click Export.
Now, your Exchange mailboxes are successfully exported to PST files from EDB files.
Conclusion
In this article, we have dealt with the Exchange database dirty shutdown error by executing a bundles of cmdlets in the Exchange management shell. Using a manual process to repair a database may result you spending several hours without assurance of recovery and during the procedure, and the user’s ability to access, send and receive the emails will be restricted. Considering the risk of manual process failure, we have explained the use of an advanced and user-friendly Recoveryfix for Exchange Server recovery tool to recover the Exchange data efficiently and securely in the simplest manner.
Read Related Blog