API disk queries spin up standby Seagate HDDs (array summary does not) — Unraid 7.4.0

未关闭
#2,156 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
api, backend

调研方向

Start with the disks list query and the disk(id:) query, which the report shows triggering SMART reads on the Seagate drives while the array summary does not. Check the syslog pattern emhttpd: read SMART and compare it with a smartctl -n standby check before probing. Done means the drives in standby stay asleep after these queries, and the WD parity still returns its temperature as null without waking up.

由索引模型根据 Issue 内容生成。

描述

bug

Environment

  • Unraid OS 7.4.0, built-in API, API key with VIEWER role only
  • Array: 1x WD60EFAX (parity), 3x WD20EFAX, 2x Seagate ST2000VN0001-1SF174 (disk4 / disk5)
  • Both Seagates, the parity and disk1 are on an ASM1166 (AHCI); the other disks on Intel SATA

Steps to reproduce

  1. Main > Spin Down (all array disks in standby, confirmed in syslog)
  2. Run one API query at a time, checking syslog after each

Results

  • array summary (state, capacity, health): no disk wakes up
  • disks list (only id / device / name requested): both Seagates spin up,
    syslog shows emhttpd: read SMART /dev/sdg then read SMART /dev/sdh ~6 s later
  • disk(id:) for ONE Seagate: BOTH Seagates spin up (same log pattern),
    and a real temperature is returned
  • disk(id:) for the WD parity: temperature returned as null, WD stays asleep
  • The WebGUI Main page does not wake any disk

Reproduced several times. The WD drives on the same ASM1166 controller stay
in standby, so it looks like the API probes every disk in a way that wakes
these Seagates instead of checking the power state first (e.g. smartctl -n standby).

Expected
Disk queries should not spin up drives in standby, as the 7.3.0 release notes
state for WebGUI/API requests.

Context
Found while using an MCP client (unraid-mcp) for read-only monitoring.
Power-sensitive setup: array activity is limited to a nightly window.

主要语言
TypeScript
星标
123
派生
25
平均合并
2 天 16 小时
30 天内合并 PR
9

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

unraid/api 的其他 Issue

查看 unraid/api 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。