Monitors free logical disk space for virtual hard disks.
This monitor tracks the amount of free disk space on a logical disk that contains a dynamically expanding or differencing virtual hard disk.
It changes the state according to the Warning and Error State Disk Space parameter values that can be re-configured. The default values are 2 GB for Warning and 200 MB for Error state. Hyper-V will pause the virtual machines when the available free disk space is less than 200 MB.
This monitor will cause the following states:
Healthy: logical disk has more than 2 GB Free disk space (Warning State Disk Space default), or virtual hard disk is fixed.
Warning: logical disk has less than 2 GB Free disk space (Warning State Disk Space default), but more than 200MB (Error State Disk Space default).
Critical: logical disk has less than 200 MB 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.Discovery.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.VirtualDrive.FreeSpaceMonitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="HVDisc!Microsoft.Windows.HyperV.Discovery.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>