Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

6.16. Performing an Offline Defragmentation

Problem

You want to reclaim whitespace from your Exchange database, so you need to take it offline and defragment it.

Solution

Using a command-line interface

  1. Dismount the Exchange Server database to be defragmented as described in Recipe 6.8.

  2. Open a command window (cmd.exe).

  3. Change to the directory where the database you want to defragment is located. This is optional, but it will save you some typing in the next steps.

  4. Run the eseutil utility to defragment the database:

    > eseutil /d /p "\pathToDBFile\dbName.edb"
  5. Wait. Database size and the amount and location of whitespace affect the time it takes to defragment it.

    • When defragmentation completes, remount the store as described in Recipe 6.7.

    • Use the recipes in Chapter 11 to make a full online backup. When you defragment the database, its database signature changes, so previous log files can't be applied against the new EDB/STM pair.

Discussion

In normal operation, it is almost never necessary to defragment the database as it will simply grow again as more messages are sent and received. Some activities can return large amounts of space to the database whitespace pool. For example, moving large numbers of mailboxes off a server will mean that the space formerly used by those mailboxes is available; if you move enough mailboxes, this savings can be significant. To run an offline defragmentation, Microsoft recommends that you have 110% of the database size available as free disk space—for a 40 GB database, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page