
How to Determine the Amount of Free Space in a Database
The amount of free space that is available in an Exchange database file is displayed in an event that is logged in the event log after an online defragmentation of the database is performed. The online defragmentation is performed automatically during normal database maintenance. In addition, the event is logged in the event log even if the associated logging level is set to None.For mailbox or public folder databases, an event similar to the following event is logged in the event log:
Event Type: Information
Event Source: MSExchangeIS Mailbox Store
Event Category: General
Event ID: 1221
Date: 8/16/2006
Time: 9:15:00 AM
User: N/A
Computer: Computer Name
Description: The database "storage_group\mailbox_database" has nnn megabytes of free space after online defragmentation has terminated.
Note: |
|---|
|
In Exchange Server 2007, the event ID 1221 message description contains the following text: The database "storage_group\mailbox_database" has nnn megabytes of free space after online defragmentation has terminated. Storage_group is the name of the storage group, mailbox_database is the name of the mailbox database, and nnn is the amount of free space that is available in megabytes. The Computer Name is the name of the Exchange Server computer.
|
For queue databases (transport databases that reside on Exchange Edge Transport or Hub Transport server roles), an event similar to the following is logged in the event log:
Event Type: Information
Event Source:MSExchangeTransport
Event Category: Components
Event ID: 7007
Date: 8/16/2006
Time: 1:00:02 AM
User: N/A
Computer: Computer Name
Description: Online defragmentation has completed for database mail.que. The database has nnn free bytes.
Note: |
|---|
|
In the preceding description, nnn is the amount of free space available in bytes. The Computer Name is the name of the Exchange Server computer.
|
Another method to determine the amount of free space is by running a space dump with Eseutil /ms against an offline database file. (For example, run the following command: eseutil /ms Mailbox Database.edb.) The space dump outputs a table. From the table, take the number in the Availablecolumn and multiply it by the page size to determine the free space for the database file. For more information about the Eseutil file dump mode, see Eseutil /M File Dump Mode.