Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


September 25, 2003

Exchange's Daily Scheduled Maintenance

RSS
Subscribe to Windows IT Pro | See More Exchange Information Store Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Most mornings, I get up to work at 5:00 a.m., while my three young sons are still sleeping. That way, I can do some productive work and get a good head start on the most important tasks of the day. Exchange Server has a similar special time: the daily scheduled maintenance period. This period, which by default occurs from 2:00 a.m. to 6:00 a.m., gives the Information Store (IS) a chance to perform several vital maintenance tasks--online defragmentation, tombstone maintenance, Deleted Item Retention store cleanup, Deleted Mailbox store cleanup, and index purging--that help keep your Exchange mailbox and public folder databases free of unnecessary clutter. Let's examine these basic tasks.

- Online defragmentation. As users add and remove messages, the amount of used space in Exchange's database files fluctuates. The IS conscientiously recycles free space in the database file, only increasing the size of the file when there isn't enough unallocated space. During an online defragmentation, the IS reallocates and rearranges pages to put all the free space in a contiguous block at the end of the database file. Doing so makes future allocations more efficient. After a defrag, you can check the event log for event ID 1221, which tells you how much free space a particular database file contains. This information in turn helps you estimate how long you have before the IS increases the database file size.

- Tombstone maintenance. This task sounds like something from an old John Ford movie, but in reality it's something altogether different. When a user marks an item for deletion from the IS, Exchange doesn't immediately delete the item. Rather, Exchange replaces the deleted item with a tombstone--basically, Exchange sets an "Is this deleted?" flag on the object and replicates the object (along with the flag) to other servers. After a 30- or 60-day period (depending on the object type), Exchange removes the tombstone and truly deletes the item during tombstone maintenance.

- Deleted Item Retention store cleanup. If you've turned on Deleted Item Retention, Exchange places deleted items in the Deleted Item Retention store (aka the dumpster). Deleted items stay in the dumpster until the end of the specified Deleted Item Retention period, after which Exchange deletes them.

- Deleted Mailbox store cleanup. Exchange Server 2003 and Exchange 2000 Server support a dumpster for deleted mailboxes. This mechanism can be a real lifesaver if you accidentally delete an important mailbox. The process is the same as for deleted items.

- Message table checking. The IS performs some limited consistency checking to examine the message tables in each mailbox and update those tables as needed. Don't confuse this process with the more comprehensive, and much slower, message table tests that Isinteg performs.

- Index purging. For efficiency, the IS dynamically builds database indexes when users change the view criteria in Outlook. However, keeping a limitless store of view information around is impossible, so after a variable period (usually about 7 days) old views expire and Exchange removes them.

The best part about these maintenance tasks is that they're completely automatic. Although you can change the times when the tasks run, you can't (and shouldn't) turn them off entirely. Exchange lets you control the allocated time window for maintenance, so if you set a window that's too brief, Exchange will defer some maintenance tasks until the next window. This delay can lead to IS instability or storage-utilization problems, so check the event log to verify that all your daily maintenance tasks are finishing. If they aren't, use the mailbox database or public folder database Properties dialog box's Database tab to lengthen the schedule window. Next week, I'll discuss other maintenance tasks that Exchange sometimes requires.

End of Article



Reader Comments
I for one would find it very useful to have a link to the next article in the series.

I read Paul's article on Exchange maintenance and liked the sound of the next one, as described at the bottom of the page, but there was no link.

I minor inconvenience but annoying none the less.

Simon Oddy February 19, 2004


I completely agree. Anybody know the article ID #?

weisrc July 03, 2006 (Article Rating: )


I agree too, and I've asked the editors to add a link to this article. Thanks for the suggestion!

paulrobichaux August 01, 2006 (Article Rating: )


I've added the link to Paul's next Exchange maintenance article, "Your Manual Maintenance To-Do List," #40506.

AnneG_editor August 01, 2006 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Windows 7 Sets Sales Record

Microsoft CEO Steve Ballmer described Windows 7's first ten days of sales as "fantastic" while in Japan yesterday. ...


Related Articles 10 Tips to Keep Your Microsoft Exchange Server Humming

Exchange Server and Outlook Whitepapers Take Control of Your Email: Understand the Business Reasons for Email Storage Management

Continuous Data Protection and Recovery for Microsoft Exchange

Related Events WinConnections and Microsoft® Exchange Connections

Cutting Costs with Client Management

Check out our list of Free Email Newsletters!

Exchange Server and Outlook eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

The Expert's Guide for Exchange 2003: Preparing for, Moving to, and Supporting Exchange Server 2003

Related Exchange Server and Outlook Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Exchange & Outlook UPDATE eNewsletter
News, strategies, products, and developments in Exchange Server and Outlook messaging.

Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement