Garbage Collection Last Run

Microsoft.Windows.FileServices.Service.Deduplication.10.0.Volume.GarbageCollectionRun (UnitMonitor)

Last Garbage Collection job

Knowledge Base article:

Summary

This object monitors the health of Garbage Collection jobs on the volume.

When a data deduplication volume has not been processed by Garbage Collection, unreferenced data due to deletion and update of files was not freed. This can impact the amount of free space on the volume.

Causes

Garbage Collection has failed to run or was cancelled.

Resolutions

Run Garbage Collection using the Start-DedupJob cmdlet. Or create or enable a Garbage Collection schedule using the powershell cmdlets New-DedupSchedule and Set-DedupSchedule.

Additional

Deduplication Cmdlets in Windows PowerShell (http://go.microsoft.com/fwlink/?LinkId=255899)

Element properties:

TargetMicrosoft.Windows.FileServices.Service.Deduplication.10.0.Volume
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveFalse
Monitor TypeMicrosoft.Windows.FileServices.Service.Deduplication.10.0.LastJobRun
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServices.Service.Deduplication.10.0.Volume.GarbageCollectionRun" TypeID="Microsoft.Windows.FileServices.Service.Deduplication.10.0.LastJobRun" Accessibility="Public" Target="Microsoft.Windows.FileServices.Service.Deduplication.10.0.Volume" Remotable="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState MonitorTypeStateID="JobNotRunWithinThreshold" HealthState="Error" ID="JobNotRunWithinThreshold"/>
<OperationalState MonitorTypeStateID="JobRunWithinThreshold" HealthState="Success" ID="JobRunWithinThreshold"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<SyncTime/>
<PropertyBagValueToCheck>DaysSinceLastGarbageCollection</PropertyBagValueToCheck>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<VolumeId>$Target/Property[Type='Microsoft.Windows.FileServices.Service.Deduplication.10.0.Volume']/VolumeId$</VolumeId>
<ThresholdInDays>30</ThresholdInDays>
</Configuration>
</UnitMonitor>