Share via


如何在復原模式中執行 Eseutil /R

 

上次修改主題的時間: 2006-06-09

復原是指將交易記錄檔顯示到資料庫的處理程序。復原有兩種:硬復原與軟復原。硬復原可使用 Eseutil 的還原模式 (/C) 來完成。如需瞭解 Eseutil 復原的相關資訊,請參閱 Eseutil /R 復原模式

執行 Eseutil /R 的命令列語法

執行 Eseutil /R

  • 利用 Eseutil 執行軟復原的基本命令列語法為:

    ESEUTIL /R Enn
    
  • 例如:

    ESEUTIL /R E00
    
    note附註:
    Enn 指定想要加入到資料庫之交易記錄檔的記錄檔前置詞。只有在從交易記錄檔所在的資料夾執行時,以及只有在要復原的資料庫位於其原始路徑位置時,此命令列才會運作。記錄檔前置碼指定元是 Eseutil /R 的必要參數。

更加複雜之復原案例的命令列語法

交易記錄檔不在目前的資料夾中

一般而言,您應該恆從要重新顯示之交易記錄檔所在的資料夾執行 Eseutil /R。這是因為預設軟復原處理程序會在交易記錄檔中尋找資料庫的路徑。如果從沒有記錄檔的資料夾執行復原,將產生新的交易記錄檔,而且此交易記錄檔將不知道資料庫的位置。如果想要從交易記錄檔資料夾外執行復原,請將此參數新增至命令:

/Lpath_to_logfiles

例如:

ESEUTIL /R E00 /Ld:\exchsrvr\logfiles

控制檢查點檔案

在大多數手動執行軟復原的狀況下,您會想要刪除或隱藏檢查點,因為通常您會想要重新顯示所有可用的交易記錄檔,而非從可用序列的中途開始。

如果是從有效檢查點檔案所在的資料夾執行復原,而且不想要讓該檔案影響復原,您必須為復原期間要建立的檢查點檔案定義不同的路徑。將離線備份還原至正在執行資料庫的儲存群組時,可能需要此路徑。

如果是從不同資料夾執行復原,而且想要使用檢查點檔案來控制復原,您必須指向檢查點檔案的路徑。

如果想要控制如何在復原期間使用檢查點檔案,請將此參數新增至復原命令:

/Spath_to_or_away_from_current_checkpoint

例如:

ESEUTIL /R E00 /Sd:\

復原遺失某個資料庫的儲存群組

如果儲存群組異常停止,而且其中一個不一致的資料庫遭到移除或無法使用,您將無法在儲存群組中裝載任何資料庫,直到還原遺失的資料庫,或直到利用 /I 參數執行手動復原。

important重要事項:
在略過遺失的資料庫進行復原之前,您應該製作所有交易記錄檔的備份副本,包括目前的記錄檔 (Enn.log)。一旦復原了其他資料庫而變更了 Enn.log,可能就無法在此記錄檔重新可用時,復原遺失的資料庫。

在不適當的位置復原資料庫

此復原方法會完全地從執行中的儲存群組隔離出復原程序。如果您想要將任何記錄檔顯示到備份中,它也是您應該在復原儲存群組中復原離線備份的方法。

若要準備這樣做,您應該移動資料庫檔案 (.edb 及 .stm),以及所有您想要顯示到單一暫時資料夾的交易記錄檔。

在不適當的位置執行 Eseutil

  • 您可以從這個資料夾執行下列命令:

    ESEUTIL /R Enn /I /D
    
  • 例如:

    ESEUTIL /R E00 /I /D
    

需要或不需要 /I 參數,視已連接到記錄檔的其他資料庫的交易記錄檔中是否有正常關機記錄而定。建議在此狀況中使用參數,這樣一來,如果記錄檔的某處有「停滯的附件」,您也不必啟動復原。

/D 參數的行為應詳加解釋。如果完全沒有 /D 參數,交易記錄檔中記錄的資料庫路徑將用來尋找資料庫。這是唯一可在 Exchange 2000 及舊版中的 Eseutil 使用的行為。如果使用沒有路徑的 /D 參數,目前的目錄將作為資料庫檔案的路徑。如果 /D 參數後面緊接著 (沒有空格在其間) 檔案路徑,則該路徑將用來尋找資料庫。如需使用 /D 參數解決移動 Exchange 資料庫時發生的交易記錄檔問題的相關資訊,請參閱<移動 Exchange 信箱資料庫時與交易記錄檔相關的問題>。

因為有可能打錯字,所以強烈建議您不要從已有所有資料檔案的資料夾執行 Eseutil,將路徑與 Eseutil 參數搭配使用。

復原完成後且資料庫檔案處於正常關機狀態時,它們可能會移入適當儲存群組的位置,並在該位置裝載資料庫以附加到記錄檔。

note附註:
在裝載資料庫之前,通常都會需要在 Exchange 系統管理員的資料庫物件內容上選取 [[此資料庫可被還原覆寫] 核取方塊。

命令列參照

在命令提示字元下的 Exchsrvr\Bin 資料夾中輸入 eseutil ./?,然後選取 R 進行還原,如此即可看到這個命令列參照。

RECOVERY:
    DESCRIPTION:  Performs recovery, bringing all databases to a
                  clean-shutdown state.
         SYNTAX:  ESEUTIL /r <3-character logfile base name> [options]
        OPTIONS:  zero or more of the following switches, separated by a space:
                  /l<path>          - location of log files
                                      (default: current directory)
                  /s<path>          - location of system files (eg. checkpoint file)
                                      (default: current directory)
                  /i                - ignore mismatched/missing database attachments
                  /t                - on successful recovery, truncate log files
                  /u[log]           - stop recovery when the Undo phase is reached with the option
                                      to stop when a certain log generation is recovered.
                                      [log] is the log generation number and if not specified
                                      the replay will go to the end of the existing logs.
                  /d[path]          - location of database files, or current directory
                                      if [path] not specified (default: directory
                                      originally logged in log files)
                  /n<path1[:path2]> - new location of database file and optional old location
                                      if the database file location changed.
                                      Can be specified for each database file.
                                      If a certain database is not in the list,it won't get recovered.
                                      To allow recovery in the original location
 for all other database, use /n*.
                                      (not valid with /d switch, not valid with
/b switch)
                  /8                - set 8k database page size (default: 4k)
                  /o                - suppress logo

相關資訊

如需相關資訊,請參閱《Exchange Server 資料庫公用程式手冊》中的下列主題: