此監視器會定期執行 (預設為每星期六早上 3 點) 來檢查所有邏輯磁碟機的分散程度。 如果發現分散程度超過閾值,則根據預設,監視的狀態會變更為「警告」並產生警示。 有一個名為「邏輯磁碟重組」的復原措施以此監視為目標,預設為停用。 如果啟用復原措施,則狀態變更之後,會自動開始工作來重組邏輯磁碟機。
此監視器會定期執行 (預設為每星期六早上 3 點) 來檢查所有邏輯磁碟機的分散程度。 如果發現分散程度超過閾值,則根據預設,監視的狀態會變更為「警告」並產生警示。 有一個名為「邏輯磁碟重組」的復原措施以此監視為目標,預設為停用。 如果啟用復原措施,則狀態變更之後,會自動開始工作來重組邏輯磁碟機。
除了通常可供所有監視使用的參數之外,此監視還具有下列可覆寫參數:
使用 OS 建議:此參數會決定分散程度檢查是否會使用作業系統決定的預設閾值。 如果此參數設定為 "False",則會使用 [檔案分散百分比閾值]。
檔案分散百分比閾值:如果 [Use OS Recommendation] \(使用 OS 建議\) 設定為 "False",則會使用此值作為分散程度的閾值。
開始時間:當天應執行分散程度檢查的時間 (HH:MM)。
星期幾遮罩:應在一週的哪幾天執行分散程度檢查。代表一週各天的值分別為星期日 (1)、星期一 (2)、星期二 (4)、星期三 (8)、星期四 (16)、星期五 (32) 和星期六 (64)。 若要指定多天,請將代表各天的值相加。 例如,若要指定星期一、星期三和星期五,請指定 42 (2+8+32)。
建立新檔案或在現有的檔案中新增資料時,檔案系統都會嘗試盡可能持續配置空間,讓讀取作業能夠以最快的速度執行。 經過一段時間後,在持續區段中配置空間將會變得愈來愈困難,因而造成檔案分散在磁碟上。 磁碟上的檔案愈分散,檔案系統處理這些檔案所需的時間愈長,而可能導致整體系統執行速度變慢。
注意:重組磁碟機作業可能會消耗大量資源,在執行期間拖慢系統效能。 因此最好能夠在下班時間重組磁碟機。
如果磁碟機具有適當的分散閾值,您就可以透過下列其中一種方式重組磁碟機來解決此問題:
遠端:邏輯磁碟重組工作可讓您從遠端執行磁碟重組程序。
本機:透過終端機服務連線到伺服器或從本機登入。 在 [我的電腦] 底下開啟需要重組的邏輯磁碟的內容。 切換到內容視窗中的 [工具] 索引標籤,然後按一下 [立即重組...] 按鈕。 之後請依照 [磁碟重組工具] 視窗中的指示分析或重組磁碟。
此監視不支援 Operations 主控台中 [健全狀況總管] 視窗的 [重新計算健全狀況] 隨選功能。 在解決問題並關閉警示後,請手動重設監視的狀態,或等到下次排定間隔時,讓監視自動重設。
Target | Microsoft.Windows.Server.10.0.LogicalDisk | ||
Parent Monitor | System.Health.PerformanceState | ||
Category | PerformanceHealth | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.Server.10.0.LogicalDisk.DefragAnalysis.Monitortype | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | System.PrivilegedMonitoringAccount |
<UnitMonitor ID="Microsoft.Windows.Server.10.0.LogicalDisk.DefragAnalysis" RunAs="System!System.PrivilegedMonitoringAccount" Accessibility="Public" Enabled="false" Target="ServervNext!Microsoft.Windows.Server.10.0.LogicalDisk" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.10.0.LogicalDisk.DefragAnalysis.Monitortype" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.LogicalDisk.DefragAnalysis.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$ ($Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/Name$)</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='FilePercentFragmentation']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='OSRecommended']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="OverThreshold" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<SchedulerStart>03:00</SchedulerStart>
<SchedulerDaysOfWeekMask>64</SchedulerDaysOfWeekMask>
<FilePercentFragmentationThreshold>10</FilePercentFragmentationThreshold>
<UseOSRecommendation>true</UseOSRecommendation>
</Configuration>
</UnitMonitor>