This rule monitors virtual hard disks (VHD) that cannot be initialized for the iSCSI Target service. When this occurs, VHDs will be unavailable to any iSCSI Target that uses the VHD.
An alert will be generated for every VHD that cannot be initialized. The alert description will contain the device ID and local path to the VHD that has failed. Only a single alert will be generated per unique VHD that exhibits a problem.
A VHD can fail to initialize for a number of reasons such as:
The VHD file has been moved, deleted or renamed
The underlying storage hosting the VHD is unavailable
The file is in use by another application
Multiple VHDs may be affected and you should review additional alerts which have been generated for the iSCSI Target service.
On the Windows Server computer hosting the iSCSI Target service, ensure the VHD file that is referred to in the alert is present and available.
If the file was unavailable when the iSCSI Target service started, and is now available, the iSCSI Target service must be restarted. Note that this can cause an interruption in iSCSI target services to iSCSI initiators while the service is restarted.
To restart the iSCSI Target service, use the following steps:
On the affected server, run an elevated command prompt
Type net stop wintarget and then press ENTER
Once the service has stopped, type net start wintarget and then press ENTER
Open the Microsoft iSCSI Software Target MMC snap-in
In the left pane, locate Devices and verify the VHDs are now available.
You must manually resolve alerts after the issues have been resolved.
Target | Microsoft.Windows.FileServices.Service.iSCSITarget.10.0 | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Event_ID | 15 | ||
Event Source | Microsoft-Windows-iSCSITarget-Service | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Microsoft-Windows-iSCSITarget-Service/Admin |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.FailedInitVHD" Target="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0" Enabled="true" Remotable="true" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Microsoft-Windows-iSCSITarget-Service/Admin</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-iSCSITarget-Service</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">15</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.Windows.FileServices.Service.iSCSITarget.10.0.FailedInitVHD.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Params/Param[1]$</AlertParameter1>
<AlertParameter2>$Data/Params/Param[2]$</AlertParameter2>
<AlertParameter3>$Data/Params/Param[3]$</AlertParameter3>
<AlertParameter4>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter4>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Params/Param[1]$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>