* [gentoo-user] Problem with power management of SATA hard drives
@ 2014-06-11 13:12 Ralf
2014-06-11 13:40 ` thegeezer
0 siblings, 1 reply; 3+ messages in thread
From: Ralf @ 2014-06-11 13:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]
Hi there,
I'm using Gentoo ~amd64 on my NAS.
This is my setup:
Mainboard - Asus E35M1
CPU - AMD E350
HDD - 1x 500GiB WD Caviar Green WD5000AADS (root)
HDD - 4x 3TiB WD Caviar Green WD30EZRX (Raid10)
As these hard drives are desktop hard drives and not designed for 24/7
purposes, I want to spin them down when they are not in use.
(And in fact, they will probably be idling most of the time, so let's
save energy)
I'm able to force spin down those drive by using hdparm -y. hdparm -C
then tells me, that they switched from active/idle to standby.
Setting standby-time using hdparm -S also seems to work fine:
hdparm -S 10 /dev/sdb
/dev/sdb:
setting standby to 10 (50 seconds)
But this does not standby my drive after 50 seconds. So I tried to set
the Power Management Level:
hdparm -B 5 /dev/sdb
/dev/sdb:
setting Advanced Power Management level to 0x05 (5)
HDIO_DRIVE_CMD failed: Input/output error
APM_level = not supported
Obviously, my system does not support APM what I can hardly believe...
So I tried to enable APM but my kernel configuration doesn't allow me to
enable APM support as long as I use a 64 bit kernel - APM option is only
available for 32 bit kernels.
What am I doing wrong? My hardware is *relatively* new and I don't
believe that it doesn't support those power management features.
But besides that, does anyone have further tips or tricks to protect
hard drives? E.g. try to minimize Load Cycle Count, ...
Output of hdparm -I: http://pastebin.com/RyAU6u8T
Cheers,
Ralf
[-- Attachment #2: Type: text/html, Size: 2218 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Problem with power management of SATA hard drives
2014-06-11 13:12 [gentoo-user] Problem with power management of SATA hard drives Ralf
@ 2014-06-11 13:40 ` thegeezer
2014-06-11 14:16 ` Ralf
0 siblings, 1 reply; 3+ messages in thread
From: thegeezer @ 2014-06-11 13:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]
On 06/11/2014 02:12 PM, Ralf wrote:
> Hi there,
>
> I'm using Gentoo ~amd64 on my NAS.
>
> This is my setup:
> Mainboard - Asus E35M1
> CPU - AMD E350
> HDD - 1x 500GiB WD Caviar Green WD5000AADS (root)
> HDD - 4x 3TiB WD Caviar Green WD30EZRX (Raid10)
>
> As these hard drives are desktop hard drives and not designed for 24/7
> purposes, I want to spin them down when they are not in use.
> (And in fact, they will probably be idling most of the time, so let's
> save energy)
>
> I'm able to force spin down those drive by using hdparm -y. hdparm -C
> then tells me, that they switched from active/idle to standby.
> Setting standby-time using hdparm -S also seems to work fine:
>
> hdparm -S 10 /dev/sdb
>
> /dev/sdb:
> setting standby to 10 (50 seconds)
>
> But this does not standby my drive after 50 seconds. So I tried to set
> the Power Management Level:
>
> hdparm -B 5 /dev/sdb
>
> /dev/sdb:
> setting Advanced Power Management level to 0x05 (5)
> HDIO_DRIVE_CMD failed: Input/output error
> APM_level = not supported
>
>
> Obviously, my system does not support APM what I can hardly believe...
> So I tried to enable APM but my kernel configuration doesn't allow me
> to enable APM support as long as I use a 64 bit kernel - APM option is
> only available for 32 bit kernels.
>
> What am I doing wrong? My hardware is *relatively* new and I don't
> believe that it doesn't support those power management features.
>
> But besides that, does anyone have further tips or tricks to protect
> hard drives? E.g. try to minimize Load Cycle Count, ...
>
> Output of hdparm -I: http://pastebin.com/RyAU6u8T
>
> Cheers,
> Ralf
50 seconds is very small timeout, be wary of spinup/spindown cycles
which imho are worse than always spinning.
depending on what is accessing /dev/sdb you might find that it sleeps
then immediately is woken. lsof is your friend here.
this is how I do it (my time is ten mins)
# /etc/conf.d/hdparm
# or, you can set hdparm options for all drives
all_args="-S120"
then..
# /etc/init.d/hdparm start
[-- Attachment #2: Type: text/html, Size: 3191 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Problem with power management of SATA hard drives
2014-06-11 13:40 ` thegeezer
@ 2014-06-11 14:16 ` Ralf
0 siblings, 0 replies; 3+ messages in thread
From: Ralf @ 2014-06-11 14:16 UTC (permalink / raw
To: gentoo-user
On 06/11/2014 03:40 PM, thegeezer wrote:
> 50 seconds is very small timeout, be wary of spinup/spindown cycles
> which imho are worse than always spinning.
For sure, I know, this was only for testing purposes, to see if it
works. I don't want to wait ten minutes, or even an hour to see that it
actually does not work :-)
>
> depending on what is accessing /dev/sdb you might find that it sleeps
> then immediately is woken. lsof is your friend here.
> this is how I do it (my time is ten mins)
Nope, the filesystem isn't even mounted.
>
> # /etc/conf.d/hdparm
> # or, you can set hdparm options for all drives
> all_args="-S120"
>
>
> then..
> # /etc/init.d/hdparm start
And nope, it does not spin down.
It only spins down if I force it with hdparm -y
Cheers,
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-11 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 13:12 [gentoo-user] Problem with power management of SATA hard drives Ralf
2014-06-11 13:40 ` thegeezer
2014-06-11 14:16 ` Ralf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox