Windows Server 2012 逻辑磁盘可用空间(MB)不足

Microsoft.Windows.Server.6.2.LogicalDisk.MBFreeSpace (UnitMonitor)

监视逻辑磁盘上剩余的可用兆字节数。

Knowledge Base article:

摘要

Logical Disk MB Free Space 监视器使操作员能够设置不同的系统和非系统逻辑磁盘卷阈值。 另外,可对警告和错误状态设置独立的阈值。

配置

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

由于逻辑磁盘卷大小可能会相差几 GB 到许多 TB 甚至更多,“逻辑磁盘可用空间”监视例程要求操作员指示基于 MB 的阈值,必须在到达警告和错误阈值之前发送这些阈值。

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

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

参数

默认值

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

300

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

500

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

参数

默认值

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

1000

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

2000

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

原因

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

解决方法

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

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

启动磁盘容量视图

Element properties:

TargetMicrosoft.Windows.Server.6.2.LogicalDisk
Parent MonitorMicrosoft.Windows.Server.6.2.LogicalDisk.FreeSpaceMonitorRollup
CategoryCustom
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.6.2.DiskState.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
逻辑磁盘可用空间太小(以兆字节为单位)
计算机 {1} 上的磁盘 {0} 空间不足。 超出阈值的值是 {2} 可用兆字节。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.6.2.LogicalDisk.MBFreeSpace" Accessibility="Public" Enabled="false" Target="WindowsServer!Microsoft.Windows.Server.6.2.LogicalDisk" ParentMonitorID="Microsoft.Windows.Server.6.2.LogicalDisk.FreeSpaceMonitorRollup" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.6.2.DiskState.Monitortype" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.6.2.LogicalDisk.MBFreeSpace.AlertMessage">
<AlertOnState>Error</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>
<AlertParameter3>$Data/Context/SampleValue$</AlertParameter3>
</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>
<CounterName>MbFree</CounterName>
<IntervalSeconds>900</IntervalSeconds>
<NumSamples>4</NumSamples>
<SystemDriveWarningThreshold>500</SystemDriveWarningThreshold>
<SystemDriveErrorThreshold>300</SystemDriveErrorThreshold>
<NonSystemDriveWarningThreshold>2000</NonSystemDriveWarningThreshold>
<NonSystemDriveErrorThreshold>1000</NonSystemDriveErrorThreshold>
</Configuration>
</UnitMonitor>