Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 64FB89F9398 for ; Tue, 5 Dec 2006 10:48:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 56928-04 for ; Tue, 5 Dec 2006 10:48:41 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from 66-226-76-106.dedicated.abac.net (66-226-76-106.dedicated.abac.net [66.226.76.106]) by postgresql.org (Postfix) with ESMTP id 638159FB28B for ; Tue, 5 Dec 2006 10:48:46 -0400 (AST) Received: (qmail 10058 invoked by uid 2020); 5 Dec 2006 07:51:45 -0800 Received: from wsip-70-167-125-69.sd.sd.cox.net (HELO ?192.168.0.3?) (70.167.125.69) by 66-226-76-106.dedicated.abac.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 5 Dec 2006 07:51:45 -0800 Message-ID: <4575864A.8060005@modgraph-usa.com> Date: Tue, 05 Dec 2006 06:46:34 -0800 From: "Craig A. James" User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Bad iostat numbers References: <33c6269f0612032317t9f0bc77n3ff791a5cd88fc80@mail.gmail.com> <33c6269f0612042221x5820e98bl96f8d0dc4a87bd3f@mail.gmail.com> <20061205121507.GZ1622@mathom.us> <33c6269f0612050457s4a8eb0eas662d7a50fb5dfa89@mail.gmail.com> In-Reply-To: <33c6269f0612050457s4a8eb0eas662d7a50fb5dfa89@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.894 tagged_above=0 required=5 tests=AWL, BAYES_50, HELO_DYNAMIC_IPADDR2 X-Spam-Level: ** X-Archive-Number: 200612/75 X-Sequence-Number: 22131 Alex Turner wrote: > The problem I see with software raid is the issue of a battery backed > unit: If the computer loses power, then the 'cache' which is held in > system memory, goes away, and fubars your RAID. I'm not sure I see the difference. If data are cached, they're not written whether it is software or hardware RAID. I guess if you're writing RAID 1, the N disks could be out of sync, but the system can synchronize them once the array is restored, so that's no different than a single disk or a hardware RAID. If you're writing RAID 5, then the blocks are inherently error detecting/correcting, so you're still OK if a partial write occurs, right? I'm not familiar with the inner details of software RAID, but the only circumstance I can see where things would get corrupted is if the RAID driver writes a LOT of blocks to one disk of the array before synchronizing the others, but my guess (and it's just a guess) is that the writes to the N disks are tightly coupled. If I'm wrong about this, I'd like to know, because I'm using software RAID 1 and 1+0, and I'm pretty happy with it. Craig