-
Notifications
You must be signed in to change notification settings - Fork 93
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
Should not wakeup hdd from standby/idle (spinned down) to active status #61
Comments
Starting to realize that even if the option was available, once the HDD becomes active, the exporter will prevent it to go back to sleep... Is there a way to collect only stats that won't affect disk's activity changes ? |
According to the man page : https://linux.die.net/man/8/smartctl About having the disks able to sleep, given another monitoring agent I'm using (telegraf) which does not block the drive in active state, 2 things seems required :
With that the drives are able to sleep while still being monitored. |
Update smartctl command arguments to reduce device wakeup from standby/idle. * Ignore exit code of 2 for sleeping devices. Fixes: #61 Signed-off-by: SuperQ <[email protected]>
Update smartctl command arguments to reduce device wakeup from standby/idle. * Ignore exit code of 2 for sleeping devices. Fixes: #61 Signed-off-by: SuperQ <[email protected]> Signed-off-by: SuperQ <[email protected]>
Tested 0.8.0 . It doesn't wake up sleeping drives (yeah !) but for the drives that are not sleeping (or wake up after), it will prevent them from going to sleep. NB: No "smartctl_device_status" will be present for sleeping drives, should the exporter send 0 for those ? I use this command to check if drive is sleeping or not "smartctl.exe -n standby o: --nocheck=standby" |
@EcceGratum Careful tho : drives consume much more power when spinning up. If you have many drive, your power supply might not like it. Regarding the missing smartctl_device_status when drive are sleeping : having a missing status or a status = 0 is the side effect of sleeping drives, as for smartctl, while it is not a real error, it will still return an error code that you have to handle one way or another. |
@Daryes I have plenty of headroom on the PSU side. Currently only 4x 3"5 Internal HDDs are concerned by this, peak power usage should be around 10 watts each, i think. I can live with no smartctl_device_status when hdd is sleeping. Thank you. |
I am trying to monitor the temperature and the device state of my HDDs.
Most of them go into sleep mode and have small periods of activity from time to time.
The behaviour i see on win10 is by having the exporter running, it will keep the HDDs in active mode (making exporting "smartctl_device_state" useless). I didn't check on linux, but would expect a similar behaviour.
I would like a new command line option (or the default behaviour changed) so that the exporter would not wake up sleeping drives.
It will probably not collect most of the stats on sleeping drives but that makes sense and is acceptable.
smartmontools has the "-n POWERMODE[,STATUS[,STATUS2]], --nocheck=POWERMODE[,STATUS[,STATUS2]]" command to prevent waking sleeping drives
The text was updated successfully, but these errors were encountered: