linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* scrub was Re: RAID5 Problem - $1000 reward for help
  2006-09-17 11:36   ` Tuomas Leikola
@ 2006-09-17 12:46     ` Dexter Filmore
  2006-09-17 13:21       ` Tuomas Leikola
  2006-09-21 18:45       ` Rob Bray
  0 siblings, 2 replies; 4+ messages in thread
From: Dexter Filmore @ 2006-09-17 12:46 UTC (permalink / raw)
  To: linux-raid

Am Sonntag, 17. September 2006 13:36 schrieben Sie:
> On 9/17/06, Ask Bjørn Hansen <ask@develooper.com> wrote:
> > > It's recommended to use a script to scrub the raid device regularly,
> > > to detect sleeping bad blocks early.
> >
> > What's the best way to do that?  dd the full md device to /dev/null?
>
> echo check >/sys/block/md?/md/sync_action
>
> Distros may have cron scripts to do this "right".
>
> And you need a fairly recent kernel.

Does this test stress the discs a lot, like a resync? 
How long does it take? 
Can I use it on a mounted array?

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scrub was Re: RAID5 Problem - $1000 reward for help
  2006-09-17 12:46     ` scrub was " Dexter Filmore
@ 2006-09-17 13:21       ` Tuomas Leikola
  2006-09-21 18:45       ` Rob Bray
  1 sibling, 0 replies; 4+ messages in thread
From: Tuomas Leikola @ 2006-09-17 13:21 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

On 9/17/06, Dexter Filmore <Dexter.Filmore@gmx.de> wrote:
> > > > It's recommended to use a script to scrub the raid device regularly,
> > > > to detect sleeping bad blocks early.
> > >
> > > What's the best way to do that?  dd the full md device to /dev/null?
> >
> > echo check >/sys/block/md?/md/sync_action
> >
> > Distros may have cron scripts to do this "right".
> >
> > And you need a fairly recent kernel.
>
> Does this test stress the discs a lot, like a resync?
> How long does it take?
> Can I use it on a mounted array?
>

yup.
long. think resync.
yup.

It's practically "read everything, verify checksum, report bad blocks
or inconsistencies".

echo repair>sync_action causes md to fix redundancy blocks if they're
out of sync (but at that point you already have another problem like
flakey hardware or so)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scrub was Re: RAID5 Problem - $1000 reward for help
  2006-09-17 12:46     ` scrub was " Dexter Filmore
  2006-09-17 13:21       ` Tuomas Leikola
@ 2006-09-21 18:45       ` Rob Bray
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Bray @ 2006-09-21 18:45 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

> Am Sonntag, 17. September 2006 13:36 schrieben Sie:
>> On 9/17/06, Ask Bjørn Hansen <ask@develooper.com> wrote:
>> > > It's recommended to use a script to scrub the raid device regularly,
>> > > to detect sleeping bad blocks early.
>> >
>> > What's the best way to do that?  dd the full md device to /dev/null?
>>
>> echo check >/sys/block/md?/md/sync_action
>>
>> Distros may have cron scripts to do this "right".
>>
>> And you need a fairly recent kernel.
>
> Does this test stress the discs a lot, like a resync?
> How long does it take?
> Can I use it on a mounted array?
>

I'd like to add to this question -- does 'check' action on a RAID5 array
verify the accuracy of parity data, blindly read back all data, or only
verify readability of data blocks?

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scrub was Re: RAID5 Problem - $1000 reward for help
@ 2006-09-21 20:20 linux
  0 siblings, 0 replies; 4+ messages in thread
From: linux @ 2006-09-21 20:20 UTC (permalink / raw)
  To: linux-raid

>> Does this test stress the discs a lot, like a resync?
>> How long does it take?
>> Can I use it on a mounted array?

> I'd like to add to this question -- does 'check' action on a RAID5 array
> verify the accuracy of parity data, blindly read back all data, or only
> verify readability of data blocks?

The former: it reads all data and verifies the parity.

It's a bit hard to see buried in drivers/md/raid5.c:handle_stripe5(),
which is more than a little intricate.  If you search for
MD_RECOVERY_CHECK in there, you can see where it rewrites the newly
added disk if syncing or just notes the problem if checking.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-21 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-21 20:20 scrub was Re: RAID5 Problem - $1000 reward for help linux
  -- strict thread matches above, loose matches on Subject: below --
2006-09-15  9:08 Reza Naima
2006-09-17 10:55 ` Ask Bjørn Hansen
2006-09-17 11:36   ` Tuomas Leikola
2006-09-17 12:46     ` scrub was " Dexter Filmore
2006-09-17 13:21       ` Tuomas Leikola
2006-09-21 18:45       ` Rob Bray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).