設定 DPM 記錄Set up DPM logging

重要

已不再支援此版本的 Data Protection Manager (DPM),建議升級至 DPM 2019This version of Data Protection Manager (DPM) has reached the end of support, we recommend you to upgrade to DPM 2019.

System Center Data Protection Manager (DPM) 會將活動記錄在記錄檔 (*.errlog) 中。System Center Data Protection Manager (DPM) logs activity in log files (*.errlog). 記錄檔都使用定位字元分隔,並且可以在 Excel 中開啟供輕鬆檢視。Log files are tab delimited and can be opened in Excel for easy viewing. 您可以使用特定層級和工作識別碼進行篩選,以找出您感興趣的事件。You can filter with specific levels and task IDs in order to find events that interest you. 每個記錄項目都有 DPM 所產生的記錄工作識別碼,作為每項 DPM 工作的唯一 GUID。Every log entry has a log task ID generated by DPM as a unique GUID for every DPM task. 這可協助您追蹤特定工作的記錄項目。This helps you to track down log entries for specific jobs. 記錄檔位置如下︰Log files are located as follows:

  • DPM 安裝資訊:記錄在 DPM 伺服器的 %ProgramFiles%\Microsoft System Center\DPM\DPMLogs。DPM installation information: Logged on the DPM server at %ProgramFiles%\Microsoft System Center\DPM\DPMLogs.

  • DPM 活動資訊:記錄在 DPM 伺服器的 %ProgramFiles%\Microsoft System Center\DPM\DPM\Temp。DPM activity information: Logged on the DPM server at %ProgramFiles%\Microsoft System Center\DPM\DPM\Temp.

  • 受保護的用戶端活動:記錄在用戶端電腦的 %ProgramFiles%\Microsoft Data Protection Manager\DPM\Temp Logs。Protected client activity: Logged on the client computer at %ProgramFiles%\Microsoft Data Protection Manager\DPM\Temp Logs. 用戶端起始的活動 (例如自助式復原) 會取決於使用者,記錄在用戶端電腦上 (%USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data Protection\)。Client-initiated activities such as self-service recovery are logged on the client computer based on the user (%USERPROFILE%\AppData\Roaming\Microsoft\System Center Data Protection Manager\).

您可以調整的記錄檔設定,如下所示︰You can tweak log file settings as follows:

值名稱Value name 值類型/允許的值Value type/Allowed values 詳細資料Details
TraceLogLevelTraceLogLevel DWORDDWORD

TRACE_ERROR:記錄所有錯誤和失敗 - 預設設定TRACE_ERROR - Logs all errors and failures - default setting

TRACE_DBG_ACTIVITY:記錄所有的活動,例如開始、取消、結束TRACE_DBG_ACTIVITY - Logs all activities such as start, cancel, end

TRACE_DBG_NORMAL:記錄被視為重要的活動TRACE_DBG_NORMAL - Logs activities considered important

TRACE_DBG_CRITICAL:僅記錄重大錯誤。TRACE_DBG_CRITICAL - Logs critical errors only.

TRACE_DBG_FATAL:記錄嚴重錯誤,例如工作或作業失敗TRACE_DBG_FATAL - Logs fatal errors such as task or job failures
指定記錄層級。Specifies the logging level.

可覆寫個別的二進位檔。Can be overridden per binary. 允許值的有效位元遮罩是:A valid bitmask of allowed values is:

enum TRACE_FLAG{enum TRACE_FLAG{

TRACE_ERROR = 0x2,TRACE_ERROR = 0x2,

TRACE_DBG_ACTIVITY = 0x4,TRACE_DBG_ACTIVITY = 0x4,

TRACE_DBG_ = 0x8,TRACE_DBG_ = 0x8,

TRACE_PERF = 0x20,TRACE_PERF = 0x20,

TRACE_DBG_FATAL = 0x200,TRACE_DBG_FATAL = 0x200,

TRACE_DBG_CRITICAL = 0x400TRACE_DBG_CRITICAL = 0x400
};};

您也可以啟用完整詳細資訊記錄,但請注意,這會影響效能。You can also enable full Verbose logging but note that this affects performance. 如果您需要在有限的時間內完成此作業,請執行下列動作:If you need this for a limited time do the following:

1.在登錄中,在 HKLM\Software\Microsoft\Microsoft Data Protection Manager 上新增 DWORD 值 TraceLogLevel,並將其設為 0x43e。1. In the registry, at HKLM\Software\Microsoft\Microsoft Data Protection Manager add a DWORD value TraceLogLevel and set it to 0x43e.
2.若要立即套用,請停止要啟用詳細資訊記錄的 DPM 服務,並刪除舊的記錄檔。2. To apply immediately stop the DPM services for which you want to enable verbose logging and delete the old logs.
3.在重現問題並完成疑難排解之後,請刪除您所建立的登錄項目,並重新啟動已停止的服務,讓非詳細資訊記錄再次運作。3. After you reproduce the issue and finish troubleshooting, delete the registry entry you created and restart the stopped services so that non-verbose logging works again.
TraceLogPathTraceLogPath REG_SZREG_SZ 指定記錄檔位置。Specifies the log location.

需要有效的 NTFS 磁碟區路徑,且 DPM 伺服器上要有 3 GB 的壓縮空間 (包含空格的路徑名稱中不需要使用引號)。Requires a valid NTFS volume path with 3 GB of compressed space on DPM server (no quotation marks required in the name for paths that contain spaces).

可覆寫個別的二進位檔。Can be overridden per binary.
TraceLogMaxSize TraceLogMaxSize DWORDDWORD 指定記錄檔的大小Specifies the size of the log file

預設值為 5 MB5 MB by default

檔案大小 (為此二進位記錄檔取用的磁碟空間總計 = 大小 * 要保留的檔案數)A file size (total disk space consumed for this binary's log = size * number of files to retain)
TraceLogMaxNumTraceLogMaxNum DWORDDWORD 要保留的記錄檔數目上限Maximum number of log files to retain

預設值為 3030 by default

目前的記錄檔數目會在 HKLM\Software\Microsoft\Microsoft Data Protection Manager 中受到追蹤:<binary>TraceLogNextNum (DWORD)。The current number of log files is tracked in HKLM\Software\Microsoft\Microsoft Data Protection Manager: <binary>TraceLogNextNum (DWORD). 這是內部登錄機碼,建議您不要加以修改。This is an internal registry key and we recommend that you don't modify it.

二進位檔和服務對應Binary and service mapping

下表摘要說明部分記錄二進位檔名稱與服務之間的對應。Mappings between some of the log binary names and services are summarized in the following table.

服務/程序Service/Process 二進位檔名稱Binary name 詳細資料Details
DPM 引擎 (MSDPM)DPM Engine (MSDPM) MSDPMMSDPM MSDPM 引擎記錄包含引擎 API 呼叫、作業和工作觸發程序、例行性作業等項目的相關資訊。MSDPM engine logs contain info about engine API calls, jobs and task triggers, housekeeping jobs and so on.
DPM 複寫代理程式 (DPMRA)DPM Replication Agent (DPMRA) DPMRADPMRA 記錄磁帶備份、磁碟複寫、還原、次要 DPM 複寫的相關資訊。Logs information about tape backups, disk replication, restore, secondary DPM replications. 在 DPM 伺服器和受保護的用戶端上。On DPM server and protected client.
DPM 媒體櫃代理程式 (DPMLA)DPM Library Agent (DPMLA) LAAgentLAAgent 記錄媒體櫃相關活動。Logs library related activities. 在 DPM 伺服器和共用媒體櫃伺服器上。On DPM server and shared library server.
DPM UIDPM UI DPMUIDPMUI 記錄 UI 活動,例如監視、保護、復原等。Logs UI activity such as monitoring, protection, recovery, etc.
DPM PowerShell CLIDPM PowerShell CLI DPMCLIDPMCLI 記錄所有 Cmdlet 動作Logs all cmdlet actions
DPM Access ManagerDPM Access Manager DPMMACDPMMAC 記錄自動行為,例如成長、重新執行工作和存取控制管理員資訊。Logs automatic behavior such as grow, rerun jobs, and Access Control Manager information.
Exchange Cmdlet 包裝函式Exchange Cmdlet Wrapper

E14 Cmdlet 包裝函式E14 Cmdlet Wrapper
ExchangeCmdletsWrapperExchangeCmdletsWrapper 在 Exchange 用戶端上由 DPMRA 執行之各種 Cmdlet 的記錄檔Logs for various cmdlets run by DPMRA on Exchange client side
代理程式協調員Agent Coordinator AgentBootStrapperAgentBootStrapper 代理程式安裝和升級期間的記錄檔Logs during agent installation and upgrade
DPM 用戶端服務DPM Client Service DPMClientProtectionDPMClientProtection 安裝在筆記型電腦上的 DPM 用戶端的記錄檔。Logs by DPM client installed on laptops. 僅限在筆記型電腦上使用。Used on laptop-side only.
DPM 備份工具DPM Backup Tool DpmBackupDpmBackup 執行 DPM 備份之工具的記錄檔Logs for tool doing DPM backup
安裝 SQL 準備 (遠端 SQL)Install SQL Prep (Remote SQL) SQL 準備啟動載入器SQL Prep Bootstrapper 安裝遠端 SQL Server 期間的安裝前記錄檔。Logs during installation of remote SQL Server before Setup.
DPM 備份DPM Backup DpmBackupDpmBackup DPM 備份工具的記錄檔Logs for DPM backup tool
DPM 編寫器DPM Writer DPMWriterDPMWriter 第三方磁帶備份和次要伺服器備份期間的記錄檔。Logs during third party tape backups and secondary server backup. 僅限於 DPM 伺服器上。On DPM server only.
WSS Cmdlet 包裝函式WSS Cmdlet wrapper WssCmdletsWrapperWssCmdletsWrapper 在 SharePoint WFE 上執行 WSS Cmdlet 時的記錄檔。Logs when running WSS cmdlets on SharePoint WFE. 僅限於受保護的用戶端上。On protected client only.

記錄檔位於:%USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012Logs at: %USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012\
SQL EUR 用戶端SQL EUR Client EurClientEurClient 安裝在已安裝 SQL EUR 用戶端的機器上。Installed on machines where SQL EUR client is installed. 記錄連接到 DPMserver、觸發和取消復原等動作的相關資訊。Logs information about connecting to DPMserver, triggering and canceling recovery etc.

記錄檔位於:%USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012Logs at: %USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012\
筆記型電腦用戶端 UILaptop Client UI DPMClientUIDPMClientUI 從 DPM 用戶端 UI 觸發的各種動作和失敗的相關記錄。Logs about various actions triggered from DPM client UI and failures.

記錄檔位於:%USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012Logs at: %USERPROFILE%\AppData\Roaming\Microsoft\Microsoft System Center Data ProtectionManager 2012\