All of lore.kernel.org
 help / color / mirror / Atom feed
From: Piotr Legiecki <piotrlg@pum.edu.pl>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID10 failed with two disks
Date: Tue, 23 Aug 2011 10:35:20 +0200	[thread overview]
Message-ID: <4E536648.3060803@pum.edu.pl> (raw)
In-Reply-To: <20110823095634.398f2118@notabene.brown>


>> Hura, hura, hura! ;-) Well, wonder why it didn't work for me ;-(
> 
> Looks good so far, but is you data safe?

I think so.
fsck has found some errors and corrected them.
resync done
cat /sys/block/md4/md/mismatch_cnt
0
Looks good.


> This is correct assuming the default layout.
> If you asked for "--layout=n3" you would get a 3-way mirror over a1,b1,c1 and
> d1,e1,f1 and those would be raid0-ed.

And the question which one is the most efficient  is beyond the scope of 
our subject I'm of course? Or maybe there is some general rule of thumb 
for this?

The more disks the faster array should be *but* the more data to mirror 
at once when writing...

Anyway my tests proved that RAID1 on two disks is *much* slower than 
RAID10 on 4 disks. RAID10 SATA can easily compete with HP SmartAray 
P410i/BBC SAS RAIDs (but in RAID1 only ;-)). Well, at least during 
iozone benchmarks.

> If you had 5 devices then you get data copied on
>   sda1+sdb1
>   sdc1+sdd1
>   sde1+sda1
>   sdb1+sdc1
>   sdde+sde1
> 
> so is *any* pair of adjacent devices fail, you lose data.

So from safety point of view there is need for more spare disks or go 
for RAID6.

> Hard to tell without seeing kernel logs.  Almost certainly a hardware issue
> of some sort.  Maybe a loose or bumped cable. Maybe a power supply spike.
> Maybe a stray cosmic ray....

http://pastebin.com/iapZWm0S

Those 'failed' disks are connected to motherboard SATA ports. I've got 
also Adaptec 1430 adapter with 2 free ports, maybe I should move those 
disks there.

Thank you for all the help and time put into answering my questions.

Piotr

      reply	other threads:[~2011-08-23  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22 10:39 RAID10 failed with two disks Piotr Legiecki
2011-08-22 11:09 ` NeilBrown
2011-08-22 11:42   ` Piotr Legiecki
2011-08-22 12:01     ` NeilBrown
2011-08-22 12:52       ` Piotr Legiecki
2011-08-22 23:56         ` NeilBrown
2011-08-23  8:35           ` Piotr Legiecki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E536648.3060803@pum.edu.pl \
    --to=piotrlg@pum.edu.pl \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.