* [gentoo-user] How can I power disk off?
@ 2011-10-06 19:14 Jarry
2011-10-06 19:27 ` Mark Knecht
` (4 more replies)
0 siblings, 5 replies; 17+ messages in thread
From: Jarry @ 2011-10-06 19:14 UTC (permalink / raw
To: gentoo-user
Hi,
In my server I have a few disks which must be running 24/7,
but I also have a single big hard-drive, which is used only
for a few minutes every day, just for backups. How could I
power disk off when not needed (and "on" again when needed)
in order to save a little power and prolong its life?
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
@ 2011-10-06 19:27 ` Mark Knecht
2011-10-06 19:34 ` Alex Schuster
` (3 subsequent siblings)
4 siblings, 0 replies; 17+ messages in thread
From: Mark Knecht @ 2011-10-06 19:27 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 12:14 PM, Jarry <mr.jarry@gmail.com> wrote:
> Hi,
>
> In my server I have a few disks which must be running 24/7,
> but I also have a single big hard-drive, which is used only
> for a few minutes every day, just for backups. How could I
> power disk off when not needed (and "on" again when needed)
> in order to save a little power and prolong its life?
>
> Jarry
> --
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
>
>
Look into keywords such as 'Linux disk spin down' in Google. It
doesn't completely remove power but if your disks support it then it
does significantly reduce power consumed by the drive. I have no idea
what's actually in portage to make this easy.
HTH,
Mark
http://www.cs.cmu.edu/~mukesh/hacks/spindown/t1.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
2011-10-06 19:27 ` Mark Knecht
@ 2011-10-06 19:34 ` Alex Schuster
2011-10-06 19:38 ` Paul Hartman
` (2 subsequent siblings)
4 siblings, 0 replies; 17+ messages in thread
From: Alex Schuster @ 2011-10-06 19:34 UTC (permalink / raw
To: gentoo-user
Jarry writes:
> In my server I have a few disks which must be running 24/7,
> but I also have a single big hard-drive, which is used only
> for a few minutes every day, just for backups. How could I
> power disk off when not needed (and "on" again when needed)
> in order to save a little power and prolong its life?
Use hdparm -Y to spin it down immediately, or hdparm -S<n> to set a
duration of idle time until it will spin down automatically. See the
hdparm man page for the -S parameter and more information.
You can set the -S command in /etc/conf.d/hdparm. If you want the drive
to spin down right after booting, do this in /etc/local.d/.
Wonko
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
2011-10-06 19:27 ` Mark Knecht
2011-10-06 19:34 ` Alex Schuster
@ 2011-10-06 19:38 ` Paul Hartman
2011-10-06 19:44 ` Mark Knecht
2011-10-06 19:41 ` Dale
2011-10-07 1:29 ` [gentoo-user] " Grant Edwards
4 siblings, 1 reply; 17+ messages in thread
From: Paul Hartman @ 2011-10-06 19:38 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 2:14 PM, Jarry <mr.jarry@gmail.com> wrote:
> Hi,
>
> In my server I have a few disks which must be running 24/7,
> but I also have a single big hard-drive, which is used only
> for a few minutes every day, just for backups. How could I
> power disk off when not needed (and "on" again when needed)
> in order to save a little power and prolong its life?
Use hdparm to set the power-saving level. Also look into general
power-saving tips for linux laptop users which may help reduce
unnecessary accesses to that drive. Maybe even use laptop-mode-tools.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
` (2 preceding siblings ...)
2011-10-06 19:38 ` Paul Hartman
@ 2011-10-06 19:41 ` Dale
2011-10-07 1:29 ` [gentoo-user] " Grant Edwards
4 siblings, 0 replies; 17+ messages in thread
From: Dale @ 2011-10-06 19:41 UTC (permalink / raw
To: gentoo-user
Jarry wrote:
> Hi,
>
> In my server I have a few disks which must be running 24/7,
> but I also have a single big hard-drive, which is used only
> for a few minutes every day, just for backups. How could I
> power disk off when not needed (and "on" again when needed)
> in order to save a little power and prolong its life?
>
> Jarry
Look into hdparm and the -S option. That could be what you want.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:38 ` Paul Hartman
@ 2011-10-06 19:44 ` Mark Knecht
2011-10-06 20:03 ` Paul Hartman
0 siblings, 1 reply; 17+ messages in thread
From: Mark Knecht @ 2011-10-06 19:44 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 12:38 PM, Paul Hartman
<paul.hartman+gentoo@gmail.com> wrote:
> On Thu, Oct 6, 2011 at 2:14 PM, Jarry <mr.jarry@gmail.com> wrote:
>> Hi,
>>
>> In my server I have a few disks which must be running 24/7,
>> but I also have a single big hard-drive, which is used only
>> for a few minutes every day, just for backups. How could I
>> power disk off when not needed (and "on" again when needed)
>> in order to save a little power and prolong its life?
>
> Use hdparm to set the power-saving level. Also look into general
> power-saving tips for linux laptop users which may help reduce
> unnecessary accesses to that drive. Maybe even use laptop-mode-tools.
>
Paul,
Would hdparm be advisable if the drive was part of a RAID? I suspect not.
I don't think this applies to the OP but for the sake of discussion
why not include RAID as part of the solution, if possible.
- Mark
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 19:44 ` Mark Knecht
@ 2011-10-06 20:03 ` Paul Hartman
2011-10-06 20:21 ` Mark Knecht
0 siblings, 1 reply; 17+ messages in thread
From: Paul Hartman @ 2011-10-06 20:03 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 2:44 PM, Mark Knecht <markknecht@gmail.com> wrote:
> Paul,
> Would hdparm be advisable if the drive was part of a RAID? I suspect not.
>
> I don't think this applies to the OP but for the sake of discussion
> why not include RAID as part of the solution, if possible.
I use hdparm to set power-saving on all members of my RAID5 and it
works (in my case, I'm setting them to never spin-down). I created a
file /etc/local.d/hd-power-level-fix.start containing one line:
hdparm -B 254 /dev/sd[abcdef]
which automatically sets those drives to never spin down.
In my original recommendation, I hadn't considered hdparm's "spindown
immediately" option. I was thinking of the -B command like I used
above, to adjust the "spin down after X idle time" option. If all
members of the RAID have the same idle time they'll probably all spin
up and down together under normal usage (well, depending what kind of
RAID it is, I suppose). In my case, I found the "click, whirr, click,
whirr, click, whirr, click, whirr, click, whirr" waiting for 5 disks
to spin-up when I accessed the RAID annoying, so I disabled it. (I
have not done any power-consumption measurements to see what that's
costing me...)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:03 ` Paul Hartman
@ 2011-10-06 20:21 ` Mark Knecht
2011-10-06 20:28 ` Michael Mol
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: Mark Knecht @ 2011-10-06 20:21 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
<paul.hartman+gentoo@gmail.com> wrote:
> On Thu, Oct 6, 2011 at 2:44 PM, Mark Knecht <markknecht@gmail.com> wrote:
>> Paul,
>> Would hdparm be advisable if the drive was part of a RAID? I suspect not.
>>
>> I don't think this applies to the OP but for the sake of discussion
>> why not include RAID as part of the solution, if possible.
>
> I use hdparm to set power-saving on all members of my RAID5 and it
> works (in my case, I'm setting them to never spin-down). I created a
> file /etc/local.d/hd-power-level-fix.start containing one line:
>
> hdparm -B 254 /dev/sd[abcdef]
>
> which automatically sets those drives to never spin down.
>
> In my original recommendation, I hadn't considered hdparm's "spindown
> immediately" option. I was thinking of the -B command like I used
> above, to adjust the "spin down after X idle time" option. If all
> members of the RAID have the same idle time they'll probably all spin
> up and down together under normal usage (well, depending what kind of
> RAID it is, I suppose). In my case, I found the "click, whirr, click,
> whirr, click, whirr, click, whirr, click, whirr" waiting for 5 disks
> to spin-up when I accessed the RAID annoying, so I disabled it. (I
> have not done any power-consumption measurements to see what that's
> costing me...)
>
My worry was that if the mdraid daemon saw one drive gone - either
when starting to spin down or when one spins up slowly - and if mdraid
didn't understand that all this stuff was taking place intentionally
then it might mark that drive as having failed.
I can see the utility of spinning down a RAID in something like a home
video server where I keep movies. The machine could be on, ready to
serve a movie, but the drives aren't drawing much power.
I suspect that there's a pretty substantial power savings on a big
RAID if done right, but I haven't done any measurements either.
Cheers,
Mark
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:21 ` Mark Knecht
@ 2011-10-06 20:28 ` Michael Mol
2011-10-07 1:04 ` Mark Knecht
2011-10-06 20:31 ` David W Noon
2011-10-06 20:49 ` Paul Hartman
2 siblings, 1 reply; 17+ messages in thread
From: Michael Mol @ 2011-10-06 20:28 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 4:21 PM, Mark Knecht <markknecht@gmail.com> wrote:
> On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
> My worry was that if the mdraid daemon saw one drive gone - either
> when starting to spin down or when one spins up slowly - and if mdraid
> didn't understand that all this stuff was taking place intentionally
> then it might mark that drive as having failed.
Does mdraid even have an awareness of timeouts, or does it leave that
to lower drivers? I think the latter condition is more likely.
I suspect, though, that if your disk fails to spin up reasonably
quickly, it's already failed.
--
:wq
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:21 ` Mark Knecht
2011-10-06 20:28 ` Michael Mol
@ 2011-10-06 20:31 ` David W Noon
2011-10-06 20:56 ` Paul Hartman
2011-10-06 20:49 ` Paul Hartman
2 siblings, 1 reply; 17+ messages in thread
From: David W Noon @ 2011-10-06 20:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
On Thu, 6 Oct 2011 13:21:10 -0700, Mark Knecht wrote about Re:
[gentoo-user] How can I power disk off?:
> My worry was that if the mdraid daemon saw one drive gone - either
> when starting to spin down or when one spins up slowly - and if mdraid
> didn't understand that all this stuff was taking place intentionally
> then it might mark that drive as having failed.
Surely you would umount the filesystem before spinning down the disk.
I know I would. Perhaps I'm just old fashioned.
--
Regards,
Dave [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:21 ` Mark Knecht
2011-10-06 20:28 ` Michael Mol
2011-10-06 20:31 ` David W Noon
@ 2011-10-06 20:49 ` Paul Hartman
2 siblings, 0 replies; 17+ messages in thread
From: Paul Hartman @ 2011-10-06 20:49 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 3:21 PM, Mark Knecht <markknecht@gmail.com> wrote:
> On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
> <paul.hartman+gentoo@gmail.com> wrote:
>> On Thu, Oct 6, 2011 at 2:44 PM, Mark Knecht <markknecht@gmail.com> wrote:
>>> Paul,
>>> Would hdparm be advisable if the drive was part of a RAID? I suspect not.
>>>
>>> I don't think this applies to the OP but for the sake of discussion
>>> why not include RAID as part of the solution, if possible.
>>
>> I use hdparm to set power-saving on all members of my RAID5 and it
>> works (in my case, I'm setting them to never spin-down). I created a
>> file /etc/local.d/hd-power-level-fix.start containing one line:
>>
>> hdparm -B 254 /dev/sd[abcdef]
>>
>> which automatically sets those drives to never spin down.
>>
>> In my original recommendation, I hadn't considered hdparm's "spindown
>> immediately" option. I was thinking of the -B command like I used
>> above, to adjust the "spin down after X idle time" option. If all
>> members of the RAID have the same idle time they'll probably all spin
>> up and down together under normal usage (well, depending what kind of
>> RAID it is, I suppose). In my case, I found the "click, whirr, click,
>> whirr, click, whirr, click, whirr, click, whirr" waiting for 5 disks
>> to spin-up when I accessed the RAID annoying, so I disabled it. (I
>> have not done any power-consumption measurements to see what that's
>> costing me...)
>>
>
> My worry was that if the mdraid daemon saw one drive gone - either
> when starting to spin down or when one spins up slowly - and if mdraid
> didn't understand that all this stuff was taking place intentionally
> then it might mark that drive as having failed.
>
> I can see the utility of spinning down a RAID in something like a home
> video server where I keep movies. The machine could be on, ready to
> serve a movie, but the drives aren't drawing much power.
>
> I suspect that there's a pretty substantial power savings on a big
> RAID if done right, but I haven't done any measurements either.
The drive's not gone, it's not offline, it's just not spinning. I
don't think mdraid would even know that.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:31 ` David W Noon
@ 2011-10-06 20:56 ` Paul Hartman
0 siblings, 0 replies; 17+ messages in thread
From: Paul Hartman @ 2011-10-06 20:56 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 3:31 PM, David W Noon <dwnoon@ntlworld.com> wrote:
> On Thu, 6 Oct 2011 13:21:10 -0700, Mark Knecht wrote about Re:
> [gentoo-user] How can I power disk off?:
>
>> My worry was that if the mdraid daemon saw one drive gone - either
>> when starting to spin down or when one spins up slowly - and if mdraid
>> didn't understand that all this stuff was taking place intentionally
>> then it might mark that drive as having failed.
>
> Surely you would umount the filesystem before spinning down the disk.
> I know I would. Perhaps I'm just old fashioned.
No need for that, I think it would make things inconvenient...
especially if it's your root filesystem! Don't confuse spindown with
parking of the heads. Spindown is just normal power-saving and happens
all the time if you own a laptop or any modern consumer-grade hard
drive... some of them don't even allow you to disable it anymore!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-06 20:28 ` Michael Mol
@ 2011-10-07 1:04 ` Mark Knecht
2011-10-07 1:14 ` Michael Mol
0 siblings, 1 reply; 17+ messages in thread
From: Mark Knecht @ 2011-10-07 1:04 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 1:28 PM, Michael Mol <mikemol@gmail.com> wrote:
> On Thu, Oct 6, 2011 at 4:21 PM, Mark Knecht <markknecht@gmail.com> wrote:
>> On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
>> My worry was that if the mdraid daemon saw one drive gone - either
>> when starting to spin down or when one spins up slowly - and if mdraid
>> didn't understand that all this stuff was taking place intentionally
>> then it might mark that drive as having failed.
>
> Does mdraid even have an awareness of timeouts, or does it leave that
> to lower drivers? I think the latter condition is more likely.
>
> I suspect, though, that if your disk fails to spin up reasonably
> quickly, it's already failed.
>
In general I agree. However drives that are designed for RAID have a
feature known as Time Limited Error Recovery (TLER) which supposedly
guarantees that they'll get the drive back to responding fast enough
to not have it marked as failed in the RAID array:
http://en.wikipedia.org/wiki/Time-Limited_Error_Recovery
When I built my first RAID I bought some WD 1TB green drives, built
the RAID and immediately had drives failing because they didn't have
this sort of feature. I replaced them with RAID Edition drives that
have the TLER feature and have never had a problem since. (Well, I
actually bought all new drives and kept the six 1TB drives which I'd
mostly used up for other things like external eSATA backup drives,
etc...)
Anyway, I'm possibly over sensitized to this sort of timing problem
specifically in a RAID which is why I asked the question of Paul in
the first place.
Cheers,
Mark
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-07 1:04 ` Mark Knecht
@ 2011-10-07 1:14 ` Michael Mol
2011-10-07 13:19 ` Mark Knecht
0 siblings, 1 reply; 17+ messages in thread
From: Michael Mol @ 2011-10-07 1:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2015 bytes --]
On Oct 6, 2011 9:06 PM, "Mark Knecht" <markknecht@gmail.com> wrote:
>
> On Thu, Oct 6, 2011 at 1:28 PM, Michael Mol <mikemol@gmail.com> wrote:
> > On Thu, Oct 6, 2011 at 4:21 PM, Mark Knecht <markknecht@gmail.com>
wrote:
> >> On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
> >> My worry was that if the mdraid daemon saw one drive gone - either
> >> when starting to spin down or when one spins up slowly - and if mdraid
> >> didn't understand that all this stuff was taking place intentionally
> >> then it might mark that drive as having failed.
> >
> > Does mdraid even have an awareness of timeouts, or does it leave that
> > to lower drivers? I think the latter condition is more likely.
> >
> > I suspect, though, that if your disk fails to spin up reasonably
> > quickly, it's already failed.
> >
>
> In general I agree. However drives that are designed for RAID have a
> feature known as Time Limited Error Recovery (TLER) which supposedly
> guarantees that they'll get the drive back to responding fast enough
> to not have it marked as failed in the RAID array:
>
> http://en.wikipedia.org/wiki/Time-Limited_Error_Recovery
>
> When I built my first RAID I bought some WD 1TB green drives, built
> the RAID and immediately had drives failing because they didn't have
> this sort of feature. I replaced them with RAID Edition drives that
> have the TLER feature and have never had a problem since. (Well, I
> actually bought all new drives and kept the six 1TB drives which I'd
> mostly used up for other things like external eSATA backup drives,
> etc...)
>
> Anyway, I'm possibly over sensitized to this sort of timing problem
> specifically in a RAID which is why I asked the question of Paul in
> the first place.
My first RAID was with three Seagate economy 1.5TB drives in RAID 5, shortly
followed by three 1TB WD black drives in RAID 0. I never had the problems
you describe, though I rebuit the RAID5 several times as I was figuring
things out. (the 3TB RAID0 was for some heavy duty scratch space.)
[-- Attachment #2: Type: text/html, Size: 2610 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [gentoo-user] Re: How can I power disk off?
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
` (3 preceding siblings ...)
2011-10-06 19:41 ` Dale
@ 2011-10-07 1:29 ` Grant Edwards
2011-10-07 2:51 ` Paul Hartman
4 siblings, 1 reply; 17+ messages in thread
From: Grant Edwards @ 2011-10-07 1:29 UTC (permalink / raw
To: gentoo-user
On 2011-10-06, Jarry <mr.jarry@gmail.com> wrote:
> Hi,
>
> In my server I have a few disks which must be running 24/7,
> but I also have a single big hard-drive, which is used only
> for a few minutes every day, just for backups. How could I
> power disk off when not needed (and "on" again when needed)
> in order to save a little power and prolong its life?
That prompts one to ask the question: Does spinning a drive up/down
every day lengthen or shorten it's life compared to having it on 24/7
(assuming the same number of seeks in both cases).
--
Grant
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] Re: How can I power disk off?
2011-10-07 1:29 ` [gentoo-user] " Grant Edwards
@ 2011-10-07 2:51 ` Paul Hartman
0 siblings, 0 replies; 17+ messages in thread
From: Paul Hartman @ 2011-10-07 2:51 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 8:29 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2011-10-06, Jarry <mr.jarry@gmail.com> wrote:
>> Hi,
>>
>> In my server I have a few disks which must be running 24/7,
>> but I also have a single big hard-drive, which is used only
>> for a few minutes every day, just for backups. How could I
>> power disk off when not needed (and "on" again when needed)
>> in order to save a little power and prolong its life?
>
> That prompts one to ask the question: Does spinning a drive up/down
> every day lengthen or shorten it's life compared to having it on 24/7
> (assuming the same number of seeks in both cases).
I think it is generally believed that by NOT spinning down the drive,
you are going to shorten its life-span. Any HDD made in the past few
years are designed with spin-up/spin-down when idle in mind.
Constantly spinning will probably wear it out faster than regularly
spinning up and down. It should be able to handle thousands of
spin-up/spin-down cycles with ease. I think SMART will tell you how
many times it has happened.
In my case I disabled it because I found it to be annoying and
inappropriate for my RAID, but I realize I'm wasting power and
probably jeopardizing the long-term health of my drives by not
allowing them to spin-down.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] How can I power disk off?
2011-10-07 1:14 ` Michael Mol
@ 2011-10-07 13:19 ` Mark Knecht
0 siblings, 0 replies; 17+ messages in thread
From: Mark Knecht @ 2011-10-07 13:19 UTC (permalink / raw
To: gentoo-user
On Thu, Oct 6, 2011 at 6:14 PM, Michael Mol <mikemol@gmail.com> wrote:
>
> On Oct 6, 2011 9:06 PM, "Mark Knecht" <markknecht@gmail.com> wrote:
>>
>> On Thu, Oct 6, 2011 at 1:28 PM, Michael Mol <mikemol@gmail.com> wrote:
>> > On Thu, Oct 6, 2011 at 4:21 PM, Mark Knecht <markknecht@gmail.com>
>> > wrote:
>> >> On Thu, Oct 6, 2011 at 1:03 PM, Paul Hartman
>> >> My worry was that if the mdraid daemon saw one drive gone - either
>> >> when starting to spin down or when one spins up slowly - and if mdraid
>> >> didn't understand that all this stuff was taking place intentionally
>> >> then it might mark that drive as having failed.
>> >
>> > Does mdraid even have an awareness of timeouts, or does it leave that
>> > to lower drivers? I think the latter condition is more likely.
>> >
>> > I suspect, though, that if your disk fails to spin up reasonably
>> > quickly, it's already failed.
>> >
>>
>> In general I agree. However drives that are designed for RAID have a
>> feature known as Time Limited Error Recovery (TLER) which supposedly
>> guarantees that they'll get the drive back to responding fast enough
>> to not have it marked as failed in the RAID array:
>>
>> http://en.wikipedia.org/wiki/Time-Limited_Error_Recovery
>>
>> When I built my first RAID I bought some WD 1TB green drives, built
>> the RAID and immediately had drives failing because they didn't have
>> this sort of feature. I replaced them with RAID Edition drives that
>> have the TLER feature and have never had a problem since. (Well, I
>> actually bought all new drives and kept the six 1TB drives which I'd
>> mostly used up for other things like external eSATA backup drives,
>> etc...)
>>
>> Anyway, I'm possibly over sensitized to this sort of timing problem
>> specifically in a RAID which is why I asked the question of Paul in
>> the first place.
>
> My first RAID was with three Seagate economy 1.5TB drives in RAID 5, shortly
> followed by three 1TB WD black drives in RAID 0. I never had the problems
> you describe, though I rebuit the RAID5 several times as I was figuring
> things out. (the 3TB RAID0 was for some heavy duty scratch space.)
Yeah, I understand. This sort of problem, I found out after joining
the linux-raid list, is _very_ dependent on the _exact_ model of
drives chosen to build the RAID. I've had exactly ZERO problems with
any the 2 drive RAID0's, 3 & 5 drive RAID1's and 5 drive RAID6's that
I built using WD RAID Edition drives. They've run for 18 months and
nothing has ever gone off line or needed any attention of any type.
They just work.
On the other hand all the RAID0 & RAID1's that I build using the WD
1TB _Green_ drives simply wouldn't work reliably. They'd go off line
every day or two, and I'm talking in the very same computer. No other
differences hardware wise. I've heard of people using the same drive
model (but possibly different firmware) having similar problems until
they got a WD app to twiddle with the firmware, and others that never
got the drives working well at all. The drives are perfectly fine
non-RAID.
I appreciate the inputs. It's an interesting subject and hearing other
people's experiences helps put some shape around the space.
Cheers,
Mark
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2011-10-07 13:20 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 19:14 [gentoo-user] How can I power disk off? Jarry
2011-10-06 19:27 ` Mark Knecht
2011-10-06 19:34 ` Alex Schuster
2011-10-06 19:38 ` Paul Hartman
2011-10-06 19:44 ` Mark Knecht
2011-10-06 20:03 ` Paul Hartman
2011-10-06 20:21 ` Mark Knecht
2011-10-06 20:28 ` Michael Mol
2011-10-07 1:04 ` Mark Knecht
2011-10-07 1:14 ` Michael Mol
2011-10-07 13:19 ` Mark Knecht
2011-10-06 20:31 ` David W Noon
2011-10-06 20:56 ` Paul Hartman
2011-10-06 20:49 ` Paul Hartman
2011-10-06 19:41 ` Dale
2011-10-07 1:29 ` [gentoo-user] " Grant Edwards
2011-10-07 2:51 ` Paul Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox