逻辑磁盘可用空间

Microsoft.Windows.Server.2003.LogicalDisk.FreeSpace (UnitMonitor)

监视逻辑磁盘上剩余的百分比可用空间和可用兆字节数。仅当百分比可用空间阈值和可用兆字节数阈值都很低时,才会将磁盘标志为磁盘可用空间低。

Knowledge Base article:

摘要

逻辑磁盘卷上的可用磁盘空间超出了阈值。系统性能可能会受到不利影响并且可能不能在逻辑磁盘卷上添加或修改现有文件,直到另有可用空间可用为止。

配置

“逻辑磁盘可用空间”监视例程是一种配置度高的解决方案,它使操作员能够设置不同的系统和非系统逻辑磁盘卷阈值。另外,可对警告和错误状态设置独立的阈值。

由于逻辑磁盘卷大小可能会相差几 GB 到许多 TB 甚至更多,Logical Disk Free Space 监视例程要求操作员指示基于 MB 和百分比的阈值,必须在到达警告和错误阈值之前发送这些阈值。这意味着要达到阈值,必须突破系统或非系统驱动器的基于 MB 和百分比的阈值。

“逻辑磁盘可用空间”监视例程的默认阈值包括:

系统驱动器可用空间阈值(默认值)

参数

默认值

系统驱动器错误兆字节阈值

300

系统驱动器错误百分比阈值

5

系统驱动器警告兆字节阈值

500

系统驱动器警告百分比阈值

10

非系统驱动器可用空间阈值(默认值)

参数

默认值

非系统驱动器错误兆字节阈值

1000

非系统驱动器错误百分比阈值

5

非系统驱动器警告兆字节阈值

2000

非系统驱动器警告百分比阈值

10

请注意,可使用“替代”来更改上面定义的任何阈值。另外,这些阈值可应用于管理组中的所有逻辑磁盘卷实例,或者需要时可对特定逻辑磁盘卷实例定义独立的阈值。

原因

在现有文件大小增大且添加新文件时,会占用逻辑磁盘上的可用空间。当逻辑磁盘上的可用空间量低于阈值时,逻辑磁盘的状态将发生更改。

解决方法

若要增加可用磁盘空间量,请执行以下一项或多项操作:

要查看最近磁盘空间历史记录,可使用以下视图:

启动磁盘容量视图

Element properties:

TargetMicrosoft.Windows.Server.2003.LogicalDisk
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.2003.FreeSpace.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
逻辑磁盘可用空间不足
计算机 {1} 上的磁盘 {0} 空间不足。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2003.LogicalDisk.FreeSpace" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.Server.2003.LogicalDisk" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.2003.FreeSpace.Monitortype" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2003.LogicalDisk.FreeSpace.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderWarningThresholds" MonitorTypeStateID="UnderWarningThresholds" HealthState="Success"/>
<OperationalState ID="OverWarningUnderErrorThresholds" MonitorTypeStateID="OverWarningUnderErrorThresholds" HealthState="Warning"/>
<OperationalState ID="OverErrorThresholds" MonitorTypeStateID="OverErrorThresholds" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<DiskLabel>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</DiskLabel>
<IntervalSeconds>900</IntervalSeconds>
<SystemDriveWarningMBytesThreshold>500</SystemDriveWarningMBytesThreshold>
<SystemDriveWarningPercentThreshold>10</SystemDriveWarningPercentThreshold>
<SystemDriveErrorMBytesThreshold>300</SystemDriveErrorMBytesThreshold>
<SystemDriveErrorPercentThreshold>5</SystemDriveErrorPercentThreshold>
<NonSystemDriveWarningMBytesThreshold>2000</NonSystemDriveWarningMBytesThreshold>
<NonSystemDriveWarningPercentThreshold>10</NonSystemDriveWarningPercentThreshold>
<NonSystemDriveErrorMBytesThreshold>1000</NonSystemDriveErrorMBytesThreshold>
<NonSystemDriveErrorPercentThreshold>5</NonSystemDriveErrorPercentThreshold>
<NumSamples>4</NumSamples>
</Configuration>
</UnitMonitor>