執行重複資料刪除Running Data Deduplication

適用於:Windows Server (半年度管道)、Windows Server 2016Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

手動執行重複資料刪除工作Running Data Deduplication jobs manually

您可以使用下列 PowerShell Cmdlet,手動執行每個排程的重複資料刪除工作:You can run every scheduled Data Deduplication job manually by using the following PowerShell cmdlets:

  • Start-DedupJob︰啟動新的重複資料刪除工作Start-DedupJob: Starts a new Data Deduplication job
  • Stop-DedupJob︰停止已在進行中的重複資料刪除工作 (或將它從佇列移除)Stop-DedupJob: Stops a Data Deduplication job already in progress (or removes it from the queue)
  • Get-DedupJob︰顯示所有作用中和已排入佇列的重複資料刪除工作Get-DedupJob: Shows all the active and queued Data Deduplication jobs

所有當您在排程重複資料刪除工作時可使用的設定,也可以在您手動啟動工作 (排程特有的設定除外) 時使用。All settings that are available when you schedule a Data Deduplication job are also available when you start a job manually except for the scheduling-specific settings. 例如,若要手動啟動具有高優先順序、最大 CPU 使用量,以及最大記憶體使用量的最佳化工作,請以系統管理員權限執行下列 PowerShell 命令:For example, to start an Optimization job manually with high priority, maximum CPU usage, and maximum memory usage, execute the following PowerShell command with administrator privilege:

Start-DedupJob -Type Optimization -Volume <Your-Volume-Here> -Memory 100 -Cores 100 -Priority High

監視重複資料刪除Monitoring Data Deduplication

工作成功Job successes

由於重複資料刪除會使用後續處理模型,請務必確認重複資料刪除工作會成功。Because Data Deduplication uses a post-processing model, it is important that Data Deduplication jobs succeed. 用來檢查最新工作狀態的簡單方法是使用 Get-DedupStatus PowerShell Cmdlet。An easy way to check the status of the most recent job is to use the Get-DedupStatus PowerShell cmdlet. 定期檢查下列欄位:Periodically check the following fields:

  • 針對最佳化工作,查看 LastOptimizationResult (0 = 成功)、LastOptimizationResultMessage,及 LastOptimizationTime (應該是最新的)。For the Optimization job, look at LastOptimizationResult (0 = Success), LastOptimizationResultMessage, and LastOptimizationTime (should be recent).
  • 針對記憶體回收工作,查看 LastGarbageCollectionResult (0 = 成功)、LastGarbageCollectionResultMessage,及 LastGarbageCollectionTime (應該是最新的)。For the Garbage Collection job, look at LastGarbageCollectionResult (0 = Success), LastGarbageCollectionResultMessage, and LastGarbageCollectionTime (should be recent).
  • 針對清除工作,查看 LastScrubbingResult (0 = 成功)、LastScrubbingResultMessage,及 LastScrubbingTime (應該是最新的)。For the Integrity Scrubbing job, look at LastScrubbingResult (0 = Success), LastScrubbingResultMessage, and LastScrubbingTime (should be recent).

注意

如需工作成功和失敗的其他詳細資料,請參閱 \Applications and Services Logs\Windows\Deduplication\Operational 下的 Windows 事件檢視器。More detail on job successes and failures can be found in the Windows Event Viewer under \Applications and Services Logs\Windows\Deduplication\Operational.

最佳化比率Optimization rates

最佳化工作失敗的一個指標是最佳化比率有向下趨勢,這可能表示最佳化工作跟不上變更或變換的速率。One indicator of Optimization job failure is a downward-trending optimization rate which might indicate that the Optimization jobs are not keeping up with the rate of changes, or churn. 您可以使用 Get-DedupStatus PowerShell Cmdlet 來檢查最佳化比率。You can check the optimization rate by using the Get-DedupStatus PowerShell cmdlet.

重要

Get-DedupStatus 有兩個與最佳化比率相關的欄位:OptimizedFilesSavingsRateSavingsRatehas two fields that are relevant to the optimization rate: OptimizedFilesSavingsRate and SavingsRate. 這兩者都是需要追蹤的重要值,但每一個都具有獨特的意義。These are both important values to track, but each has a unique meaning.

  • OptimizedFilesSavingsRate 只適用於要「在原則內」進行最佳化的檔案 (space used by optimized files after optimization / logical size of optimized files)。applies only to the files that are 'in-policy' for optimization (space used by optimized files after optimization / logical size of optimized files).
  • SavingsRate 適用於整個磁碟區 (space used by optimized files after optimization / total logical size of the optimization)。applies to the entire volume (space used by optimized files after optimization / total logical size of the optimization).

停用重複資料刪除Disabling Data Deduplication

若要關閉重複資料刪除,請執行取消最佳化工作To turn off Data Deduplication, run the Unoptimization job. 若要復原磁碟區最佳化,請執行下列命令:To undo volume optimization, run the following command:

Start-DedupJob -Type Unoptimization -Volume <Desired-Volume>

重要

如果磁碟區沒有足夠空間來保存已取消最佳化的資料,則取消最佳化工作將會失敗。The Unoptimization job will fail if the volume does not have sufficient space to hold the unoptimized data.

常見問題集Frequently Asked Questions

是否有 System Center Operations Manager 管理組件可用來監視重複資料刪除?Is there a System Center Operations Manager Management Pack available to monitor Data Deduplication?
是。Yes. 重複資料刪除可透過檔案伺服器的 System Center 管理組件來監視。Data Deduplication can be monitored through the System Center Management Pack for File Server. 如需詳細資訊,請參閱檔案伺服器 2012 R2 的 System Center 管理組件指南文件。For more information, see the Guide for System Center Management Pack for File Server 2012 R2 document.