Logical Disk \% Free Inodes

Microsoft.HPUX.11iv2.LogicalDisk.PercentFreeInodes.Monitor (UnitMonitor)

HPUX 11iv2 論理ディスクの空き inode の割合モニター

Knowledge Base article:

概要

論理ディスク (ファイル システム) の空き inode の割合が低くなっています。 追加の inode が使用可能になるまでは、システムのパフォーマンスに悪影響を与えたり、ファイル システムにファイルを追加する機能が不安定になる可能性があります。

ファイル システムが inode を使用していない場合、空き inode の割合の値は 100% と報告されます。 ファイル システムの inode の使用状況は現在の空き inode と合計 inode の値に基づいて計算され、たとえば JFS のように inode を動的に割り当てるファイル システムでは真の使用状況が正しく反映されない場合もあります。

モニターのしきい値は、エージェントへのポーリングで返された値の平均値を基準として分析されます。ここで [サンプル数] パラメーターは、平均値の計算に使用されるサンプルの数を制御します。

構成

既定の構成

パラメーター

既定値

しきい値

5

間隔 (秒)

300

サンプル数

1

上記で定義されたパラメーターの値は、上書きを使用して、すべてのインスタンスまたは特定のインスタンスやグループに対して変更できます。

原因

異常な状態とは、空き inode の割合が現在低くなっていることを示します。 これはファイル システムに保存されているファイルの数が多すぎるのが原因であることがあります。

解決策

inode には、ファイルとディレクトリに関するメタデータが保存されます。 ファイル システムに使用できるすべての inode が割り当て済みの場合、空き領域があっても新しいファイルやディレクトリを作成することはできません。 空き inode の割合が低い問題を解決するには、ファイル システムを検査し、ほかのファイル システムに移動したり削除できるファイルやディレクトリを探します。

最近のファイル システムの容量履歴を確認するには、次の表示を使用できます。

ディスク容量

Element properties:

TargetMicrosoft.HPUX.11iv2.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
空き inode の割合が低すぎます
Logical Disk\\% Free inodes パフォーマンス カウンターのしきい値を超えました。 しきい値を超えた値は、次のとおりです。 {0}\% の空き inode。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.HPUX.11iv2.LogicalDisk.PercentFreeInodes.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.HPUX.11iv2.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.HPUX.11iv2.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>