Mounted Drive Read-only

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

Monitors if the mounted drive is Read-only

Knowledge Base article:

Summary

This monitor tracks if drive failed to mount.

Causes

Failed to mount drive. The drive is already mounted as Read-only and an attempt was made to mount it Read/Write.

Resolutions

Element properties:

TargetMicrosoft.Windows.HyperV.VirtualDrive
Parent MonitorSystem.Health.AvailabilityState
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Mounted Virtual Hard Disk Read-only
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.HyperV.2008.VirtualDrive.MountedDriveReadOnlyMonitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="HVLib!Microsoft.Windows.HyperV.VirtualDrive" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true">
<Category>EventCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.HyperV.2008.VirtualDrive.MountedDriveReadOnlyMonitor.Alert">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ReadOnlyMount" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<OperationalState ID="ManualReset" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Microsoft-Windows-Hyper-V-Image-Management-Service-Admin</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Microsoft-Windows-Hyper-V-Image-Management-Service</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>12242</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>12243</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="HVLib!Microsoft.Windows.HyperV.VirtualMachine"]/VirtualMachineId$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[3]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="HVLib!Microsoft.Windows.HyperV.VirtualDrive"]/ImageFile$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>