Update-StorageGroupCopy (RTM)

 

适用于: Exchange Server 2007

上一次修改主题: 2007-08-29

使用 Update-StorageGroupCopy cmdlet 可以对指定的 Microsoft Exchange Server 2007 群集连续复制 (CCR) 或本地连续复制 (LCR) 数据库副本启动复制或重新同步复制。

语法

Update-StorageGroupCopy -Identity <StorageGroupIdParameter> [-DeleteExistingFiles <SwitchParameter>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-ManualResume <SwitchParameter>] [-TargetPath <LocalLongFullPath>]

详细说明

使用 Update-StorageGroupCopy cmdlet 可以对 CCR 或 LCR 副本手动启动复制或重新同步复制。该 cmdlet 自动恢复向存储组副本的复制。如果选择手动恢复复制,则可以运行包含 ManualResume 参数的 cmdlet。

应当在以下情况下执行此操作:

  • 已在没有基准数据库的 LCR 中创建了存储组副本。

  • 在 CCR 或 LCR 副本中有损坏的数据库。

  • 远程启用了先前备份的 LCR 副本,因此没有全部日志。

  • 有 CCR 或 LCR 环境,并且需要将新的基准数据库应用于被动副本。此情况的原因可能是损坏、某些配置更改、服务器丢失或被动副本上可用的基准数据库无效。

  • 已对生产数据库运行了脱机碎片整理。

note注意:
如果不指定目标路径,则必须在包含副本的计算机上发出该命令。
note注意:
此命令不允许在同一存储组上运行任何备份(卷影复制服务备份或传统流式备份)。
important要点:
如果与活动副本的通信丢失或失败,则必须全部重新启动该操作。
important要点:
由于没有自动检查,因此在初始化该 cmdlet 之前必须验证是否有足够的空间。由于在成功新建数据库之前不会删除现有数据库,因此,使用 DeleteExistingFiles 参数要求目标卷上为数据库的两个副本提供空间。
Caution警告:
Update-StorageGroupCopy cmdlet 可能影响可用的网络带宽,并且可能对生产服务器的性能有一些影响。

Update-StorageGroupCopy cmdlet 要求在运行它的目标位置上不存在任何 Exchange 文件,并且存储组副本的复制活动已挂起。使用 Suspend-StorageGroupCopy cmdlet 可以挂起存储组副本。成功地完成种子设定之后,除非指定了 ManualResume 参数,否则将自动重新启动向存储组副本的复制。

若要在安装了群集邮箱服务器的计算机上使用 Update-StorageGroupCopy cmdlet,必须为您使用的帐户委派 Exchange Server 管理员角色以及目标服务器的本地 Administrators 组。有关管理 Exchange Server 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项

参数

参数 必需 类型 说明

Identity

必需

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

Identity 参数接受下列值之一:

  • GUID

  • 存储组的名称

Confirm

可选

布尔值

Confirm 参数将导致命令暂停处理,并且需要管理员在继续处理之前确认该命令将执行的操作。默认值为 $true。

DeleteExistingFiles

可选

System.Management.Automation.SwitchParameter

DeleteExistingFiles 参数将导致该命令删除目标位置的日志文件、检查点文件和数据库文件。它只删除所检查的文件,如果存在其他文件,则将失败。不会对在目标位置的其他文件执行任何操作。因此,如果存在其他文件,必须手动删除这些文件。

DomainController

可选

Microsoft.Exchange.Data.Fqdn

可以在该 cmdlet 中使用 DomainController 参数,以指定用于访问存储组对象域控制器的完全限定的域名 (FQDN)。

Force

可选

System.Management.Automation.SwitchParameter

当任务以编程方式运行,且提示管理输入不正确时,可以使用 Force 参数。如果在该 cmdlet 中未提供 Force,则会提示进行管理输入。如果在该 cmdlet 中提供了 Force,但是省略了值,则其默认值是 $true。

ManualResume

可选

System.Management.Automation.SwitchParameter

如果不希望 Update-StorageGroupCopy cmdlet 自动恢复向存储组副本的复制,则使用 ManualResume 参数。使用此参数可以手动恢复向存储组副本的复制。

TargetPath

可选

Microsoft.Exchange.Data.LocalLongFullPath

TargetPath 参数指定数据库文件的位置。这是将包含数据库的目录。该路径的最后部分是由源路径的基础名称确定的。

WhatIf

可选

布尔值

WhatIf 参数指示命令模拟针对对象执行的操作。通过使用 WhatIf 参数,管理员可以查看要发生的更改,而不必应用任何这些更改。默认值为 $true。

错误

错误 说明

Update-StorageGroupCopy: Online database seeding error: MSExchangeIS (Information Store) is not online on '< CMSNameorServerName >'.

由于通信问题,任务无法连接到服务器。

Update-StorageGroupCopy: Online database seeding error: '< SGName >' is not suspended. The storage group must be suspended before seeding.

存储组必须先挂起,然后才能设定为种子。

Update-StorageGroupCopy: This task must be run on the second copy's machine if the ' TargetPath ' parameter is omitted.

如果省略了 TargetPath 参数,则必须在被动副本上运行此任务。

Update-StorageGroupCopy is unable to update the storage group copy because this task is only supported on servers running Exchange Server 2007. < ServerName > is not running Exchange Server 2007.

只有在 Exchange 2007 中才支持 LCR 和 CCR。

Access denied. The account used to run this task does not have sufficient privileges to update storage group copy from < ServerName >. Please use an account that has been assigned the Exchange Server Admin role.

用户在指定的服务器上没有 Exchange 服务器管理员权限。

< ServerName > or < 存储组名称 > does not exist.

指定的标识不存在。

Update-StorageGroupCopy: Continuous replication is not configured on '< SGName >'.

CCR (when no second node):

Update-StorageGroupCopy: Continuous replication is not configured on '< SGName >'.

所指定的存储组未配置为支持复制。

Database:

Update-StorageGroupCopy: Online database seeding error: Target database ('< thePath >') already exists. It must be removed.

Logs:

Update-StorageGroupCopy : Online database seeding error: Log files already exist at '< thePath >'. They must be removed.

在没有目标路径的情况下运行更新之前,未删除日志文件和数据库。请删除目标位置的日志文件、数据库文件、检查点文件和 .jtx 文件,或指定 -DeleteExistingFiles 选项。

Update-StorageGroupCopy: Online database seeding error: The database is not mounted.

生产数据库未装入。请装入数据库,并重新发出该任务。

Specified path is not available.

指定的路径不可用或不可写。

Update-StorageGroupCopy: Online database seeding error: The database is currently being backed up.

Storage group <StorageGroupName> failed to seed at <DatabaseLocation>. Reason: Error Code (0x50d).

源数据库已经有正在进行中的备份。

Update-StorageGroupCopy: Online database seeding error: Communication failure; Exchange Information Store (MSExchangeIS) on '< ServerName >' is unavailable.

失去与源服务器的通信。更新已终止。

Update-StorageGroupCopy: Online database seeding error: < 错误代码 >.

由于以下情况之一,种子设定失败:

  • 未指定的错误

  • 输入或参数无效

  • RAM 不足

  • 磁盘空间不足

  • 获得进程权限失败

  • 种子设定目录不存在

  • 日志文件已存在

  • *.jtx 文件已存在

  • 存储组不存在

Update-StorageGroupCopy: Failed to create the directory '< DirectoryPath >'. The error code is '< 错误代码 >'.

操作无法创建驻留数据库所需的目录。

示例

以下示例显示如何在 Server1 上为名为 SG1 的存储组重新设定种子。

Update-StorageGroupCopy -Identity:Server1\SG1