Enable-StorageGroupCopy (RTM)

 

适用于: Exchange Server 2007

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

本主题介绍如何使用 Enable-StorageGroupCopy cmdlet 在本地连续复制 (LCR) 配置中运行 Microsoft Exchange Server 2007 的服务器上创建存储组副本。

语法

enable-StorageGroupCopy -Identity <StorageGroupIdParameter> [-CopyLogFolderPath <NonRootLocalLongFullPath>] [-CopySystemFolderPath <NonRootLocalLongFullPath>] [-DomainController <Fqdn>] [-SeedingPostponed <SwitchParameter>]

详细说明

Exchange 管理员可能希望在安装了邮箱服务器角色的 Exchange 2007 服务器上向现有存储组中添加 LCR 副本。

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

  • 指定的存储组必须存在,并且其中的所有数据库必须拥有启用 Enable-DatabaseCopy 的副本。

  • 路径位置必须在硬盘驱动器上。

  • 路径不能由 Active Directory 目录服务中同一服务器下的多个存储组共享。

  • 路径必须是唯一的。路径也许无法与已定义的存储组或其他存储组副本相对应。

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

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

  • 存储组具有所有必需的属性。

  • 在任务中指定的路径覆盖 Active Directory 中找到的任何路径。

    note注意:
    如果在任务中未指定路径,则将使用默认路径。
  • 除非指定 SeedingPostponed 参数,否则数据库副本将被设定为种子。

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

参数

参数 必需 类型 说明

Identity

必需

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

Identity 参数接受下列值之一:

  • GUID

  • 存储组的名称

CopyLogFolderPath

可选

Microsoft.Exchange.Data.NonRootLocalLongFullPath

CopyLogFolderPath 参数指定存储组日志的存储路径。默认路径为:<ExchangeInstallPath>\ LocalCopies\<SGName>

CopySystemFolderPath

可选

Microsoft.Exchange.Data.NonRootLocalLongFullPath

CopySystemFolderPath 参数指定存储组系统文件的存储路径。默认路径为:<ExchangeInstallPath>\ LocalCopies\<SGName>

DomainController

可选

Microsoft.Exchange.Data.Fqdn

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

SeedingPostponed

可选

System.Management.Automation.SwitchParameter

使用 SeedingPostponed 参数将使任务不为存储组副本设定种子。管理员必须显式为存储组副本设定种子。

错误

错误 说明

The LogFolderPath and CopyLogFolderPath that you specified must not be the same. Specified folder path: %logfolderpath%

同一服务器上的另一个存储组与此存储组使用的副本日志文件位置相同。必须为副本日志文件位置指定唯一的路径。

The SystemFolderPath and CopySystemFolderPath that you specified must not be the same. Specified folder path: %logfolderpath%

同一服务器上的另一个存储组与此存储组使用的副本系统文件位置相同。必须为副本系统文件位置指定唯一的路径。

The storage group you specified is a recovery storage group. Specified storage group: %SGIdentity%

指定的存储组是恢复存储组。LCR 不支持恢复存储组。

A storage group copy is already defined for '<SGName>'.

存储组已启用 LCR。

The database under this storage group is not local continuous replication enabled. Please enable local continuous replication on the database before enabling local continuous replication on this storage group.

此存储组中的一个或多个数据库未启用 LCR。必须先对所有数据库启用 LCR,才能对此存储组启用 LCR。

This task is not supported on a cluster.

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

The location for log files is not a fixed drive.

副本日志文件的位置不在硬盘驱动器上。必须指定硬盘驱动器位置才能运行 Enable-StorageGroupCopy cmdlet。

The location for system files is not a fixed drive.

副本系统文件位置不在硬盘驱动器上。必须指定硬盘驱动器位置才能运行 Enable-StorageGroupCopy cmdlet。

The location specified for log file copies (<LogPath>) is illegal/invalid. Please verify that the directory exists and is empty.

为事务日志文件副本指定的位置非法或无效。必须确认该目录存在,并且该目录在运行 Enable-StorageGroupCopy cmdlet 之前没有任何文件。

The location of the copy's system files (<SystemPath>) is not available in the file system.

副本系统文件的位置在文件系统中不可用。必须确认指定的位置存在,并且在运行 Enable-StorageGroupCopy cmdlet 之前可以访问。

The log path (<logPath>) for the copy already contains files with a matching prefix. To avoid overwriting the existing files, use Move-StorageGroupPath -ConfigurationOnly to change the configuration without moving any files.

为 LCR 副本指定的日志路径已包含具有匹配前缀的文件。使用包含 ConfigurationOnly 可选参数的 Move-StorageGroup 命令可更改配置而不移动任何文件,从而避免覆盖现有文件。

The system path (<SystemPath>) for the copy already contains files with a matching prefix. To avoid overwriting the existing files, use Move-StorageGroupPath -ConfigurationOnly to change the configuration without moving any files.

为 LCR 副本指定的系统路径已包含具有匹配前缀的文件。使用包含 ConfigurationOnly 可选参数的 Move-StorageGroup 命令可更改配置而不移动任何文件,从而避免覆盖现有文件。

Automatic initial seed failed for <SGName> with error code <ErrorCode>. Use Update-StorageGroupCopy task to retry.

Enable-StorageGroupCopy cmdlet 未成功完成对指定存储组的自动初始种子设定。必须使用 Update-StorageGroupCopy cmdlet 重新设定种子。

Automatic initial seed was not attempted for <SGName>.

Enable-StorageGroupCopy cmdlet 未对指定存储组执行自动初始种子设定。将需要使用 Update-StorageGroupCopy cmdlet 执行初始种子设定。

示例

以下代码是 Enable-StorageGroupCopy 命令的一个示例,启用名为 SG1 的存储组的存储组副本,同时为 CopyLogFolderPathCopySystemFolderPath 参数指定路径位置。

Enable-StorageGroupCopy -Identity SG1 -CopyLogFolderPath:"D:\logs1\SG1" -CopySystemFolderPath:"D:\logs1\SG1"