Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4C65E9FBEB4 for ; Thu, 1 Nov 2007 03:54:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 12490-07 for ; Thu, 1 Nov 2007 03:54:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by postgresql.org (Postfix) with ESMTP id 061369FB8D8 for ; Thu, 1 Nov 2007 03:54:42 -0300 (ADT) Received: from dynamic.hagander.net ([127.0.0.1]) (encrypted and authenticated) by svr2.hagander.net (Postfix) with ESMTP id AA996DCC972; Thu, 1 Nov 2007 07:54:41 +0100 (CET) Message-ID: <4729783A.2030201@hagander.net> Date: Thu, 01 Nov 2007 07:54:50 +0100 From: Magnus Hagander User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Ow Mun Heng CC: Tomas Vondra , Ketema , pgsql-performance@postgresql.org Subject: Re: Hardware for PostgreSQL References: <1193849108.591961.103570@22g2000hsm.googlegroups.com> <4728FAA1.7060905@fuzzy.cz> <1193889182.7999.71.camel@neuromancer.home.net> In-Reply-To: <1193889182.7999.71.camel@neuromancer.home.net> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/4 X-Sequence-Number: 27419 Ow Mun Heng wrote: > On Wed, 2007-10-31 at 22:58 +0100, Tomas Vondra wrote: > >> 2) separate the transaction log from the database >> >> It's mostly written, and it's the most valuable data you have. And in >> case you use PITR, this is the only thing that really needs to be >> backed up. > > My main DB datastore is in a raid1 array and the xlog is still > maintained in a single OS drive. Is this considered OK? Is your OS not RAIDed? I'd keep everything RAIDed one way or another - otherwise you are certain to get downtime if the disk fails. Also, if you don't have a *dedicated* disk for the xlog (putting it on the OS disk doesn't make it dedicated), you miss out on most of the performance advantage of doing it. The advantage is in that the writes will be sequential so the disks don't have to seek, but if you have other access on the same disk, that's not true anymore. You're likely better off (performance-wise) putting it on the same disk as the database itself if that one has better RAID, for example. //Magnus