Update-StorageGroupCopy

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上次修改主題的時間: 2007-10-31

使用 Update-StorageGroupCopy 指令程式可啟動或重新同步處理 Microsoft Exchange Server 2007 叢集連續複寫 (CCR) 或本機連續複寫 (LCR) 環境中特定儲存群組副本的複寫。在待命連續複寫 (SCR) 環境中,此指令程式也可以用來重新同步處理複寫。

語法

Update-StorageGroupCopy -Identity <StorageGroupIdParameter> [-Confirm [<SwitchParameter>]] [-DataHostNames <String[]>] [-DeleteExistingFiles <SwitchParameter>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-ManualResume <SwitchParameter>] [-StandbyMachine <String>] [-TargetPath <LocalLongFullPath>] [-WhatIf [<SwitchParameter>]]

詳細描述

Update-StorageGroupCopy 指令程式可讓您手動初始化或重新同步處理 CCR 或 LCR 被動副本或 SCR 目標的複寫。此指令程式會自動繼續複寫至儲存群組副本。如果您選擇手動繼續複寫,可使用 ManualResume 參數來執行指令程式。

如果發生下列情況,就應執行此作業:

  • 您已使用不含基準資料庫的 LCR 或 SCR 建立儲存群組副本。
  • 資料庫或 SCR 目標的被動副本損毀。
  • 資料庫或 SCR 目標的被動副本已過期。
  • 您有連續複寫環境,而且需要將新的基準資料庫移至被動副本。這可能是因為被動副本上發生損毀、有某些組態變更、伺服器遺失,或使用無效的基準資料庫。
  • 您可以在資料庫的主動或被動副本上執行離線磁碟重組。

當您使用 Update-StorageGroupCopy 指令程式時,請注意下列事項:

  • TargetPath 參數可用來將資料庫植入和資料庫的被動副本之設定區域不同的路徑。例如,在遠端實體位置中有 SCR 目標時,您可以在 SCR 資源上使用 TargetPath 參數來執行本機更新,然後使用提供資料壓縮功能的複製公用程式透過網路將副本移至 SCR 目標電腦。
  • 如果未使用 TargetPath 參數,則必須在包含被動副本的電腦上發出 Update-StorageGroupCopy 指令程式。
  • 如果未指定 StandbyMachine 參數,Update-StorageGroupCopy 指令程式會套用至本機 LCR 或 CCR 被動副本。
  • 當相同儲存群組上正在執行任何備份時 (磁碟區陰影複製服務 (VSS) 或傳統資料流備份),您無法執行 Update-StorageGroupCopy 命令。
  • 如果與主動副本的通訊中斷或失敗,整個作業必須重新啟動一次。
  • 您必須在起始指令程式之前先確認是否有足夠的空間,因為該命令不會自動進行檢查。使用 DeleteExistingFiles 參數時,目標磁碟區上需要有兩份資料庫的空間,因為順利建立新的資料庫之後,才會刪除現有的資料庫。
  • Update-StorageGroupCopy 指令程式可能會影響可用的網路頻寬,而且可能會影響到生產伺服器的效能。您可以使用 DataHostNames 參數來指定用於植入或重新植入的網路。

Update-StorageGroupCopy 指令程式在執行時,目標位置中不能有 Exchange 檔案存在,而且儲存群組副本必須暫停複寫活動。請使用 Suspend-StorageGroupCopy 指令程式來暫停儲存群組副本。在順利完成植入之後,除非您指定 ManualResume 參數,否則會自動重新開始複寫至儲存群組。

若要在已安裝叢集信箱伺服器的電腦上使用 Update-StorageGroupCopy 指令程式,必須對您使用的帳戶委派 Exchange Server 系統管理員角色和該目標伺服器上的本機 Administrators 群組。如需管理 Exchange 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

Identity 參數會採用下列其中一個值:

  • GUID
  • 儲存群組名稱

Confirm

選用

System.Management.Automation.SwitchParameter

Confirm 參數會使得命令暫停處理,並要求系統管理員確認命令將進行的動作之後才會繼續處理。預設值為 $true。

DataHostNames

選用

System.String[]

DataHostNames 參數指定應用於植入的叢集網路。最多可以指定兩個主機名稱。

DeleteExistingFiles

選用

System.Management.Automation.SwitchParameter

DeleteExistingFiles 參數會讓命令移除目標位置上現有的記錄檔。它只會移除已檢查且檢查失敗的檔案 (如果有出現其他檔案),並不會對目標位置上的其他檔案採取任何動作。因此,如果有出現其他檔案,您必須手動將其移除。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

您可以在指令程式中使用 DomainController 參數,以指定要用來存取儲存群組物件之網域控制站的網域全名 (FQDN)。

Force

選用

System.Management.Automation.SwitchParameter

如果以程式控制方式執行工作,而且不適合提示系統管理輸入,請使用 Force 參數。如果沒有在指令程式中提供 Force,就會提示系統管理員輸入。如果在指令程式中提供 Force,但省略了值,其預設值為 $true。

ManualResume

選用

System.Management.Automation.SwitchParameter

當您不想讓 Update-StorageGroupCopy 指令程式自動在儲存群組副本上繼續複寫時,可使用 ManualResume 參數。此參數可讓您手動繼續複寫至儲存群組副本。

StandbyMachine

選用

System.String

StandbyMachine 參數指定設為 SCR 目標的伺服器名稱。更新 SCR 目標的儲存群組副本時必須使用此參數。如果未指定 StandbyMachine 參數,Update-StorageGroupCopy 指令程式會套用至本機 LCR 或 CCR 被動副本。

TargetPath

選用

Microsoft.Exchange.Data.LocalLongFullPath

TargetPath 參數指定本機電腦上資料庫檔案的位置。此即為將包含資料庫的目錄。路徑的最後一部份,是由來源的主檔名來決定。在 CCR 環境中,省略 TargetPath 參數時,Update-StorageGroupCopy 必須在被動節點上執行。在 SCR 環境中,省略 TargetPath 參數時,Update-StorageGroupCopy 必須在 SCR 目標電腦上執行。

WhatIf

選用

System.Management.Automation.SwitchParameter

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。只有 Microsoft Exchange Server 2007 Service Pack 1 (SP1) 才支援 SCR。

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 Server 系統管理員授權。

< ServerName > or < StorageGroupName > 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.

執行不含 target path 的更新之前,未刪除記錄檔及資料庫。刪除目標位置中的記錄、資料庫、存取檢查點及 .jtx 檔案。

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: < ErrorCode >.

由於發生下列其中一種情況,導致植入作業失敗:

  • 未指定的錯誤
  • 無效的輸入或參數
  • RAM 不足
  • 磁碟空間不足
  • 無法取得處理權限
  • 植入目錄不存在
  • 記錄檔已存在
  • *.jtx 檔已存在
  • 儲存群組不存在

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

動作無法建立主控資料庫所需的目錄。

The DataHostNames switch does not accept more than two host names.

您只能用 DataHostNames 參數來指定兩個連續複寫主機名稱。

The DataHostNames parameter did not contain any local machine names.

您必須指定已註冊到本機節點的連續複寫主機名稱。

範例

第一個範例示範如何在 Server1 上重新植入儲存群組 SG1 的被動副本。

第二個範例示範如何使用兩個連續複寫主機名稱 NET1 和 NET2,在叢集信箱伺服器 Server1 上重新植入儲存群組 SG1 的被動副本。

第三個範例示範如何在 Server1 上重新植入儲存群組 SG1 的 SCR 目標副本,其中 SCR 目標副本位於伺服器 Server2。

Update-StorageGroupCopy -Identity Server1\SG1
Update-StorageGroupCopy -Identity Server1\SG1 -DataHostNames {Net1,Net2}
Update-StorageGroupCopy -Identity Server1\SG1 -StandByMachine Server2

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.