我有一台运行 Windows 10 的微型服务器,配有 1 个 SSD 和 3 个硬盘。我计划很少使用其中 2 个驱动器,因此我希望它们保持低速旋转。我甚至在磁盘管理中将它们设置为离线。但离线驱动器一直在旋转,然后又旋转。
但我追踪到 Microsoft-Windows-Storage-Storport 在事件日志中写入了以下内容:
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14052
Event ID : 505
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Performance summary for Storport Device (Port = 1, Path = 0, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {069B6C41-FA99-DA5F-4FC2-6BA20AFF7E67}:
For latency buckets of 2ms, 64ms, 2048ms, 5120ms, 5120+ms, the IO counts are 0, 0, 0, 0, 0.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14053
Event ID : 504
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Error summary for Storport Device (Port = 1, Path = 0, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {069B6C41-FA99-DA5F-4FC2-6BA20AFF7E67}:
There were 1 total errors seen and 0 timeouts.
The last error seen had opcode 0x85 and completed with SrbStatus 0x1 and ScsiStatus 0x0.
The sense code was (0x0,0x0,0x0).
The latency was 0 ms.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14054
Event ID : 505
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Performance summary for Storport Device (Port = 1, Path = 1, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {E0198DC6-C3AD-2038-E67A-CC5C128C7924}:
For latency buckets of 2ms, 64ms, 2048ms, 5120ms, 5120+ms, the IO counts are 25355, 2037, 21, 0, 0.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14055
Event ID : 504
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Error summary for Storport Device (Port = 1, Path = 1, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {E0198DC6-C3AD-2038-E67A-CC5C128C7924}:
There were 6 total errors seen and 0 timeouts.
The last error seen had opcode 0x85 and completed with SrbStatus 0x1 and ScsiStatus 0x0.
The sense code was (0x0,0x0,0x0).
The latency was 0 ms.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14056
Event ID : 505
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Performance summary for Storport Device (Port = 0, Path = 0, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {3F18DCBD-5785-73C0-C528-91E4E8B4C95A}:
For latency buckets of 2ms, 64ms, 2048ms, 5120ms, 5120+ms, the IO counts are 56872, 105, 0, 0, 0.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14057
Event ID : 504
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Error summary for Storport Device (Port = 0, Path = 0, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {3F18DCBD-5785-73C0-C528-91E4E8B4C95A}:
There were 8 total errors seen and 0 timeouts.
The last error seen had opcode 0x85 and completed with SrbStatus 0x1 and ScsiStatus 0x0.
The sense code was (0x0,0x0,0x0).
The latency was 0 ms.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14058
Event ID : 505
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Performance summary for Storport Device (Port = 0, Path = 1, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {E38A0FC1-389B-3ADA-FED0-2978A2A6C019}:
For latency buckets of 2ms, 64ms, 2048ms, 5120ms, 5120+ms, the IO counts are 0, 0, 0, 0, 0.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.041
Record ID : 14059
Event ID : 504
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : Error summary for Storport Device (Port = 0, Path = 1, Target = 0, Lun = 0) whose Corresponding Class Disk Device Guid is {E38A0FC1-389B-3ADA-FED0-2978A2A6C019}:
There were 1 total errors seen and 0 timeouts.
The last error seen had opcode 0x85 and completed with SrbStatus 0x1 and ScsiStatus 0x0.
The sense code was (0x0,0x0,0x0).
The latency was 0 ms.
Opcode :
Task : Port (201)
Keywords : Read request
Process ID :
Thread ID :
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.065
Record ID : 14060
Event ID : 510
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : SMART statistics for Storport Device (Port = 0, Path = 0x0, Target = 0x0, Lun = 0x0).
Corresponding Class Disk Device Guid is {3F18DCBD-5785-73C0-C528-91E4E8B4C95A}.
Opcode :
Task : Port (201)
Keywords : Device state
Process ID : 4
Thread ID : 5428
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.079
Record ID : 14061
Event ID : 511
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : ATA Device Statistics Logs for Storport Device (Port = 0, Path = 0x0, Target = 0x0, Lun = 0x0).
Corresponding Class Disk Device Guid is {3F18DCBD-5785-73C0-C528-91E4E8B4C95A}.
Opcode :
Task : Port (201)
Keywords : Device state
Process ID : 4
Thread ID : 5428
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.119
Record ID : 14062
Event ID : 510
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : SMART statistics for Storport Device (Port = 1, Path = 0x1, Target = 0x0, Lun = 0x0).
Corresponding Class Disk Device Guid is {E0198DC6-C3AD-2038-E67A-CC5C128C7924}.
Opcode :
Task : Port (201)
Keywords : Device state
Process ID : 4
Thread ID : 3368
==================================================
==================================================
Event Time : 09-Jul-17 4:36:37 PM.449
Record ID : 14063
Event ID : 511
Level : Information
Channel : Microsoft-Windows-Storage-Storport/Operational
Provider : Microsoft-Windows-StorPort
Description : ATA Device Statistics Logs for Storport Device (Port = 1, Path = 0x1, Target = 0x0, Lun = 0x0).
Corresponding Class Disk Device Guid is {E0198DC6-C3AD-2038-E67A-CC5C128C7924}.
Opcode :
Task : Port (201)
Keywords : Device state
Process ID : 4
Thread ID : 3368
==================================================
日志中记录的这些事件每 65 分钟发生一次,每次发生时硬盘都会被唤醒。我怀疑驱动程序正在查询 SMART 数据,当请求 SMART 数据时,某些驱动器会启动。
有什么方法可以防止这种情况发生吗?也许我应该尝试一下?
主板是 Asrock J3160DC-ITX。无论我的驱动器连接到 2 个“正常”SATA 端口还是 ASMedia ASM1061c 控制器的 2 个端口,都会出现问题。
编辑:进一步的跟踪指向了 storport.sys!StorpDeviceHealthWorkItemRoutine,它似乎是唤醒我的驱动器的工作方法。
答案1
要修复此问题,您需要将以下键和值添加到 Windows 注册表:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorPort]
"TelemetryPerformanceEnabled"=dword:00000000
"TelemetryErrorDataEnabled"=dword:00000000
"TelemetryDeviceHealthEnabled"=dword:00000000
添加它们之后,我的驱动器停止旋转。
我通过反编译 storport.sys 驱动程序找到了这些。它们似乎仅用于事件日志记录,因此禁用它们应该不会造成任何问题。健康和性能日志记录设置为每 60 分钟 + 5 分钟可接受的延迟运行一次,这解释了为什么驱动器会每 65 分钟准时唤醒一次。
答案2
我想我在这里和其他地方都试过了,但都没有成功。我的硬盘每小时唤醒 5 分钟,然后又回到睡眠状态。我碰巧检查了可靠性监视器,发现我的系统每天晚上 2 点左右都会崩溃,并意外关机,这是由华硕主板软件 AI Suite 引起的。我用它来降低电压、降低频率,并降低风扇/泵的速度,超出 BIOS 中允许的范围。
但在卸载该软件和系统上运行的所有其他 ASUS 服务后,HDD 终于进入睡眠状态。经过数周的故障排除后,这是一个令人疯狂的发现。它似乎整天处于睡眠状态,尽管它可能在晚上醒来执行更新和恶意软件扫描,不确定。不过,每天醒来一次对我来说没问题。
希望这些信息对某些人有帮助。