共用方式為


修改健全狀況服務設定

適用於:Azure Stack HCI 版本 23H2 和 22H2;Windows Server 2022、Windows Server 2019、Windows Server 2016

健全狀況服務最早在 Windows Server 2016 中發行,可為執行儲存空間直接存取的叢集改善日常監視和操作體驗。

管理健全狀況服務行為的許多參數都會公開為設定。 您可以修改這些功能來微調錯誤或動作的加強、開啟/關閉特定行為等等。

使用下列 PowerShell Cmdlet 來設定或修改設定。

使用狀況

Get-StorageSubSystem Cluster* | Set-StorageHealthSetting -Name <SettingName> -Value <Value>

範例

Get-StorageSubSystem Cluster* | Set-StorageHealthSetting -Name "System.Storage.Volume.CapacityThreshold.Warning" -Value 70

一般設定

以下列出一些經常修改的設定,以及其預設值。

磁碟區容量閾值

"System.Storage.Volume.CapacityThreshold.Enabled"  = True
"System.Storage.Volume.CapacityThreshold.Warning"  = 80
"System.Storage.Volume.CapacityThreshold.Critical" = 90

集區保留容量閾值

"System.Storage.StoragePool.CheckPoolReserveCapacity.Enabled" = True

實體磁碟生命週期

"System.Storage.PhysicalDisk.AutoPool.Enabled"                             = True
"System.Storage.PhysicalDisk.AutoRetire.OnLostCommunication.Enabled"       = True
"System.Storage.PhysicalDisk.AutoRetire.OnUnresponsive.Enabled"            = True
"System.Storage.PhysicalDisk.AutoRetire.DelayMs"                           = 900000 (i.e. 15 minutes)
"System.Storage.PhysicalDisk.Unresponsive.Reset.CountResetIntervalSeconds" = 3600 (i.e. 60 minutes)
"System.Storage.PhysicalDisk.Unresponsive.Reset.CountAllowed"              = 3

可用的記憶體閾值

"Microsoft.Health.Setting.Node.AvailableToSystemMemoryLimit" = 0.100

支援的元件檔

健全狀況服務提供強制機制,將儲存空間直接存取的元件限制為系統管理員或解決方案廠商所提供的支援元件文件。 如需詳細資訊,請參閱支援的元件文件

韌體推出

"System.Storage.PhysicalDisk.AutoFirmwareUpdate.SingleDrive.Enabled"       = True
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.Enabled"           = True
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.LongDelaySeconds"  = 604800 (i.e. 7 days)
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.ShortDelaySeconds" = 86400 (i.e. 1 day)
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.LongDelayCount"    = 1
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.FailureTolerance"  = 3

平臺/靜止

"Platform.Quiescence.MinDelaySeconds" = 120 (i.e. 2 minutes)
"Platform.Quiescence.MaxDelaySeconds" = 420 (i.e. 7 minutes)

計量

"System.Reports.ReportingPeriodSeconds" = 1

偵錯

"System.LogLevel" = 4

下一步