如何运行 Eseutil /D(碎片整理)
上一次修改主题: 2006-06-09
此部分介绍如何使用 Eseutil 命令执行碎片整理,和/或如何为所有版本的 Exchange 脱机压缩 Exchange 数据库文件。有关了解 Eseutil /D 的详细信息,请参阅 Eseutil /D 碎片整理模式。
开始之前
使用 Eseutil 对数据库执行碎片整理之前,请注意以下事项:
- 确保您的可用磁盘空间等于要处理的数据库最终大小的 110%(最终大小就是当前文件大小减去文件中空白的大小)。
- 在运行碎片整理之前卸除数据库,因为 Eseutil 执行脱机碎片整理。在脱机碎片整理期间,客户端将无法访问卸除的数据库。
步骤
如何对 Exchange 2000 或 Exchange 2003 数据库运行碎片整理
在“Exchange 系统管理器”中,右键单击要进行碎片整理的数据库,然后单击“卸除存储”。
在命令提示符下,更改到 Exchsrvr\Bin 文件夹,然后键入 Eseutil /d 命令、数据库开关以及要使用的任何选项。例如,以下命令(键入到同一个命令行上)对邮箱数据库运行标准的碎片整理实用程序:
C:\program files\exchsrvr\bin> Eseutil /d c:\progra~1\exchsrvr\mdbdata\priv1.edb
使用以下数据库开关,对特定数据库运行 Eseutil 碎片整理:
Eseutil /d <database_name> [options]
如何对 Exchange Server 5.5 数据库运行碎片整理
使用“控制面板”中的“服务”小程序,停止可控制数据库的服务,以对数据库运行碎片整理。
- 对于 Exchange 目录数据库,停止 Microsoft Exchange Directory 服务。
- 对于 Exchange 邮箱数据库或公用文件夹数据库,停止 Microsoft Exchange Information Store 服务。
在命令提示符下,更改到 Winnt\System32 文件夹,然后键入 Eseutil /d 命令、数据库开关以及要使用的任何选项。
例如,以下命令对目录运行标准的碎片整理实用程序,并在用户定义的文件中保存副本:
C:\winnt\system32> Eseutil /d /ds /tc:\dbback\tempdfrg.edb /p
使用以下其中一个数据库开关,对特定数据库运行 Eseutil。
Option Description ---------------------------------------- /ds Directory /ispriv Private information store /ispub Public information store
使用以下一个或多个选项,指定要对数据库执行的操作。
命令行参考
在 Exchsrvr\Bin 文件夹中,于命令提示符下键入 Eseutil ./?,然后选择 D(代表“碎片整理”),就可以查看命令行参考。
DEFRAGMENTATION/COMPACTION:
DESCRIPTION: Performs off-line compaction of a database.
SYNTAX: ESEUTIL /d <database name> [options]
PARAMETERS: <database name> - filename of database to compact
OPTIONS: zero or more of the following switches, separated by a space:
/s<file> - set streaming file name (default: NONE)
/t<db> - set temp. database name (default: TEMPDFRG*.EDB)
/f<file> - set temp. streaming file name
(default: TEMPDFRG*.STM)
/i - do not defragment streaming file
/p - preserve temporary database (ie. don't instate)
/b<db> - make backup copy under the specified name
/8 - set 8k database page size (default: auto-detect)
/o - suppress logo
NOTES: 1) If instating is disabled (ie. /p), the original database
is preserved uncompacted, and the temporary database will
contain the defragmented version of the database.
有关详细信息
有关详细信息,请参阅 Exchange Server 数据库实用程序指南中的以下主题: