EdbMails EDB Recovery and Migration software
  • Reseller
  • Free Trial
  • Video Tutorials
  • Support
  • FAQ
  • Free Tools
  • Knowledge Base
  • Products
    Exchange EDB / Email Recovery Tools
    • EDB Recovery and MigrationRecover EDB to PST, EDB to Office 365 and Exchange NO Duplicate Migration
    • OST Recovery and MigrationRecover OST to PST, OST to Office 365 and Exchange Migration
    • PST Recovery and MigrationRecover Outlook PST, PST to Office 365 and Exchange Migration
    • MBOX Export and MigrationExport MBOX to PST, MBOX to Office 365 and Exchange Migration
    • NSF Export and MigrationExport NSF to PST, NSF to Office 365 and Exchange Migration
    Exchange and Office 365 Migration
    • Exchange Server MigrationMigrate Exchange 2007, 2010, 2013, 2016, 2019 to Office 365 tenants. Also, migrate between Exchange servers and PST
    • Office 365 MigrationMigrate Source Office 365 tenants to Destination Office 365 tenants. Also, migrate to Exchange Server and PST
    • IMAP Email Backup & MigrationMigrate all IMAP email servers (Gmail, Zimbra, Zoho, Yahoo etc.), Office 365, Exchange and Backup to Outlook PST
    • SharePoint Online MigrationMigrate documents, files and folders from SharePoint sites
    • OneDrive for Business MigrationMigrate documents, files and folders from OneDrive
    • Microsoft Teams MigrationMigrate Teams, documents, files and folders etc.
    Exchange and Office 365 Backup
    • Office 365 BackupIncremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    • Exchange Server BackupIncremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    • SharePoint, OneDrive & Teams BackupBackup Online site collections, Team sites, Office 365 groups, all documents etc.
    • Duplicate Remover - Office 365 & Exchange Remove duplicate emails, calendars, contacts, journal etc. from Office 365 and Exchange
    • GAL and All Address Lists migrationDirectly migrate Exchange and Office 365 Global address list and Address Lists items
    Go to products
  • Pricing
  • Features
  • Download
  • Account
    1. Home
    2. Product
    3. Exchange Server Dirty Shutdown Errors

    Resolve Dirty Shutdown error of Exchange database

    Steps to recover Exchange server from Dirty Shutdown error by using EdbMails

User Manual

  • Overview
  • System Requirements
  • Installation
    • Installation process
    • Reinstall or Upgrade
    • How to uninstall
  • Initial Setup
  • FAQ
    • EDB to PST
    • EDB to Office 365 Migration
    • EDB to Exchange Migration
    • EDB Public Folder to Office 365
    • EDB Archive Mailbox to Office 365
    • EDB Public Folder to Exchange
    • EDB Archive Mailbox to Exchange
  • Videos
    • EDB to PST Converter
    • EDB to Office 365 Migration
    • EDB to Exchange Migration
    • EDB Public Folder to Office 365
    • EDB Archive Mailbox to Office 365
    • EDB Public Folder to Exchange
    • EDB Archive Mailbox to Exchange
  • Screenshots
    • EDB to PST
    • EDB to Office 365 Migration
    • EDB to Exchange Migration
    • EDB Public Folder to Office 365
    • EDB Archive Mailbox to Office 365
    • EDB Public Folder to Exchange
    • EDB Archive Mailbox to Exchange
  • How it works?
    • EDB to PST Converter
    • EDB to Office 365 Migration
    • EDB to Exchange Migration
    • EDB Public Folder to Office 365
    • EDB Public Folder to Exchange
    • EDB Archive Mailbox to Office 365
    • EDB Archive Mailbox to Exchange
  • Connect to Exchange server for multiple mailboxes migration
    • Connect with Global Admin
    • Connect to multiple users using CSV file
    • Connect using full access permission
    • Connect individual users for Single / Specific user Migration
  • Connect to Hosted Exchange for its Migration
    • Connect with Full Access permissions
    • Using multiple user credentials with CSV file
    • Connecting to Individual user for its migration
  • Connect to Office 365
    • Modern Authentication Using OAuth 2.0
      • Microsoft 365 modern authentication
      • Automatic Registration
      • Manual Registration
    • Connect with Global Admin
    • Connect to Office 365 with full access permission
    • Connect to Office 365 with CSV file option
    • Connect to Office 365 as single user mailbox
  • Set Exchange Server Impersonation rights
    • Exchange 2007 and below
    • Exchange 2010, 2013, 2016 and 2019
    • Set using Exchange Server GUI
  • Knowledge Base
    • How to recover Microsoft Exchange server from Jet Errors
    • Repair a corrupted Exchange database (EDB) file
    • Open and view an EDB file without Exchange server
    • Recover data from an Exchange server crash
    • Open and view an Exchange EDB file
    • Export a disconnected Exchange mailbox
    • Resolve Exchange database consistency check failure
    • Import an Exchange database file (.EDB) into a new Exchange
    • Recover deleted Exchange server mailboxes
    • Resolve Dirty Shutdown error of Exchange database
    • Restore an Exchange server database
    • Export Exchange mailboxes to Outlook PST
    • Export Exchange Public folders to Outlook PST
    • Extract mailbox and export EDB to Outlook PST
    • Export Exchange emails to PST by specific date
    • Export Exchange Archive mailbox to PST
    • Resolve Exchange database fails to mount error
    • Fix Content Index State Failed and suspended error
    • Recover emails from a dismounted Exchange database
    • Exchange database is mandatory on UserMailbox
    • Exchange database status unknown error
    • Restore Exchange 2016 mailbox from Recovery database
    • Move Exchange mailbox to another database
    • Check Exchange database health
    • Backup Exchange server database
    • Reduce Exchange database file size
    • Unable to Mount Database (hr=0x80004005, ec=1108)
    • Exchange Server Disaster Recovery Plan
    • Exchange database in clean shutdown fails to mount
  • Incremental Migration
  • Exchange Throttling Policy
  • Set Office 365 Impersonation rights
    • Using PowerShell commands
    • Using Office 365 GUI
  • Multifactor Authentication
    • Enable MFA in Office 365
    • Map the Mailboxes
    • Create App password for MFA
    • Disable Security Defaults

Role of transaction log files in Exchange server

Microsoft Exchange server is a widely used email and communication system that is used by organizations all over the world to send messages, store files and attachments, sort mail into folders, and collaborate on tasks. An IT administrator can create user mailboxes on the Exchange server, which are stored in the Exchange database file also abbreviated as EDB. An Exchange server does not directly write changes to the database file because it is a slower method of access. Instead, the changes and updates to the mailboxes are temporarily saved in the Exchange server's memory and written to log files before being committed to the database file. As a result, it's important to understand the purpose of Exchange transaction log files and how they affect database performance.

What are Exchange transaction log files?

A transaction log in Microsoft Exchange server is a file that records all transactions that are updated in the server's memory before they are finally committed to the database. It safeguards the integrity of the database file and, together with the checkpoint files, ensures the database's efficient operation.

Following a series of operations, the Exchange server replays or commits the transactions from the log file to the database. However, if the server is unable to perform an operation due to a power outage or crash, the transaction is not committed to the database making it inconsistent with the log files.

QUICK LINKS

Repair Exchange Database EDB from Dirty Shutdown error Resolve Exchange Dirty Shutdown Error 2016/2013/2010 Exchange Database Corruption and Dirty Shutdown Scenarios Reasons for Exchange Database Corruption How to fix Failed to Mount Exchange Database error How to repair exchange database without log files

Exchange server from Dirty Shutdown error

What is a Clean Shutdown of Exchange database?

A Clean Shutdown is the state of the Exchange database after all transactions in the log have been successfully committed to the database. In this state, the database file is said to have been properly closed (consistent) without errors, and the EDB can be mounted to the Exchange server.

What is Dirty Shutdown?

A Dirty Shutdown is an Exchange database state that occurs as a result of incomplete transactions that have not been committed to the database file (.EDB) due to factors such as missing log files, Exchange server shutdown, or EDB file corruption. Let's take a look at some of the causes of Dirty Shutdown in databases.

What are the causes of Dirty Shutdown?

One of the most common causes of the Dirty Shutdown state is that log files on the Exchange server are missing or deleted. When you run the eseutil utility to check the status of the database, it displays the missing log files that caused the database to become dirty. Other reasons for the Dirty Shutdown error are listed below.

  1. Sudden or abrupt termination of Exchange server.
  2. Missing or deleted log files from the Exchange folder
  3. The Exchange database is inconsistent with the log files.
  4. Power failure when the Exchange server is committing to the database.
  5. Virus attack and ransomware threats to your system.
  6. Physical and logical corruption of the EDB file.
  7. Oversized EDB file leading to Exchange server crash.
  8. Hard-disk failure on which Exchange server is installed.
  9. Faulty Exchange server updates or relying on outdated versions.
  10. Conflict with installed anti-virus applications.
  11. Failure of Exchange to correctly read the transaction log files.

What happens when an Exchange database enters the dirty shutdown?

When the Exchange database enters the Dirty Shutdown state, the user mailboxes become inaccessible, and it is impossible to directly mount the database to the server. Because the transactions to be committed are still pending, the database is said to be dirty and inconsistent with the log files.

In addition, an Exchange server cannot mount the database file while it is in Dirty Shutdown and displays errors such as ‘failure to mount the database’ and Jet Errors with the following error codes.

  • Failed to mount database ‘Database_123’ hr=0x80004005, ec=-528. An Active operation Manager Failed.
  • Failed to mount database ‘Database_123’ hr=0x80004005, ec=-530
  • Operation terminated with error -550 JET_errDatabaseDirtyShutdown, Database was not shutdown cleanly.
  • Operation failed with the message: MapiExceptionDatabaseError. Unable to mount the database (hr=0x80004005,ec=-528).

How to check the Exchange database for dirty shutdown?

To check the Exchange database for clean or dirty shutdown, launch Eseutil from the Exchange server's bin directory and run the command eseutil /mh on the database file. If the database is inconsistent with the log files, the State 'Dirty Shutdown' is displayed.

How to Fix Exchange Database (EDB) Dirty Shutdown?

To resolve the Exchange database Dirty Shutdown error, make the database file consistent with the log files. This can be accomplished by restoring the missing log files or performing a soft and hard recovery with Microsoft's Eseutil tool. If you are unable to locate the missing log files or if the EDB file is severely corrupted, you can recover it using EdbMails Exchange recovery software.

Before you begin the recovery process, make sure you have a complete backup copy of the EDB file and any transaction log files. If you are using an older version of Exchange, such as Exchange 2003 or 2007, take a backup of the .stm, priv1.edb, and pub1.edb files, and make sure your computer has sufficient disk space for the recovery.

Steps to fix and recover database EDB file from Dirty Shutdown error

  • Step 1: Launch eseutil from the Exchange server bin directory
  • Step 2: To check the database's consistency and state, run the cmdlet eseutil/mh.
  • Step 3: If the State column displays 'Dirty Shutdown' with the log file number, the database is inconsistent.
  • Step 4: Copy the missing log files to the database folder if you have them.
  • Step 5: To perform a soft recovery and replay the log files, run the cmdlet eseutil/r.
  • Step 6: If the soft recovery fails, run eseutil/p to perform hard recovery.
  • Step 7: Defragment the Exchange database file using the cmdlet eseutil/d.
  • Step 8: Perform an integrity check using the IsInteg tool or NewMailboxRepairRequest cmdlet
  • Step 9: Finally, mount the database to the Exchange server to restore the mailboxes.

Remember that performing a hard recovery deletes data that eseutil cannot recover. This is a problem, for example, if your EDB file becomes corrupted as a result of physical or logical errors. Furthermore, depending on the size of your mailboxes, this method can take a long time and requires extensive technical knowledge. The hard recovery should only be used as a last resort; if you want to completely recover an EDB file without losing data, the best solution is to use the Edbmails Exchange database repair tool.

How to fix Dirty Shutdown in Exchange 2019, 2016, 2013, 2010, 2007 and 2003?

EdbMails can repair Dirty Shutdown errors in Exchange 2019, 2016, 2013, 2010, 2007, 2003 by fully repairing the EDB file and allowing you to migrate mailboxes to another Exchange server or export the EDB to Outlook PST format. Let's take a look at how to use the application to fix the error.

Steps to export disconnected Exchange mailboxes by using EdbMails

  • Step 1: From the Task Manager, terminate any running Exchange server services.
  • Step 2: Copy and save the offline EDB file from the Exchange directory to a secure location.

    Ensure that you take a backup copy of the EDB file and have Microsoft Outlook installed on your computer.

  • Step 3: Install and run the EdbMails Exchange recovery software.

    Download EdbMails and install the application on any computer. You can also perform the recovery and conversion by installing EdbMails on a non-Exchange server computer. The following steps describe how to get started with the application.

    installation

    Launch the application and click 'Log In' or 'Start Your Free Trial'.

    Demo login EdbMails

    Select the migration method as 'EDB to PST. EDB to Office 365. EDB to Exchange'.

    EDB to PST, EDB to Office 365 & Exchange

  • Step 4: Using EdbMails, navigate to the folder and select the offline EDB or STM file.

    Select the Exchange database file that is in the dirty shutdown state to recover and convert the EDB to PST. Alternatively, you can migrate the Exchange mailboxes to Live Exchange or perform the EDB to Office 365 migration

    Select EDB file

  • Step 5: Select all the mailboxes and click 'Migrate to live Exchange'.

    Migrate EDB to live Exchange server

  • Step 6: Enter the 'IP Address' or 'User Credentials' to connect to the target Exchange server.

    Select 'Connect using Global admin User' and select 'Connect to Mailbox(es)'. You can also connect to a specific user mailbox or load a list of user mailboxes by using a CSV file.

    Source Exchange Server Conection

    Connect to the Exchange server using Default connection or Autodiscover Email options. Enter the required login credentials to connect to the target Exchange server mailboxes.

    Use Default connection

  • Step 7: Map the mailboxes from the EDB file to the target Exchange

    The mapping operation is useful if you have a large number of mailboxes to migrate. Verify the mapping and enter a name for the Exchange migration job to save the settings for future migrations.

    mailbox mapping

  • Step 8: Start the migration and verify the migrated mailboxes on the new Exchange.

    Begin importing your mailbox data and folders from the EDB file into Exchange 2019, 2016, 2013, or 2010, and then check the list of imported items with the View Log after the operation is finished. You can also pause and resume the migration.

    EDB to Exchange Migration

    You can also use EdbMails to export mailboxes to PST and then import the file into MS Outlook. This application has the advantage that it enables you to recover the EDB from Dirty Shutdown without log files or relying on Exchange server connection. EdbMails can also easily repair corrupted, disconnected, offline, and dismounted database files.

Conclusion

The Dirty Shutdown error occurs when the changes in the Exchange transaction log files are not committed to the database. As a result, the EDB file cannot be mounted, rendering the user mailboxes inaccessible. The Dirty Shutdown is caused by a variety of issues, one of which is missing or corrupted log files. Eseutil can be used to replay the log files and recover the EDB file. However, if the log files are no longer available or the database file is severely corrupted, the only option is to repair the corrupted EDB file with EdbMails. It is a Microsoft partnered Exchange recovery tool that can recover, convert, and migrate EDB files from any Exchange version (2003-2019).

Free Download
Buy Now
hidden msg

EdbMails Demo / Trial Version

Step 1. Download and install EdbMails

Step 2. Click the 'Start Your Free Trial' button

Demo login EdbMails

  • Home
  • Features
  • Pricing
  • Support
  • Download
  • Sitemap
  • FAQ
  • Video Tutorials
  • Technical Support
  • Live Chat
  • Contact Us
Shifttocloud Inc.
Rehoboth Beach, DE
United States
+1 (302) 416-3056

Privacy Policy | Terms of Use | GDPR | Security | Press Releases

© 2023 Shifttocloud Inc.

Live Chat

Hi, May I help you?

Hide Chat Now