Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法正常获取 S.M.A.R.T. 显示状态为 SLEEP #42

Open
love4taylor opened this issue Aug 6, 2021 · 5 comments
Open

无法正常获取 S.M.A.R.T. 显示状态为 SLEEP #42

love4taylor opened this issue Aug 6, 2021 · 5 comments

Comments

@love4taylor
Copy link

for _, line in ipairs(luci.util.execl(d.command.smartctl .. " -H -A -i -n standby -f brief /dev/" .. device)) do

使用了 -n standby 时 VL716 硬盘盒+SSD 状态显示为 SLEEP,无法正常获取 S.M.A.R.T. 但用 hdparm -C 显示 drive state is: standby

root@ImmortalWrt:~# smartctl -H -A -i -n standby -f brief /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.4.137] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Device is in SLEEP mode, exit(2)
@lisaac
Copy link
Owner

lisaac commented Aug 12, 2021

这个应该是硬盘盒的原因,大多数usb硬盘smartctl都无法读取smart信息的

@love4taylor
Copy link
Author

读是没问题的,只要去掉 -n standby 就能正常显示了(需要安装了 smartmontools-drivedb)现在主要的问题就是会被 smartctl 判断为 SLEEP。

@lisaac
Copy link
Owner

lisaac commented Aug 12, 2021

读是没问题的,只要去掉 -n standby 就能正常显示了(需要安装了 smartmontools-drivedb)现在主要的问题就是会被 smartctl 判断为 SLEEP。

这就尴尬了,没研究过smartctl,如果去掉-n standby,会让处于休眠的硬盘唤醒,带来不必要的唤醒

@lisaac
Copy link
Owner

lisaac commented Aug 16, 2021

@love4taylor
貌似解决方案找到了?

@love4taylor
Copy link
Author

并没有 另一个 issue 的是另一个硬盘盒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants