Enable-DatabaseCopy (RTM)

 

适用于: Exchange Server 2007

上一次修改主题: 2007-06-05

本主题介绍如何使用 Enable-DatabaseCopy cmdlet,以便在本地连续复制 (LCR) 配置中运行 Microsoft Exchange Server 2007 的指定邮箱服务器上创建数据库副本。

语法

enable-DatabaseCopy -Identity <DatabaseIdParameter> [-CopyEdbFilePath <EdbFilePath>] [-DomainController <Fqdn>]

详细说明

Exchange 管理员可能要在 Exchange 2007 服务器上对数据库启用 LCR。

若要成功地启动 Enable-DatabaseCopy 操作,必须满足下列条件:

  • 包含指定数据库的服务器必须是独立的 Exchange 2007 邮箱服务器。指定的服务器不能是 Exchange 2007 的群集实现,例如,群集连续复制 (CCR) 或单一副本群集 (SCC)。

  • 指定的存储组和数据库必须存在。

    note注意:
    存储组和数据库可以装入或卸除。
  • 指定的数据库不能是恢复数据库。

  • 指定的副本位置必须具有足够的可用磁盘空间以保存副本。

  • 路径和文件名必须是唯一的。它们可能不与已经定义的数据库副本相对应。

  • 如果数据库路径以 MySample.edb 结束,则副本路径也必须以 MySample.edb 结束。

在完成 Enable-DatabaseCopy 操作之后,会出现所有下列情况:

  • Active Directory 目录服务中的邮箱数据库对象具有所有必需的属性。

  • 创建了生产数据库的 LCR 副本,但在启用存储组副本之前它不工作或不设定种子。

此任务要求为启动该任务所使用的帐户委派 Exchange Server 管理员角色和目标服务器的本地管理员组成员身份。有关管理 Exchange Server 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项

note注意:
LCR 限制存储组,使它正好包含一个数据库。在 Enable-StorageGroupCopy cmdlet 运行之前不执行该检查。
note注意:
因为在 Enable-StorageGroupCopy 运行并且通过 Disable-StorageGroupCopy cmdlet 在数据库级别完全禁用 LCR 副本之前,LCR 副本并未完全启用,所以没有 Disable-DatabaseCopy cmdlet。

参数

参数 必需 类型 说明

Identity

必需

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

Identity 参数接受下列值之一:

  • GUID

  • 数据库的名称

CopyEdbFilePath

可选

Microsoft.Exchange.Data.EdbFilePath

CopyEdbFilePath 参数指定将要创建数据库的路径。默认路径为:<ExchangeInstallDirectory>\LocalCopies\Storage Group\MBDatabase.edb

DomainController

可选

Microsoft.Exchange.Data.Fqdn

若要指定在 Active Directory 中查找群集邮箱服务器的域控制器的完全限定域名 (FQDN),请在命令中使用 DomainController 参数。

错误

错误 说明

The path, '<DBPath>', that you specified for the local continuous replication copy is used by another database on the same server (<serverName>). Please specify a different path for the copy's database.

所指定的 EDBFilePath 和 CopyEDBFilePath 不能相同。

The mailbox database you specified is a recovery mailbox database. Specified mailbox database: %Identity%

指定的邮箱数据库是恢复邮箱数据库。在恢复存储组上不支持 LCR。

Storage group '<SGName>' is enabled for local continuous replication. The database in the storage group must also be enabled.

数据库和存储组已经启用 LCR。

There is not enough space on drive %drivename% to complete this operation.

副本位置没有足够的空间驻留 production .edb file。必须确保副本位置有足够的可用磁盘空间驻留 production .edb file。

The database file path of '<DBPath>' is not available. Please correct the issue before continuing.

指定数据库的 .edb 文件路径不可用。在运行 Enable-DatabaseCopy cmdlet 之前,必须解决此问题。

Local continuous replication cannot be enabled on a cluster.

Enable-DatabaseCopy cmdlet 不能在群集上执行,因为群集上不支持 LCR。

Failed to retrieve mailbox database '<DBName>' due to error (<ErrorCode>). Please correct the problem before continuing.

Enable-DatabaseCopy cmdlet 无法检索指定的邮箱数据库。

The location, '<DBLocation>' must be a fixed (non-removable) storage.

指定的 CopyEdbFilePath 不是在固定驱动器上。只有固定(不可移动)存储可用于 LCR 文件路径。

The copy EDB file path is not available. There is already a directory named '<filePath>' on server '<server>'.

指定的 CopyEdbFilePath 不可用。服务器上已经有一个目录带有所指定的名称。必须为 CopyEdbFilePath 指定唯一的路径才能运行 Enable-DatabaseCopy cmdlet。

The database file path that you specified (<DBPath>) for the local continuous replication copy of the database already contains a database file. To avoid overwriting the existing files, use move-database -configurationOnly to change the configuration without moving any files.

为副本位置指定的路径已经包含数据库文件。若要避免覆盖现有文件,请使用 Move-Database 命令 – ConfigurationOnly 参数更改配置而不移动任何文件。

Failed to check the status of copy's database file at (<DBPath>) on <ServerName>. To avoid overwriting the existing files, use "Move-DatabasePath -ConfigurationOnly" to change the configuration without moving any files.

Enable-DatabaseCopy cmdlet 无法检查副本的数据库文件的状态,因为指定的服务器不可访问。服务器必须联机才能检查副本的数据库的状态。

示例

以下示例显示了用于为名为 Mailbox Database 的数据库启用数据库副本的 Enable-DatabaseCopy 命令,它包含在名为 SG1 的存储组中,位于名为 EXLCR1 的服务器上。

Enable-DatabaseCopy -Identity:"EXLCR1\SG1\Mailbox Database" -CopyEdbFilePath:"D:\DBs\SG1\Mailbox Database.edb"