Virtual Hard Disk free disk space

Microsoft.Windows.HyperV.2008.VirtualDrive.FreeSpaceMonitor (UnitMonitor)

Monitors the free disk space in Virtual Hard Disks

Knowledge Base article:

Summary

This monitor tracks the amount of free disk space on the Logical Disk that contains the Dynamically expanding or differencing Virtual Hard Disk.

It changes state based on the Warning and Error State Disk Space parameter values that can be re-configured. The default values are 2GB for warning and 200MB for Error state. Hyper-V will pause Virtual Machines when available free disk space is less than 200MB.

Causes

This monitor will cause the following states:

Resolutions

Element properties:

TargetMicrosoft.Windows.HyperV.VirtualDrive
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.HyperV.DiskFreeSpaceMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.HyperV.2008.VirtualDrive.FreeSpaceMonitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="HVLib!Microsoft.Windows.HyperV.VirtualDrive" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="HVLib!Microsoft.Windows.HyperV.DiskFreeSpaceMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<OperationalStates>
<OperationalState ID="EnoughSpace" MonitorTypeStateID="FreeSpaceAvailable" HealthState="Success"/>
<OperationalState ID="PartialSpace" MonitorTypeStateID="PartialSpaceAvailable" HealthState="Warning"/>
<OperationalState ID="NoSpace" MonitorTypeStateID="NoSpaceAvailable" HealthState="Error"/>
</OperationalStates>
<Configuration>
<VirtualDriveId>$Target/Property[Type="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent"]/DeviceId$</VirtualDriveId>
<WarningSize>2048</WarningSize>
<ErrorSize>200</ErrorSize>
</Configuration>
</UnitMonitor>