pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: david@lang.hm
To: Mark Mielke <mark@mark.mielke.cc>
Cc: Florian Weimer <fw@deneb.enyo.de>
Cc: Fernando Hevia <fhevia@ip-tel.com.ar>
Cc: 'pgsql-performance' <pgsql-performance@postgresql.org>
Subject: Re: With 4 disks should I go for RAID 5 or RAID 10
Date: Wed, 26 Dec 2007 15:36:38 -0800 (PST)
Message-ID: <Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm> (raw)
In-Reply-To: <4772CE34.2040608@mark.mielke.cc>
References: <0f8201c847f6$08e15090$8f01010a@iptel.com.ar>
	<Pine.LNX.4.64.0712261317320.11785@asgard.lang.hm>
	<87zlvxnpkl.fsf@mid.deneb.enyo.de>
	<4772CA58.5050406@mark.mielke.cc>
	<Pine.LNX.4.64.0712261504310.11785@asgard.lang.hm>
	<4772CE34.2040608@mark.mielke.cc>

On Wed, 26 Dec 2007, Mark Mielke wrote:

> david@lang.hm wrote:
>> On Wed, 26 Dec 2007, Mark Mielke wrote:
>> 
>>> Florian Weimer wrote:
>>>>> seek/read/calculate/seek/write since the drive moves on after the
>>>>> read), when you read you must read _all_ drives in the set to check
>>>>> the data integrity.
>>>> I don't know of any RAID implementation that performs consistency
>>>> checking on each read operation. 8-(
>>> Dave had too much egg nog... :-)
>>> Yep - checking consistency on read would eliminate the performance 
>>> benefits of RAID under any redundant configuration.
>> except for raid0, raid is primarily a reliability benifit, any performance 
>> benifit is incidental, not the primary purpose.
>> that said, I have heard of raid1 setups where it only reads off of one of 
>> the drives, but I have not heard of higher raid levels doing so.
> What do you mean "heard of"? Which raid system do you know of that reads all 
> drives for RAID 1?
>
> Linux dmraid reads off ONLY the first. Linux mdadm reads off the "best" one. 
> Neither read from both. Why should it need to read from both? What will it do 
> if the consistency check fails? It's not like it can tell which disk is the 
> right one. It only knows that the whole array is inconsistent. Until it gets 
> an actual hardware failure (read error, write error), it doesn't know which 
> disk is wrong.

yes, the two linux software implementations only read from one disk, but I 
have seen hardware implementations where it reads from both drives, and if 
they disagree it returns a read error rather then possibly invalid data 
(it's up to the admin to figure out which drive is bad at that point).

no, I don't remember which card this was. I've been playing around with 
things in this space for quite a while.

David Lang



view thread (37+ messages)  latest in thread

Message-ID: <Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm>
Permalink:  ../Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm/
Also on:    postgresql.org/message-id/Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: david@lang.hm, mark@mark.mielke.cc, fw@deneb.enyo.de, fhevia@ip-tel.com.ar
  Subject: Re: With 4 disks should I go for RAID 5 or RAID 10
  In-Reply-To: <Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm>
  References: <0f8201c847f6$08e15090$8f01010a@iptel.com.ar> <Pine.LNX.4.64.0712261317320.11785@asgard.lang.hm> <87zlvxnpkl.fsf@mid.deneb.enyo.de> <4772CA58.5050406@mark.mielke.cc> <Pine.LNX.4.64.0712261504310.11785@asgard.lang.hm> <4772CE34.2040608@mark.mielke.cc> <Pine.LNX.4.64.0712261534530.11785@asgard.lang.hm>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox