ldrax Posted September 25, 2019 Share Posted September 25, 2019 Not sure if this is known, but if a drive is in spun-down state, and I click the device name, say, /dev/sdd, from the Dashboard page, the page that follows seems to wake up the hdd (presumably to get SMART data), but from here on the spin-down delay never gets into effect, this drive will stay Active/Idle indefinitely. The Main page will keep showing * (standby) on the status column for the said drive, while the command line hdparm -C /dev/sdd shows Active/Idle. Quote Link to comment
bonienl Posted September 25, 2019 Share Posted September 25, 2019 /dev/sdd indicates an unassigned device and unassigned devices are not controlled by the spin-down delay, only array and cache devices are. Quote Link to comment
ldrax Posted September 25, 2019 Author Share Posted September 25, 2019 I was giving a wrong example, the drive in question is part of the array, perhaps I shouldn't have said /dev/sdd, rather: the fourth drive in the array. So after observing for a few hours noting that the drive wasn't spun down, I browsed inside the drive content to give it 'drive activity'. Sure enough, after the global spin-down delay elapsed, the drive was spun down as it should be. This makes me think that, if an array drive in spun-down state is waken up by SMART-accessing command, the array won't 'notice' it, and hence won't spin it down after the spin-down delay elapsed. Quote Link to comment
JorgeB Posted September 25, 2019 Share Posted September 25, 2019 This is an old issue, it doesn't happen with all drives, but it does with some brands/models. Quote Link to comment
ldrax Posted September 25, 2019 Author Share Posted September 25, 2019 I see. Thanks @johnnie.black! I'll make mental note of that. Quote Link to comment
Zonediver Posted September 25, 2019 Share Posted September 25, 2019 (edited) 53 minutes ago, ldrax said: I see. Thanks @johnnie.black! I'll make mental note of that. You can install the user scripts plugin and execute this command in a script: hdparm -y $(ls /dev/sd*|grep '[a-z]$') >/dev/null 2>&1 Set the cron to lets say 15min and after this timeperiod the script will send all HDDs to standby. Edited September 25, 2019 by Zonediver Quote Link to comment
ldrax Posted September 25, 2019 Author Share Posted September 25, 2019 1 minute ago, Zonediver said: hdparm -y $(ls /dev/sd*|grep '[a-z]$') >/dev/null 2>&1 I take it that this command will put the drives to standby mode immediately? Preferably if there's still a way to respect the global spin-down delay settings. Anyway, this issue is not a big deal for me for the time being, because 'accessing the SMART page' of a drive is not a thing that I do very often. Quote Link to comment
Zonediver Posted September 25, 2019 Share Posted September 25, 2019 (edited) 8 minutes ago, ldrax said: I take it that this command will put the drives to standby mode immediately? Preferably if there's still a way to respect the global spin-down delay settings. Anyway, this issue is not a big deal for me for the time being, because 'accessing the SMART page' of a drive is not a thing that I do very often. If executed, yes - thats why you can use the cron every 15min. But this has no negative effect - the drive will change his state from active/idle to standby - nothing else. Working disks are not affected. Edited September 25, 2019 by Zonediver Quote Link to comment
ldrax Posted September 25, 2019 Author Share Posted September 25, 2019 So perhaps I will set up the script with the cron schedule matching the spin-down delay then. I think that will do, better than having to manually remember to spin it down. Thanks @Zonediver Quote Link to comment
Zonediver Posted September 25, 2019 Share Posted September 25, 2019 (edited) 8 minutes ago, ldrax said: So perhaps I will set up the script with the cron schedule matching the spin-down delay then. I think that will do, better than having to manually remember to spin it down. Thanks @Zonediver It has nothing to do with the spindown. The Info in the Dashboard, that it says "standby", is wrong! It can be active/idle too. This command sets all drives to a defined status - from "active/idle" to "standby" - nothing else. Edited September 25, 2019 by Zonediver Quote Link to comment
ldrax Posted September 25, 2019 Author Share Posted September 25, 2019 oh now I got confused. I always thought putting it into standby means telling it to spin down. Quote Link to comment
Zonediver Posted September 25, 2019 Share Posted September 25, 2019 (edited) 14 hours ago, ldrax said: oh now I got confused. I always thought putting it into standby means telling it to spin down. What you do, is pushing the button "Spindown". But it depends on the HDD-model if they go in "real" standby or just active/idle. I had an old WD-Green in my server - this stupid '§%*"& did never go into "standby" so i removed it 😉 Edited September 26, 2019 by Zonediver Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.