Virtual Server: Low disk space

Microsoft.Virtualization.VirtualServer.2005R2.VirtualServer_Low_disk_space.rule (Rule)

Knowledge Base article:

Summary

Disk space is critically low on the physical disk, and disk operations may fail. If this occurs, any unsaved changes made in guest operating systems will be lost. To address this problem, increase the amount of available physical disk space.

Causes

This problem can occur when the virtual machine is using a dynamically expanding virtual hard disk, and the available disk space on the physical disk is insufficient to allow an increase in the size of the virtual hard disk (.vhd) file needed to store new data. It can also occur when you create a new .vhd on the physical disk and do not leave sufficient free space for existing .vhds.

Resolutions

Increase the amount of available physical disk space, or move the .vhd file to a different physical disk that has more available space. For instructions, see the topic on copying and moving virtual hard disks in the Virtual Server 2005 Administrator’s Guide.

For more information about disk-space requirements, see the section on managing virtual hard disks in the Virtual Server 2005 Administrator’s Guide. For capacity planning information, see the solution accelerator for consolidating and migrating line-of-business (LOB) applications, available at the Microsoft Web site.

External

Additional

Sample Events

Virtual Server ran out of disk space. Please free additional disk space.

Element properties:

TargetMicrosoft.Virtualization.VirtualServer.2005R2.VMHost
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
Virtual Server: Low disk space
{0}
Event LogVirtual Server

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Virtualization.VirtualServer.2005R2.VirtualServer_Low_disk_space.rule" Enabled="true" Target="Microsoft.Virtualization.VirtualServer.2005R2.VMHost">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Virtual Server</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Virtual Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventCategory</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1068</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Virtualization.VirtualServer.2005R2.VirtualServer_Low_disk_space_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>