Gentoo Archives: gentoo-user

From: thegeezer <thegeezer@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with power management of SATA hard drives
Date: Wed, 11 Jun 2014 13:41:04
Message-Id: 53985C69.1040303@thegeezer.net
In Reply to: [gentoo-user] Problem with power management of SATA hard drives by Ralf
1 On 06/11/2014 02:12 PM, Ralf wrote:
2 > Hi there,
3 >
4 > I'm using Gentoo ~amd64 on my NAS.
5 >
6 > This is my setup:
7 > Mainboard - Asus E35M1
8 > CPU - AMD E350
9 > HDD - 1x 500GiB WD Caviar Green WD5000AADS (root)
10 > HDD - 4x 3TiB WD Caviar Green WD30EZRX (Raid10)
11 >
12 > As these hard drives are desktop hard drives and not designed for 24/7
13 > purposes, I want to spin them down when they are not in use.
14 > (And in fact, they will probably be idling most of the time, so let's
15 > save energy)
16 >
17 > I'm able to force spin down those drive by using hdparm -y. hdparm -C
18 > then tells me, that they switched from active/idle to standby.
19 > Setting standby-time using hdparm -S also seems to work fine:
20 >
21 > hdparm -S 10 /dev/sdb
22 >
23 > /dev/sdb:
24 > setting standby to 10 (50 seconds)
25 >
26 > But this does not standby my drive after 50 seconds. So I tried to set
27 > the Power Management Level:
28 >
29 > hdparm -B 5 /dev/sdb
30 >
31 > /dev/sdb:
32 > setting Advanced Power Management level to 0x05 (5)
33 > HDIO_DRIVE_CMD failed: Input/output error
34 > APM_level = not supported
35 >
36 >
37 > Obviously, my system does not support APM what I can hardly believe...
38 > So I tried to enable APM but my kernel configuration doesn't allow me
39 > to enable APM support as long as I use a 64 bit kernel - APM option is
40 > only available for 32 bit kernels.
41 >
42 > What am I doing wrong? My hardware is *relatively* new and I don't
43 > believe that it doesn't support those power management features.
44 >
45 > But besides that, does anyone have further tips or tricks to protect
46 > hard drives? E.g. try to minimize Load Cycle Count, ...
47 >
48 > Output of hdparm -I: http://pastebin.com/RyAU6u8T
49 >
50 > Cheers,
51 > Ralf
52
53 50 seconds is very small timeout, be wary of spinup/spindown cycles
54 which imho are worse than always spinning.
55
56 depending on what is accessing /dev/sdb you might find that it sleeps
57 then immediately is woken. lsof is your friend here.
58 this is how I do it (my time is ten mins)
59
60 # /etc/conf.d/hdparm
61 # or, you can set hdparm options for all drives
62 all_args="-S120"
63
64
65 then..
66 # /etc/init.d/hdparm start

Replies

Subject Author
Re: [gentoo-user] Problem with power management of SATA hard drives Ralf <ralf+gentoo@×××××××××××××××××××.de>