Enable-StorageGroupCopy (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-06-05

本主題說明如何使用 Enable-StorageGroupCopy 指令程式,在本機連續複寫 (LCR) 組態中,於執行 Microsoft Exchange Server 2007 的伺服器上建立儲存群組副本。

語法

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

詳細描述

Exchange 系統管理員可能會想要將 LCR 副本新增至已安裝 Mailbox server role 之 Exchange 2007 伺服器的現有儲存群組中。

若要順利啟動 Enable-StorageGroupCopy 作業,必須符合下列條件:

  • 指定的儲存群組必須存在,且必須以 Enable-DatabaseCopy 啟用群組中所有資料庫的副本。

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

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

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

  • 指定的伺服器必須是獨立的 Exchange 2007 Mailbox Server。指定的伺服器不可以是執行 Exchange 2007 的叢集,例如叢集連續複寫 (CCR) 或單一副本叢集 (SCC)。

Enable-StorageGroupCopy 指令程式作業完成後,會發生下列所有情況:

  • 儲存群組具有所有必要的屬性。

  • 工作中所指定的路徑會覆寫在 Active Directory 中找到的任何路徑。

    note附註:
    如果工作中未指定路徑,則會使用預設路徑。
  • 除非已指定 SeedingPostponed 參數,否則會植入資料庫副本。

此工作的必要條件是 用來啟動工作的帳戶必須已委派 Exchange Server 系統管理員角色及目標伺服器的本機 Administrators 群組。如需管理 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.

因為叢集不支援 LCR,所以無法在該叢集上執行 Enable-StorageGroupCopy 指令程式。

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 指令程式執行初始植入。

範例

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

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