Re: Raid Controller Write Cache setting for WAL and Data - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Raid Controller Write Cache setting for WAL and Data
Date
Msg-id 20110216163321.GV96213@shinkuro.com
Whole thread Raw
In response to Raid Controller Write Cache setting for WAL and Data  (Piotr Gasidło <quaker@barbara.eu.org>)
List pgsql-general
On Wed, Feb 16, 2011 at 04:40:43PM +0100, Piotr Gasidło wrote:

> Is it safe, to have RAID controller (not BBC) write cache _enabled_
> for disks where data are stored and write cache _disabled_ for disks
> where WAL segments are stored?

No.

> I _can_ afford of loosing some data in case of power failure. But I'm
> afraid of having database in unrecoverable state after crash.

It could be.  Suppose you had the crash at the exact moment when the
the WAL was getting flushed.  Now you'll have a corrupt table.  It
will likely start up, but some time later when someone goes to get
that data, you'll run into a problem.

A battery is one of the simplest and cheapest things you can do to
make your database system more reliable and faster at the same time.

A


--
Andrew Sullivan
ajs@crankycanuck.ca

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: disable triggers using psql
Next
From: Alban Hertroys
Date:
Subject: Re: Multithreaded query onto 4 postgresql instances