1. Run an offline defragmentation.  This will take run at about 2-5GB per hour, depending on hardware.  An offline defragmentation has certain disk space requirements.  You will need disk space equal to your database size plus and additional 10 percent. For example, if your database is 16GB, you will need an additional 16GB of space plus an additional 10 percent (1.6GB) to run.  For example if your database is 20GB you would need an additional 20GB of space for the temp database + 2GB or 10 percent.  

If disk space is at a premium, the temporary database created during the defrag can be redirected to a drive with more space or a network drive.  The following 3 Scenarios describe the different options.

Scenario A. 

If you have the disk space requirements, to run an offline defragmentation, go to a command prompt and change to your Exchsrvr\bin folder.  The syntax would be

Eseutil /d 

Eseutil /d “c:\program files\exchsrvr\mdbdata\priv1.edb”


Repeat the steps for the public database (pub1.edb file)

*****Note the priv1.stm and pub1.stm files do NOT need to be defragmented******

*Database path needs to be in quotes if located in “program files\exchsrvr\mdbdata” if path is exchsrvr\mdbdata the path does not need quotes.


Scenario B. 

If because of disk space, you need to redirect the temp database to another drive on the same server use the syntax below. In this example, a folder created for the temp database on the F drive is called Defrag the syntax would be

Eseutil /d “c:\program files\exchsrvr\mdbdata\priv1.edb” /tF:\defrag\tempdfrg.edb



Or


Scenario C. 

To redirect the temp database to a mapped network drive the following syntax would be used

 

For example we mapped a drive Z to a folder called Defrag on a network share

Eseutil /d  /tz:\tempdfrg.edb


Eseutil /d c:\exchsrvr\mdbdata\priv1.edb /tz:\tempdfrg.edb

***when redirecting the temp database to a network drive the defrag will take significantly longer*****






Type net stop msexchangeis.
Navigate to %programfiles%\Common Files\Microsoft Shared\Web Storage System\Bin.
Type the following: 
eseutil /d "path/wss.mdb"

The path points to the location of the wss.mdb file. For example, if you installed the data files for SharePoint Portal Server on C:\Program Files\SharePoint Portal Server\Data, type the following:
eseutil /d "C:\Program Files\SharePoint Portal Server\Data\Web Storage System\wss.mdb"

When defragmentation completes, type net start msexchangeis.