Enable-StorageGroupCopy

 

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

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

使用 Enable-StorageGroupCopy 指令程式,可以為儲存群組啟用本機連續複寫 (LCR),以及為使用 Microsoft Exchange Server 2007 Service Pack 1 (SP1) 的儲存群組啟用待命連續複寫 (SCR)。為儲存群組啟用 SCR 時,SCR 來源與 SCR 目標都必須已經安裝 Exchange 2007 SP1。

語法

enable-StorageGroupCopy -Identity <StorageGroupIdParameter> [-Confirm [<SwitchParameter>]] [-CopyLogFolderPath <NonRootLocalLongFullPath>] [-CopySystemFolderPath <NonRootLocalLongFullPath>] [-DomainController <Fqdn>] [-ReplayLagTime <Nullable>] [-SeedingPostponed <SwitchParameter>] [-StandbyMachine <String>] [-TruncationLagTime <Nullable>] [-WhatIf [<SwitchParameter>]]

詳細描述

Exchange 系統管理員可能想要在已安裝 Mailbox server role 的 Exchange 2007 伺服器上為現有的儲存群組啟用 LCR 或 SCR。若要順利啟動 Enable-StorageGroupCopy 作業,必須符合下列條件:

  • 路徑的位置必須在固定式磁碟機上。

  • Active Directory 目錄服務之相同伺服器下的多個儲存群組不可以共用此路徑。

  • 路徑必須是唯一的。路徑不能對應於已定義的儲存群組或另一個儲存群組副本。

  • 當使用 StandbyMachine 參數來啟用 SCR 時,指定的 SCR 來源可以位在叢集信箱伺服器上 (CCR 或 SCC)。

  • 對 LCR 使用 Enable-StorageGroupCopy 指令程式時,指定的儲存群組必須存在,而且必須使用 Enable-DatabaseCopy 指令程式,為其中的資料庫的副本啟用連續複寫。使用 Enable-StorageGroupCopy 指令程式來啟用 SCR 時,不需要使用 Enable-DatabaseCopy 指令程式。

  • StandbyMachine 參數不能與 CopyLogFolderPathCopySystemFolderPath 參數一起使用。這是因為 SCR 目標儲存群組會自動使用與 SCR 來源儲存群組相同的路徑。

完成 Enable-StorageGroupCopy 指令程式作業之後,除非指定 SeedingPostponed 參數,否則在任務作業中會植入資料庫的被動副本或 SCR 目標資料庫。

若要執行 Enable-StorageGroupCopy 指令程式,必須對您使用的帳戶委派 Exchange Server 系統管理員角色及目標伺服器本機 Administrators 群組。如需管理 Exchange 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

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

  • GUID

  • 儲存群組名稱

Confirm

選用

System.Management.Automation.SwitchParameter

Confirm 參數會使得命令暫停處理,並要求確認命令將進行的動作之後才會繼續處理。您不需要為 Confirm 參數指定任何值。

CopyLogFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

LCR 環境中是使用 CopyLogFolderPath 參數來指定記錄檔的儲存路徑。預設路徑為:<ExchangeInstallPath>\ LocalCopies\<SGName>。此參數不能與 StandbyMachine 參數一起使用。

CopySystemFolderPath

選用

Microsoft.Exchange.Data.NonRootLocalLongFullPath

LCR 環境中是使用 CopySystemFolderPath 參數來指定儲存群組系統檔案的儲存路徑。預設路徑為:<ExchangeInstallPath>\ LocalCopies\<SGName>。此參數不能與 StandbyMachine 參數一起使用。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定要使用之網域控制站的網域全名 (FQDN),請在命令中加入 DomainController 參數。

ReplayLagTime

選用

System.Nullable

ReplayLagTime 參數是用來指定 Microsoft Exchange 複寫服務在重新顯示已複製到 SCR 目標電腦的記錄檔之前應該等待的時間。此參數的格式為 (Days.Hours:Minutes:Seconds)。此值的預設設定是 24 個小時。而此值的允許上限設定是 7 天。允許的下限設定為 0 秒,不過如果將這個值設定為 0,可有效刪除在記錄重新顯示活動中高於 50 個記錄檔的預設延遲的任何延遲。

SeedingPostponed

選用

System.Management.Automation.SwitchParameter

使用 SeedingPostponed 參數會導致工作不會植入儲存群組副本,造成系統管理員必須明確植入儲存群組副本。

StandbyMachine

選用

System.String

StandbyMachine 參數會指定要設為 SCR 目標的 Mailbox Server 的名稱。建立 SCR 目標時必須使用此參數。此參數不能與 CopyLogFolderPathCopySystemFolderPath 參數一起使用。

TruncationLagTime

選用

System.Nullable

TruncationLagTime 參數會指定在截斷已複製到 SCR 目標電腦的記錄檔及重新顯示至資料庫副本的記錄檔之前,Microsoft Exchange 複寫服務應該等待的時間量。在記錄檔順利重新顯示至資料庫副本之後,此時段即開始。此參數的格式為 (Days.Hours:Minutes:Seconds)。而此值的允許上限設定是 7 天。允許的下限設定為 0 秒,不過如果將這個值設定為 0,將會有效排除記錄檔截斷活動中的任何延遲。

WhatIf

選用

System.Management.Automation.SwitchParameter

WhatIf 參數指示命令模擬它將對物件採取的動作。使用 WhatIf 參數,則不需要套用任何變更,就能檢視變更。您不需要為 WhatIf 參數指定任何值。

錯誤

錯誤 描述

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 指令程式在叢集信箱伺服器上啟用 LCR,因為只有獨立 Mailbox Server 才支援 LCR。

The location for log files is not a fixed drive.

副本記錄檔的位置不在固定式磁碟機上。您必須指定固定式磁碟機位置,才能執行 Enable-StorageGroupCopy 指令程式。

The location for system files is not a fixed drive.

副本系統檔案的位置不在固定式磁碟機上。您必須指定固定式磁碟機位置,才能執行 Enable-StorageGroupCopy 指令程式。

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

指定的交易記錄檔副本位置不合法或無效。您必須先確認目錄存在,而且該目錄中沒有任何檔案,再執行 Enable-StorageGroupCopy 指令程式。

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

檔案系統中沒有副本系統檔案位置。您必須先確認指定的位置存在,而且可存取,再執行 Enable-StorageGroupCopy 指令程式。

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 副本指定的記錄路徑已含有具有相符前置詞的檔案。您可以使用 Move-StorageGroup 命令避免覆寫現有的檔案。使用 ConfigurationOnly 選用參數會變更組態,但不會移動任何檔案。

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 副本指定的系統路徑已含有具有相符前置詞的檔案。您可以使用 Move-StorageGroup 命令避免覆寫現有的檔案。使用 ConfigurationOnly 選用參數會變更組態,但不會移動任何檔案。

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

Enable-StorageGroupCopy 指令程式無法順利完成所指定儲存群組的自動初始植入。您必須使用 Update-StorageGroupCopy 指令程式進行重新植入。

Automatic initial seed was not attempted for <SGName>.

Enable-StorageGroupCopy 指令程式無法執行所指定儲存群組的自動初始植入。您需要使用 Update-StorageGroupCopy 指令程式執行初始植入。

The Windows Cluster service encountered an error during function IsNodeClustered.

StandbyMachine 參數指定的電腦無法連接或不存在。

範例

下列程式碼是 Enable-StorageGroupCopy 命令的範例,用來為 SG1 儲存群組啟用 LCR,同時為 CopyLogFolderPathCopySystemFolderPath 參數指定路徑位置。

第二個範例顯示如何在電腦 Server2 上為儲存群組 SG1 啟用 SCR 目標。

第三個範例顯示如何在電腦 Server3 上為儲存群組 SG2 啟用 SCR 目標,且系統管理員設定的重新顯示延遲時間為 10 分鐘。

Enable-StorageGroupCopy -Identity SG1 -CopyLogFolderPath "D:\Logs1\SG1" -CopySystemFolderPath "D:\Logs1\SG1"
Enable-StorageGroupCopy -Identity SG1 -StandbyMachine Server2
Enable-StorageGroupCopy -Identity SG2 -StandbyMachine Server3 -ReplayLagTime 0.0:10:0