Microsoft Exchange store maintenance is the term applied to a series of operations performed by the Microsoft Exchange Information Store service to ensure logical consistency in the databases. The operations ensure items no longer needed by the system are removed from the database. If a custom schedule has not been defined for the database in Exchange System Manager, a default scheduled period from 00:00 through 05:00 local time will be used.
Overall, there are 10 tasks performed by the Microsoft Exchange Information Store service during this period.
If the maintenance window ends before one of the 10 tasks is completed, the last task running is recorded. The last task will be allowed to run until completion, which could exceed the maintenance window. During the next maintenance window, the Microsoft Exchange Information Store service determines the last task in progress and restarts the process, essentially picking up where it left off on the next task.
The progress of the tasks can be monitored by adjusting the Event Logging Level to minimum for the Microsoft Exchange Information Store service. When set to minimum, the following events are logged:
Event Type: Informational
Event Source: MSExchangeIS Public / Private
Event ID: 1208
Description:
Starting the IS Maintenance tasks.
Event Type: Informational
Event Source: MSExchangeIS Public / Private
Event ID: 1210
Description:
The IS Maintenance task <subtask name> completed.
Event Type: Informational
Event Source: MSExchangeIS Public / Private
Event ID: 1209
Description:
The IS Maintenance tasks completed.
An eleventh task, online defragmentation, is performed by Extensible Storage Engine (ESE). At the completion of the list of tasks, the Microsoft Exchange Information Store service initiates online defragmentation by calling ESE to start the defragmentation process. This process will start only after at least one of the 10 tasks has been successfully completed.
The progress of online defragmentation can be monitored by reviewing the application log without adjusting the Event Logging levels. When the Microsoft Exchange Information Store service initiates ESE online defragmentation for a database, the following is logged:
Event Type: Informational
Event Source: ESE
Event ID: 700
Description:
%1 (%2) %3Online defragmentation is beginning a full pass on database '%4'.
If a full pass of online defragmentation completes within the maintenance window, the following is logged indicating completion:
Event Type: Informational
Event Source: ESE
Event ID: 701
Description:
%1 (%2) %3Online defragmentation has completed a full pass on database '%4'.
If a pass of the online defragmentation was interrupted due to window expired or backup initiated, the following event is logged:
Event Type: Informational
Event Source: ESE
Event ID: 704
Description:
%1 (%2) %3Online defragmentation of database '%4' was interrupted and terminated. The next time online defragmentation is started on this database, it will resume from the point of interruption.
If the previous online defragmentation cycle was interrupted before it completed a full pass of the database, the following is logged instead of the previously described event:
Event Source: ESE
Event ID: 702
Description:
%1 (%2) %3Online defragmentation is resuming its pass on database '%4'.
If a resumed pass of the database completes within the maintenance window, the following is logged:
Event Type: Informational
Event Source: ESE
Event ID: 703
Description:
%1 (%2) %3Online defragmentation has completed the resumed pass on database '%4'.