Disable-StorageGroupCopy

 

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

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

本主題說明如何使用 Disable-StorageGroupCopy 指令程式,從執行 Microsoft Exchange Server 2007 的 Mailbox Server 中停用本機連續複寫 (LCR),並移除儲存群組之被動副本及其資料庫,以及所有與被動副本關聯的組態資訊。

本主題也說明如何使用 Disable-StorageGroupCopy 指令程式,從執行 Microsoft Exchange Server 2007 Service Pack 1 (SP1) 的 Mailbox Server 中停用待命連續複寫 (SCR),並移除 SCR 目標儲存群組和其資料庫以及組態資訊。

語法

disable-StorageGroupCopy -Identity <StorageGroupIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-StandbyMachine <String>] [-WhatIf [<SwitchParameter>]]

詳細描述

Exchange 系統管理員可能會想要停用儲存群組的 LCR 或 SCR。Disable-StorageGroupCopy 作業完成之後,就會移除儲存群組之被動副本的組態設定。

note附註:
此指令程式會停用連續複寫,但是不會從儲存群組副本中移除任何儲存群組檔案或資料庫檔案。系統管理員必須手動從檔案系統中移除這些檔案。

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

參數

參數 必要項目 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.StorageGroupIdParameter

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

  • GUID
  • 儲存群組名稱

Confirm

選用

System.Management.Automation.SwitchParameter

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

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要為尋找 Active Directory 目錄服務之叢集信箱伺服器的網域控制站指定其網域全名 (FQDN),請在命令中加入 DomainController 參數。

StandbyMachine

選用

System.String

StandbyMachine 參數是在 Exchange 2007 SP1 中新增的參數。此參數是用來指定已停止當成 SCR 目標的伺服器名稱。停用 SCR 目標時必須使用此參數。如果未指定此參數,則會停用所指定儲存群組的本機 LCR 或叢集連續複寫 (CCR) 副本。

WhatIf

選用

System.Management.Automation.SwitchParameter

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

錯誤

錯誤 描述

'SGName' does not have local continuous replication enabled.

儲存群組未啟用 LCR。

The storage group that you specified is a recovery storage group. This task cannot be used with recovery storage groups. Specified storage group: {0}

作業無法在復原儲存群組上執行。

範例

第一個範例顯示用來停用儲存群組 SG1 之 LCR 的 Disable-StorageGroupCopy 命令。

第二個範例顯示如何在伺服器 Server2 上停用儲存群組 SG1 的 SCR 目標。

Disable-StorageGroupCopy -Identity SG1
Disable-StorageGroupCopy -Identity SG1 -StandbyMachine Server2

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