Read Time: 8 minutes

Summary: A corrupt or unhealthy EDB can lead to data inaccessibility. Exchange administrators need to be proactive and prepare repair strategies beforehand to avoid such situations with minimum downtime. There are two methods available to restore Exchange database to a healthy state: with Microsoft’s Eseutil utility and using a professional Exchange Server Recovery tool.

Microsoft Exchange Server has revolutionized professional email communication for businesses, making it more convenient and efficient both internally and externally, regardless of the company’s size. Even though Microsoft provides high-end data security, some issues can disrupt the efficiency of your Exchange server. These threats hold the potential to make the Exchange database corrupt and inaccessible.

This Exchange server database shows obstructions in mounting until you completely fix the corruption and repair corrupt EDB file. Let’s go through this article and learn about EDB corruption in detail and how we can resolve it from the server.

Why Do You Need to Repair Exchange Database?

Repairing Exchange database corruption is crucial to make the email communication and data accessible to all users. Here is why it’s essential to repair EDB file:

  • Oversized database: When the size of the database increases beyond the allotted limit, it often causes issues for the users in executing their everyday operations. This becomes one of the primary reasons for corruption, leading the database to dismount itself.
  • Abrupt system or server shutdown: Abrupt shutdown of system due to sudden power crashes introduces errors in committing transaction logs. Hence, it creates the need to fix the error so that the database inconsistency can be handled.
  • Hardware failure: Anything from hard drive bad sectors or overheating of drives can cause damage in the EDB. Make sure to monitor the components of your installed hardware to avoid errors while working with it.
  • Human errors: Human errors such as accidental deletion of mailboxes, improper or incorrect dismounting of database, or errors related to transaction logs entry can cause interruption in the database.

Types of Exchange Database Corruption

Majorly, there are two types of EDB corruption in an Exchange server. Before we discuss these methods of Exchange EDB repair in detail, it’s crucial to understand these two types. So, without a further ado, let’s start:

  • Physical corruption: Physical corruption in the Exchange server database is basically a result of failure or inefficiency in hardware you are using to operate your Exchange Server on. This is the lower form of EDB corruption, and you can easily repair EDB files just by repairing or replacing these components with new ones.
  • Logical corruption: Logical corruption is something that occurs within multiple levels of the software. Jet engine database failure or invalid indexing are a few of the reasons that can lead to EDB file corruption.

Security Features of Exchange Server 2019

The latest version of Exchange Server has upgraded the security features to safeguard the user mailboxes. Here are some prominent features:

  • Windows Server Core Support: Using Exchange Server on Windows covers a lesser surface area. It reduces the chances of external attacks.
  • Block external access to Exchange admin center (EAC) and the Exchange Management Shell: There is a Client Access Rule to block the external usage of the Exchange Admin Center and Exchange Management Shell.
  • TLS 1.2 is the only version that’s enabled by default: For the betterment of client and server connections, the default encryption will be TLS 1.2 only. The older algorithms like DES, 3DES, RC2, RC4, and MD5 will remain disabled.

How to Check Corruption in Exchange Mailbox?

In the Exchange Server 2003, 2007, 2010, 2013, 2016, and 2019, run the following steps to check for corruption in your Exchange server database and mailboxes.

  1. Open Eseutil.exe
  2. Run the eseutil /mh command to identify if the database is in Dirty Shutdown or Clean Shutdown state.

If the result shows you a Clean Shutdown state, your database is free from errors or corruption. However, if you find a Dirty shutdown state, there is corruption and inconsistency in your EDB files, and repairing is crucial.

Run the given PowerShell command using Exchange Management Shell to find if there’s corruption in the mailbox of Exchange 2013, 2016, and 2019.

New-MailboxRepairRequest

The command will help you find one of the four corruption types: AggregateCounts, FolderView, ProvisionedFolder, and SearchFolder.

Eseutil helps in repairing the database only if the mailbox database is dismounted. However, the given PowerShell cmdlet helps repair corrupt Exchange database individual and multiple mailboxes without dismounting the online database.

How to Repair Corrupt Exchange Database Files?

Let’s discuss the step-by-step process to repair corrupt Exchange database using the Eseutil.

Using Eseutil Utility to Repair Exchange EDB Files

Eseutil is an inbuilt tool that serves various essential functions such as repairing corrupted Exchange server databases, defragmenting them, verifying database integrity, and optimizing storage by reducing database size.

    1. Locate the Exchange Database

The default location of the tool in Exchange 2013/2016 is:

C:\Program Files\Microsoft\Exchange Server\V15\Bindefault location of the Eseutil tool

 

The Eseutil tool offers extensive functionality, allowing you to perform various actions using a range of switches:

      • To repair the database: eseutil /p
      • To defragment the database: eseutil /d
      • To restore the database: eseutil /r
      • To verify checksum in the database: eseutil /k
      • To check the database integrity: eseutil /g
      • To do hard recovery: eseutil /c
      • To display the headers, logs, or checkpoint files: eseutil /m
      • To copy database and log files: eseutil /y
    1. First, dismount the database from Exchange.

      Dismount-Database –Identity <name of the database>dismount the database from Exchange

       

    2. Run Eseutil /d command

      eseutil /d <name of the database> /T <location of temporary path>Run Eseutil command

       

    3. After successfully running the Eseutil command, mount the database back to Exchange.

      Mount-Database –Identity <name of the database>mount the database back to Exchange

       

    4. Repair the database with Eseutil /p command.

      eseutil /p <location of the database>Repair the database with Eseutil

       

    5. Finally, run the new-mailbox repair request command to fix the errors in the database.

New-MailboxRepairRequest -Database <name of the database> -CorruptionType <type of corruption>run the new-mailbox repair request command

 

You can execute this command multiple times to eliminate all issues in the EDB.

Limitations of Manual Method

  • Running manual solution can often take several days to complete.
  • Need at least 1.2 times the storage of your corrupted EDB file to keep mailboxes.
  • Do not provide preview of the mailbox to allow selective repair.
  • Running eseutil command forcefully can cause corruption, resulting in data loss.

To avoid the complexity, proceed with the automated Kernel for Exchange Server tool to repair EDB files, which doesn’t require you to dismount the database or any other preparations to run a hassle-free repair.

Conclusion

When there is a corruption in the Exchange server database, administrators have two primary options to resolve it: Microsoft’s Eseutil and a professional Exchange Server Recovery software. While using ESEUTIL is suitable for soft and hard recovery, it may impact data integrity. This is why using the Kernel for Exchange Server tool is suggested for the repair, making it a more efficient solution for complex or severely damaged databases. Additionally, you can even migrate EDB to Live Exchange with this tool.

Frequently Asked Questions

Q. What are the requirements for Exchange EDB file repair?

Ans. Here are the prerequisites to repair Exchange database file:
1. Detailed backup of the database file beforehand to avoid data loss.
2. Note down the current Exchange Server version you’re using.
3. Must have administrator access to the server.
4. Dismount the database before beginning the repair.

Q. How to repair corrupt database with minimum downtime?

Ans. To repair corrupt Exchange database without any downtime, you must try Dial Tone recovery. In this method, you create a temporary empty database for the time being your original server is under repair. Apart from this, you can also use an advanced EDB to PST Converter to quickly repair a corrupt Exchange database and save it in accessible PST format.

Kernel for Exchange Server
Related Posts