SUSE Linux Enterprise Server 10 Logical Disk \% Free Inodes 監視
邏輯磁碟上可用 Inode 的百分比 (檔案系統) 偏低。系統效能可能會受到負面影響,且在空出更多 Inode 之前,在檔案系統上執行新增檔案功能可能會有風險。
如果檔案系統未使用 Inode,Percent Free Inodes 值會傳回 100%。檔案系統 Inode 使用狀況是使用目前的可用及總計值計算,如此可能無法精確地表示動態配置 Inode (如 JFS) 的真實檔案系統使用狀況。
監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。
預設設定
參數 | 預設值 |
閾值 | 5 |
間隔時間 (秒) | 300 |
範例數 | 1 |
您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更上述定義的參數值。
狀況不良狀態表示目前的可用 Inode 百分比偏低。這可能是由儲存在檔案系統上的檔案數目過多所導致。
Inode 會儲存與檔案和目錄相關的中繼資料。如果已配置檔案系統的所有可用 Inode,則無法建立新的檔案及目錄,即使尚有可用空間。若要解決可用 Inode 百分比偏低的情況,請檢查檔案系統並尋找可刪除的未使用檔案及目錄,或將這些未使用的檔案或目錄移至其他檔案系統。
若要檢視檔案系統容量最近的歷程,可使用下列檢視:
磁碟容量
Target | Microsoft.Linux.SLES.10.LogicalDisk | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Linux.SLES.10.LogicalDisk.PercentFreeInodes.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Linux.SLES.10.LogicalDisk" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.10.LogicalDisk.PercentFreeInodes.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="UnderThreshold" HealthState="Error"/>
<OperationalState ID="OverThreshold" MonitorTypeStateID="OverThreshold" HealthState="Success"/>
</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 Inodes</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(.)='PercentFreeInodes']$</Value>
<Threshold>5</Threshold>
<NumSamples>1</NumSamples>
<PreMapperFilter>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentUsedInodes']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^[-]?([0-9]*\.[0-9]+|[0-9]+)$</Pattern>
</RegExExpression>
</PreMapperFilter>
</Configuration>
</UnitMonitor>