Monitors the free disk space in Virtual Hard Disks
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.
This monitor will cause the following states:
Healthy: Logical Disk has more than 2GB Free disk space (Warning State Disk Space default) or Virtual Hard Disk is fixed.
Warning: Logical Disk has less than 2GB Free disk space (Warning State Disk Space default) but more than 200MB (Error State Disk Space default).
Critical: Logical Disk has less than 200MB Free disk space (Error State Disk Space default).
Free more than 2GB space (Warning State Disk Space default) on the Logical Disk that contains the Virtual Hard Disk.
Target | Microsoft.Windows.HyperV.VirtualDrive |
Parent Monitor | System.Health.AvailabilityState |
Category | StateCollection |
Enabled | True |
Alert Generate | False |
Alert Auto Resolve | True |
Monitor Type | Microsoft.Windows.HyperV.DiskFreeSpaceMonitorType |
Remotable | True |
Accessibility | Public |
RunAs | Default |
<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>