linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* beginner error detection
@ 2007-02-23 12:11 Tomka Gergely
  2007-02-26 14:24 ` Mario 'BitKoenig' Holbe
  0 siblings, 1 reply; 2+ messages in thread
From: Tomka Gergely @ 2007-02-23 12:11 UTC (permalink / raw)
  To: linux-raid

Hi!

I have a simple sw raid1, over two sata disks. One of the disks started to 
complain (s.m.a.r.t. errors). I think in the near future i witness a disk 
failure. But i don't know how this thing is happening with raid1, so i 
have some questions. If these questions answered somewhere (faq, manpage, 
url), then feel free to redirect me to this source(s). 

Can the raid1 detect and handle disk errors? If one block goes wrong, how 
can the raid1 driver choose which was the correct, original value?

Sata systems can die gracefully? When in a good scsi system happens a 
total disk failure, then the scsi makes the disk fail, mdadm removes 
the disk from the array, and in the morning i see a nice e-mail. When a 
PATA disk dies, the system goes down, so i need to call a cab. I dont know 
how the sata behaves in this situation.

The kernel 2.6.20 (with skas patch), the controller :
nVidia Corporation CK804 Serial ATA Controller (rev f3)

Thanks.

-- 
Tomka Gergely, gergely@tomka.hu

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

* Re: beginner error detection
  2007-02-23 12:11 beginner error detection Tomka Gergely
@ 2007-02-26 14:24 ` Mario 'BitKoenig' Holbe
  0 siblings, 0 replies; 2+ messages in thread
From: Mario 'BitKoenig' Holbe @ 2007-02-26 14:24 UTC (permalink / raw)
  To: linux-raid

Tomka Gergely <gergely@tomka.hu> wrote:
> Can the raid1 detect and handle disk errors?

This is what it is designed for :)

> If one block goes wrong, how 
> can the raid1 driver choose which was the correct, original value?

RAID1 depends on the disk to state errors. RAID1 does not ensure data
integrity. RAID1 cannot correctly handle a disk returning wrong data
(i.e. other data than written before). Only RAID2 is designed for such.
However, since todays disks have their own data integrity detection
(i.e. ECC), they should normally not return wrong data but read-errors
instead.

And assuming a drive returns either correct data or a read-error, it is
simple to choose which was the correct, original value :)


regards
   Mario
-- 
> As Luke Leighton said once on samba-ntdom, "now, what was that about
> rebooting?   that was so long ago, i had to look it up with man -k."


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

end of thread, other threads:[~2007-02-26 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 12:11 beginner error detection Tomka Gergely
2007-02-26 14:24 ` Mario 'BitKoenig' Holbe

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).