Logical Disk \% Free Space

Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.Monitor (UnitMonitor)

SUSE Linux Enterprise Server 9 Logical Disk \% Free Space 监视器

Knowledge Base article:

摘要

逻辑磁盘(文件系统)上的可用空间的百分比低。系统性能可能会受到负面影响,在提供其他可用空间之前,在文件系统上添加或修改现有文件的功能可能有风险。

计算的可用空间中不包含为根用户保留的文件系统空间。文件系统空间使用率是使用当前的可用值和总值计算的,这可能未准确表示动态分配空间的文件系统(例如 ZFS)的真实使用率。

此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。

此监视器已被对应的 Logical Disk Free Space 监视器所取代,这实现了可按百分比和兆字节来配置警告和错误可用空间阈值。如果启用了对应的 Logical Disk Free Space 监视器,请通过替代来禁用此监视器。

配置

默认配置

参数

默认值

阈值

5

间隔(秒)

300

样本数

1

替代可用于更改以上为所有实例或为特定实例或组定义的参数值。

原因

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

解决方法

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

若要查看最近的文件系统容量历史记录,你可以使用以下视图:

磁盘容量

Element properties:

TargetMicrosoft.Linux.SLES.9.LogicalDisk
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
\% Free Space 太低
已超过 Logical Disk\\% Free Space 性能计数器的阈值。超过了阈值的值是:{0}\% Free Space。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.Monitor" Accessibility="Public" Target="Microsoft.Linux.SLES.9.LogicalDisk" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Error" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Success" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_FileSystemStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Logical Disk</ObjectName>
<CounterName>% Free Space</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.LogicalDevice"]/DeviceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']$</Value>
<Threshold>5</Threshold>
<NumSamples>1</NumSamples>
</Configuration>
</UnitMonitor>