Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 5ED16475A84 for ; Sat, 25 May 2002 15:46:32 -0400 (EDT) Received: from mail.digicamp.com (168-103-211-140.dslgw1.snva.qwest.net [168.103.211.140]) by postgresql.org (Postfix) with ESMTP id 56F1D475862 for ; Sat, 25 May 2002 15:46:31 -0400 (EDT) Received: from phred (168-103-211-137.dslgw1.snva.qwest.net [168.103.211.137]) by mail.digicamp.com (8.11.4/8.11.4) with SMTP id g4PJdH020089; Sat, 25 May 2002 12:39:17 -0700 From: "Fred Moyer" To: "Peter Eisentraut" , "Tom Lane" Cc: "pgsql-admin" Subject: Re: databases and RAID ... Date: Sat, 25 May 2002 12:45:12 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal X-Archive-Number: 200205/212 X-Sequence-Number: 4387 JBOD : just a bunch of disks, not raid in my opinion Raid 0 : striping over disks, no redundancy, hence the Redundancy in Redundant Arrays of Independent Disks is zero. Raid 1 : Mirroring, full redundancy, Redundancy 1(00%) Raid 4: see thread Raid 5: see thread,Striping across multiple disks with parity. You have one spare drive, 3 drives minimum, recommend more cause raid-5 is SLOW Raid 10: A mirrored pair of striped arrays (1+0). from working with various raid controllers (ide and scsi) here is my feedback (please rebuke me if needed as I'm sure others on this list have more experience). Performance (fastest->slowest) hardware raid -> software raid raid 0 -> 10 -> 1 -> 5 Redundancy (most -> least) hardware raid -> software raid 10, 1 -> 5 -> 0 some people say raid 5 is the most redundant but if you have over seven disks your change of two drives failing becomes a statistical reality, hence raid 5 is best suited for arrays of 5-8 drives. RAID 10 and 1 are both mirrored but can be expensive. raid 0 is the fastest but don't count put mission critical data on it - add another n disks and make it raid 10. IDE vs SCSI: I have run both controllers and have found both perform well. The stripe size for raid 10 and 0 is important - make it as large as possible for databases (256k on scsi and 1 MB on ide) since you want the disk heads to read as much as possible before seeking again. for databases use scsi if you can - use ide for streaming audio/video. databases performance relies on being fast at random reads/writes and that's where scsi wins. > Is there any rhyme or reason to the various "RAID n" designations? > Or were they just invented on the spur of the moment? The paper that introduced the term RAID used a numerical classification for the various schemes. (So I guess the answer is yes.) The traditional levels are: 0 Nonredundant 1 Mirrored 2 Memory-style ECC 3 Bit-interleaved parity 4 Block-interleaved parity 5 Block-interleaved distributed parity [Hennessy & Patterson] There are also other levels. One poster talked about RAID 10 which appears to be a mirrored RAID 5. -- Peter Eisentraut peter_e@gmx.net ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org