X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7D081D1B4EA for ; Mon, 6 Oct 2003 15:38:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 91537-01 for ; Mon, 6 Oct 2003 12:37:55 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 50EF1D1B50D for ; Mon, 6 Oct 2003 12:37:55 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h96FahGQ009588; Mon, 6 Oct 2003 09:36:43 -0600 (MDT) Date: Mon, 6 Oct 2003 09:28:34 -0600 (MDT) From: "scott.marlowe" To: Bruno Wolff III Cc: Somasekhar Bangalore , Subject: Re: Need Urgent Help in case of postgres Database Crash. In-Reply-To: <20031006134554.GB25586@wolff.to> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/63 X-Sequence-Number: 10624 On Mon, 6 Oct 2003, Bruno Wolff III wrote: > On Mon, Oct 06, 2003 at 12:28:49 +0530, > Somasekhar Bangalore wrote: > > 1. Steps needed to setup the postgres database , is it posssible for me to write data on to two different disks. if so how? > > > > 2. Steps needed to recover the data in case of database crash or hardware crash. > > If the disks don't get clobbered, you can just restart the server and you > should get back all committed transactions. If you lose the disks (or > commit an undesired transaction), then you will need to go back to the point > of your last backup. If you're using IDE drives, make sure and turn off write caching, otherwise all bets are off as regards data integrity. on linux it's 'hdparm -W0 /dev/hdx' where x is replaced by the drive letter of choice.