Google
 
Web tech-mania.blogspot.com

Tuesday, September 19, 2006

 

How to do the offline defragmentation of Exchange database with the Eseutil utility

You can use the Eseutil utility to defragment the information store and directory in Microsoft Exchange Server 5.5 and to defragment the information store in Microsoft Exchange 2000 Server and in Microsoft Exchange Server 2003. Eseutil examines the structure of the database tables and records (which can include reading, scanning, repairing, and defragmenting) the low level of the database (Ese.dll).

The defragmentation option makes used storage contiguous, eliminates unused storage, and compacts the database, which reduces the database's size. Eseutil copies database records to a new database. When defragmentation is complete, the original database is deleted or saved to a user-specified location, and the new version is renamed as the original. If the utility encounters a bad record, the utility stops and displays an error message.

Defragmenting an Exchange Server 5.5 database

Note Defragmenting a database requires free disk space equal to 110 percent of the size of the database that you want to process.
1. Stop the service of the database you wish to defragment by using the Services tool in Control Panel. • For the Exchange Directory database, stop the Microsoft Exchange Directory service.
• For the Exchange Mailbox or Public Folder databases, stop the Microsoft Exchange Information Store service.

2. At the command prompt, change to the Winnt\System32 folder, and then type the eseutil /d command, a database switch, and any options that you want to use.
For example, the following command runs the standard defragmentation utility on the directory and saves the copy in the user-defined file:
C:\winnt\system32> eseutil /d /ds /tc:\dbback\tempdfrg.edb /p
Use one of the following database switches to run Eseutil on a specific database.
Option Description
----------------------------------------
/ds Directory

/ispriv Private information store

/ispub Public information store

Use one or more of the following options to specify the operations that you want to perform on the database.
Option Description
-----------------------------------------------------------------------
/b Makes a backup copy of the original uncompacted database
at the specified location.

/p Retains and preserves the original uncompacted database
in its original location and stores the new compacted
database in the default file Exchsrvr\Bin\Tempdfrg.edb.

/t Creates and renames the new compacted database in the
specified path.

/o Does not display the Microsoft Exchange Server banner.

Defragmenting an Exchange 2000 or Exchange 2003 database

Note Defragmenting a database requires free disk space equal to 110 percent of the size of the database being processed.
1. In Exchange System Manager, right-click the information store that you want to defragment, and then click Dismount Store.
2. At the command prompt, change to the Exchsrvr\Bin folder, and then type the eseutil /d command, a database switch, and any options that you want to use.
For example, the following command runs the standard defragmentation utility on a mailbox store database:
C:\program files\exchsrvr\bin> eseutil /d c:\progra~1\exchsrvr\mdbdata\priv1.edb
Use the following database switch to run Eseutil defragmentation on a specific database:
eseutil /d [options]
Defragmentation/Compaction
Performs off-line compaction of a database.

Syntax: eseutil /d [options]

Parameters: is the file name of the database that you want to compact.

You are not required to use any of the following options, but you can use one or more (separated by a space) to specify the operations that you want to perform on the database.
Option Description
----------------------------------------------------------------
/b Make a backup copy under the specified name

/t Set the temporary database name (the default is
Tempdfrg.edb)

/s Set the streaming file name (the default is NONE)

/f Set the temporary streaming file name (the default
is Tempdfrg.stm)

/p Preserve the temporary database (in other words,
do not instate)

/o Suppress logo

/i Do not defragment streaming file

Note If instating is disabled (for example, if you use the /p option), the original database is preserved uncompacted, and the temporary database contains the defragmented version of the database.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?