Methods to remove White Spaces in the Exchange database

Siddharth Shukla
Siddharth Shukla

Published On - March 26, 2024

Summary: White space (AvailableNewMailboxSpace) is created by deleting the old record for new data in the Exchange database. This white space looks insignificant but could have more impact on the performance of the Exchange database. This article provides the different companion methods along with automated Recoveryfix for Exchange Server software to solve the issues simply.

Download Free

White spaces refer to the unused storage that is created by the deletion of old records in the Exchange database. When the user deletes the information from mailboxes, it doesn’t create free space for new data. Consider if the user removes 10 GB of data from the 50 GB Exchange database. However, after deleting the data, the user notices that the size remains the same as before.

However, the Exchange database still has 10 GB of data to store new data. Generally, ‘The Available new mailbox size’ is known as white space. This white space is not visible to the user but can be fixed manually by removing the free space to be reused to store the new data. Now, we’ll know the steps to detect the white space.

How to detect white space in the Exchange database?

It is necessary to detect and remove the white space regularly to enhance the performance of the server. PowerShell commands provide three ways to inspect the white space of Exchange Server. Run the following commands:

  1. Use this command to check the white space in a mailbox database:
  2. Get-MailboxDatabase -status | Select Name, ObjectServer, AvailableNewMailboxSpace

    command to check the white space in a mailbox

  3. Use this command to check the white space in multiple mailboxes on a single server:
  4. Get-MailboxDatabase -Status -Server | Select-Object Server, Name, AvailableNewMailboxSpace

    command to check the white space in multiple mailboxes

  5. Use this command to check the white space in all mailboxes on all servers:
  6. Get-MailboxDatabase -Status | Select-Object Server, Name, AvailableNewMailboxSpace

    command to check the white space in all mailboxes

Methods to remove the white space:

Defragmentation is the only method to remove the white spaces from the database manually. This process can be performed online mode and offline mode, both of which are explained below in detail:

Method 1. Offline defragmentation to remove white space in the Exchange

Dismounting the Exchange database involves the process of offline defragmentation. This process helps to reduce the size of the database by replacing the older pages with new pages or deleting them altogether. While performing Eseutil utility, ensure the availability of a large amount of free space for the prevention of data loss and corruption.

These are the steps of defragmentation of the Exchange database efficiently:

  1. Ensure the amount of white space is available in the Exchange database by following the below command in Exchange Management Shell.

    Get-MailboxDatabase < Database name > -Status | Format-List Name, DatabaseSize, AvailableNewMailboxSpace

  2. Run this command to dismount your Exchange database after checking the space in the database

    Dismount-Database < database name >

    command to dismount your Exchange database

  3. To defragment the database, follow this command:

    Eseutil /d < database_name >

    defragment the database

  4. Now, run this command to mount the defragmented dismounted database

    Mount-Database < database name >

  5. Finally, check the availability of white space in your database after defragmentation.

    Get-MailboxDatabase < Database name > -Status | Format-List Name, DatabaseSize, AvailableNewMailboxSpace

Method 2. Online defragmentation

The online defragmentation process is performed every night automatically on the Exchange server. It doesn’t reduce the database size but removes the deleted mailboxes and expired messages and maintains the optimal performance of the database.

It is well known that unused whitespace can cause storage, backup and performance issues on the Exchange database and may corrupt and crash the database. Fragmentation consumes more time, restricts access during the process and makes the complicated.

Use Recoveryfix for Exchange Server software to fix any Exchange issue

There is a risk of data loss and database corruption in the defragmentation process. To overcome these risks, try advanced and automatic Recoveryfix for Exchange Server Recovery software that handles the difficulties of recovering data and makes the process easier. This tool is also an effective method to resolve exchange-related issues like mounting exchange server error, dirty shutdown, recovering mailboxes, migrating to other platforms, etc.

Recoveryfix for Exchange Server

Conclusion

In the above sections, we have seen the different methods to remove white spaces in the Exchange database. If you’re still facing the issue, then there is corruption in EDB file. For fast, secure and easy recovery of your Exchange database, use automated Recoveryfix for Exchange Server Recovery tool, which scans and recovers mailboxes with all the data from offline and dismounted files affected by white space issues and saves them to your preferred destination with the integrity of data.

Download Free

Leave a Reply

Your email address will not be published. Required fields are marked *

  +  40  =  46

Related Posts
Browse by Category