Update-StorageGroupCopy (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-08-29

使用 Update-StorageGroupCopy 指令程式可啟動或重新同步處理特定 Microsoft Exchange Server 2007 叢集連續複寫 (CCR) 或本機連續複寫 (LCR) 資料庫副本的複寫。

語法

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

詳細描述

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

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

  • 您在不含基準資料庫的 LCR 中建立儲存群組副本。

  • CCR 或 LCR 副本中的資料庫損毀。

  • 您從遠端啟用先前備份的 LCR 副本,因此沒有所有的記錄檔。

  • 您擁有 CCR 或 LCR 環境,並且需要將新的基準資料庫移至被動副本。這可能是因為被動副本上發生損毀、有某些組態變更、伺服器遺失,或使用無效的基準資料庫。

  • 您可以在生產資料庫上執行離線磁碟重組。

note附註:
如果未指定目標路徑,則必須在包含該副本的電腦上發出命令。
note附註:
此命令不允許任何備份 (磁碟區陰影複製服務或傳統資料流備份) 在相同的儲存群組上執行。
important重要事項:
如果與主動副本的通訊中斷,整個作業必須重新啟動一次。
important重要事項:
您必須在起始指令程式之前先確認是否有足夠的空間,因為該命令不會自動進行檢查。使用 DeleteExistingFiles 參數時,目標磁碟區上需要有兩份資料庫的空間,因為順利建立新的資料庫之後,才會刪除現有的資料庫。
Caution請注意:
Update-StorageGroupCopy 指令程式可能會影響可用的網路頻寬,而且可能會影響到生產伺服器的效能。

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

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

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

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

  • GUID

  • 儲存群組名稱

Confirm

選用

Boolean

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

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 參數。此參數可讓您手動繼續複寫至儲存群組副本。

TargetPath

選用

Microsoft.Exchange.Data.LocalLongFullPath

TargetPath 參數指定資料庫檔案的位置。此即為將包含資料庫的目錄。路徑的最後一部份,是由來源的主檔名來決定。

WhatIf

選用

Boolean

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 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 檔,或指定 -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: < ErrorCode >.

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

  • 未指定的錯誤

  • 無效的輸入或參數

  • RAM 不足

  • 磁碟空間不足

  • 無法取得處理權限

  • 植入目錄不存在

  • 記錄檔已存在

  • *.jtx 檔已存在

  • 儲存群組不存在

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

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

範例

下列範例會示範如何在 Server1 上重新植入名為 SG1 的儲存群組。

Update-StorageGroupCopy -Identity:Server1\SG1