Enable-DatabaseCopy (RTM)

 

適用版本: Exchange Server 2007

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

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

語法

enable-DatabaseCopy -Identity <DatabaseIdParameter> [-CopyEdbFilePath <EdbFilePath>] [-DomainController <Fqdn>]

詳細描述

Exchange 系統管理員可能會想要在 Exchange 2007 伺服器的資料庫上啟用 LCR。

若要順利起始 Enable-DatabaseCopy 作業,必須滿足下列條件:

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

  • 指定的儲存群組和資料庫必須存在。

    note附註:
    可裝載或卸載的儲存群組和資料庫。
  • 指定的資料庫不能是復原資料庫。

  • 副本的指定位置必須具備足夠的可用磁碟空間,以保留副本。

  • 路徑和檔案名稱必須是唯一的。它們可能未對應到已定義的資料庫副本。

  • 如果資料庫路徑的結尾是 MySample.edb,則副本路徑的結尾也必須是 MySample.edb。

Enable-DatabaseCopy 作業完成後,會發生下列所有情況:

  • Active Directory 目錄服務中的信箱資料庫物件具備所有必要屬性。
  • 生產資料庫的 LCR 副本已建立,但在啟用儲存群組副本前無法運作或植入。

此工作的必要條件是 用來啟動工作的帳戶必須已委派 Exchange Server 系統管理員角色及目標伺服器的本機 Administrators 群組。如需管理 Exchange Server 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

note附註:
LCR 會限制儲存群組,讓它剛好包含一個資料庫。在執行 Enable-StorageGroupCopy 指令程式前,不會執行這項檢查。
note附註:
在執行 Enable-StorageGroupCopy,並且在資料庫層級持續使用 Disable-StorageGroupCopy 指令程式完全停用 LCR 副本後,LCR 副本才會完全啟用,因此 Disable-DatabaseCopy 指令程式無法使用。

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

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

  • GUID
  • 資料庫的名稱

CopyEdbFilePath

選用

Microsoft.Exchange.Data.EdbFilePath

CopyEdbFilePath 參數 指定將建立資料庫的路徑。預設路徑為:<ExchangeInstallDirectory>\LocalCopies\Storage Group\MBDatabase.edb

DomainController

選用

Microsoft.Exchange.Data.Fqdn

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

錯誤

錯誤 描述

The path, '<DBPath>', that you specified for the local continuous replication copy is used by another database on the same server (<serverName>). Please specify a different path for the copy's database.

指定的 EDBFilePath 和 CopyEDBFilePath 不能相同。

The mailbox database you specified is a recovery mailbox database. Specified mailbox database: %Identity%

您指定的信箱資料庫是復原信箱資料庫。復原儲存群組不支援 LCR。

Storage group '<SGName>' is enabled for local continuous replication. The database in the storage group must also be enabled.

資料庫和儲存群組已啟用 LCR。

There is not enough space on drive %drivename% to complete this operation.

副本位置裡的空間不足以託管生產 .edb 檔案。您必須確定副本位置有足夠的可用磁碟空間可託管生產 .edb 檔案。

The database file path of '<DBPath>' is not available. Please correct the issue before continuing.

無法使用指定資料庫的 .edb 檔案路徑。在執行 Enable-DatabaseCopy 指令程式前,您必須更正此問題。

Local continuous replication cannot be enabled on a cluster.

由於叢集不支援 LCR,因此無法在叢集上執行 Enable-DatabaseCopy 指令程式。

Failed to retrieve mailbox database '<DBName>' due to error (<ErrorCode>). Please correct the problem before continuing.

Enable-DatabaseCopy 指令程式無法擷取指定的信箱資料庫。

The location, '<DBLocation>' must be a fixed (non-removable) storage.

指定的 CopyEdbFilePath 不是固定式磁碟機。只有固定式 (無法移除的) 儲存可用於 LCR 檔案路徑。

The copy EDB file path is not available. There is already a directory named '<filePath>' on server '<server>'.

指定的 CopyEdbFilePath 無法使用。伺服器上已存在具有指定名稱的目錄。您必須為 CopyEdbFilePath 指定唯一的路徑,才能執行 Enable-DatabaseCopy 指令程式。

The database file path that you specified (<DBPath>) for the local continuous replication copy of the database already contains a database file. To avoid overwriting the existing files, use move-database -configurationOnly to change the configuration without moving any files.

為副本位置指定的路徑已包含資料庫檔案。若要避免覆寫現有的檔案,請使用 Move-Database 命令 -ConfigurationOnly 參數來變更組態而不移動任何檔案。

Failed to check the status of copy's database file at (<DBPath>) on <ServerName>. To avoid overwriting the existing files, use "Move-DatabasePath -ConfigurationOnly" to change the configuration without moving any files.

由於無法存取指定的伺服器,因此 Enable-DatabaseCopy 指令程式無法檢查副本的資料庫檔案狀態。伺服器必須在線上才能檢查副本的資料庫狀態。

範例

下列範例顯示 Enable-DatabaseCopy 命令,該命令可以用來針對名為 Mailbox Database (內含於名為 SG1 的儲存群組,並且位於名為 EXLCR1 的伺服器上) 的資料庫啟用資料庫副本。

Enable-DatabaseCopy -Identity:"EXLCR1\SG1\Mailbox Database" -CopyEdbFilePath:"D:\DBs\SG1\Mailbox Database.edb"

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