EDB or Exchange database files store all the mailbox data, which ultimately grows big when new users and data are added. This can have an adverse effect on business performance and introduce Exchange Server errors that might be unavoidable.
Before we learn about how to deal with EDB file too large issue, let us focus on the consequences of large size EDB files.
It is important to manage the database and troubleshoot such problems within time to avoid issues to keep the database healthy. Let us discuss the consequences of Windows EDB too large in detail.
An Exchange Database contains multiple user mailboxes, and there can be multiple databases in a single Exchange Server. As the size of the EDB grows, it becomes a hassle to manage Exchange EDB file size. Below are some drawbacks/ repercussions of an EDB file too large in size:
When the EDB file size keeps on increasing and fills the database to 100% of its capacity, the Information Store service will dismount the .edb file. It will affect the whole organization, as all email-related work will be halted until you reduce EDB file size in Exchange Server.
It is difficult to search the mailbox items in a large EDB file. Indexing all the mailbox items in an oversized database requires heavy resource usage. This, in turn, leads to slow indexing and searching. Things become worse when your EDB file has duplicate data. It further slows the whole search process and often lowers productivity.
I have seen it happen multiple times. When the EDB file size is too large, the database crashes several times. Multiple sudden crashes lead to EDB file corruption. To resume the state of the work, admins need to immediately repair corrupt Exchange database either by replaying the uncommitted logs or with an EDB backup file.
When you reduce EDB file size, it not only makes space for more emails but also brings more benefits to the Exchange Server.
If the administrators follow the below practices, avoiding EDB file issues is very easy.
Exchange administrators may not realize the growth of their Exchange databases. And this unusual growth often leads to database dismounting and inaccessibility issues. Luckily, there are many ways to reduce EDB file size in Exchange Server. Some are discussed here:
It is one of the most obvious methods to effectively manage Exchange EDB file size. Deleting unwanted data will create more free space for adding new data. But make sure you don’t end up erasing important data accidentally, which is why it is important to backup the whole Exchange database before you make the move. However, it may happen that even after deletion, you do not see any reduction in the size of the EDB file. But don’t worry—the space cleared by deleting the data is there and Exchange will use it whenever users are adding new data (instead of increasing the database size).
Offline defragmentation helps remove white space in the Exchange database, allowing you to reclaim the free space available. This process compresses databases, erase the blank and unused space, and reduces the database size. Thus, it effectively brings continuity in storage. Eseutil is the Microsoft utility that helps in defragmentation, and you can use the Eseutil switches to defragment and repair EDB files. However, this process has its disadvantages, making it a slow process and can be performed only after dismounting the database (it means that all the mailboxes of the database will be unavailable for a considerable period of time). Once the process is completed, you need to mount the database again to restore the Exchange Server.
You can get the amount of whitespace in a database by running the following cmdlets in Exchange Management Shell:
Get-MailboxDatabase -Status | Format-List Name, DatabaseSize, AvailableNewMailboxSpace –Auto
Before starting defragmentation, ensure that you have enough free space (110% of the size of the database) available on the server (or the network). Now, stop the Exchange Information Store service, and follow the procedure below to perform the defragmentation:
Dismount –Database <Database Name>
Eseutil /d "<database location\DatabaseName.edb>" /t "<a temporary location\TempDatabaseName.edb>"
Mount –Database <Database Name>
Remember: The speed of Eseutil utility is usually 9 GB/hour and may vary according to the hardware and system environment.
Instead of performing defragmentation, many Exchange administrators create a new database, and then move Exchange mailboxes to new database from the older one. The older one can be deleted thereafter. It helps them achieve the same results as defragmentation. The advantage is that the mailbox downtime is negligible. Also, it can be done from the Exchange interface (like Exchange Admin Center).
Exchange administrators can back up the unused data in a different location and delete the same from the server to reduce the database size. And for exporting, they can try ExMerge or export cmdlets, depending on the version of Exchange.
In Exchange 2010, use the following cmdlets to export mailboxes to a PST file:
New-MailboxExportRequest -Mailbox <Mailbox Name> -FilePath < network share path of PST file >
You can also use the EAC to export mailboxes. But if your EDB file is dismounted, then you cannot use either EAC or the EMS to export mailboxes. In such case, you have to utilize a specialized EDB to PST converter tool that allows you to access the offline .edb file and export bulk mailboxes to PST.
As an Exchange admin, you must make sure the server is always at its peak performance. Remember to create a comprehensive EDB file backup before you try the above methods to reduce EDB file size in Exchange Server. In such a case your EDB is corrupted due to the oversized EDB file, repair it with eseutil (soft or hard recovery), and if that fails (due to severe corruption), use an advanced Exchange database recovery tool.