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와 같이 공간을 동적으로 할당하는 파일 시스템의 실제 사용량을 정확히 나타내지 못할 수 있습니다.

모니터 임계값은 에이전트에 대한 폴링에 반환된 평균 값에 대해 분석됩니다. 여기서 샘플 수 매개 변수가 평균 계산에 포함된 샘플 수를 제어합니다.

이 모니터는 구성 가능한 경고 및 오류 여유 공간 임계값을 백분율과 MB 단위로 구현하는 해당 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>