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 監視取代,該監視經由百分比和 MB 實作了可設定的警告及錯誤可用空間閾值。 如果對應的 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
可用空間百分比過低
[Logical Disk\\% Free Space] 效能計數器已超過閾值。 以下的值已超過閾值: {0}\% 可用空間。
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>