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 9E5B6D1C4B8 for ; Tue, 29 Jul 2003 20:36:37 +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 96332-04 for ; Tue, 29 Jul 2003 17:35:35 -0300 (ADT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by svr1.postgresql.org (Postfix) with ESMTP id C9570D1C4B7 for ; Tue, 29 Jul 2003 17:36:31 -0300 (ADT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.6) id h6TKZjS27620; Tue, 29 Jul 2003 22:35:45 +0200 Date: Tue, 29 Jul 2003 22:35:45 +0200 From: Ragnar =?unknown-8bit?Q?Kj=F8rstad?= To: Rajesh Kumar Mallah Cc: Renney Thomas , pgsql-admin@postgresql.org Subject: Re: Replication/Failover/HA solution Message-ID: <20030729203545.GE21461@vestdata.no> References: <3F1C6503.9080205@cris.com> <20030729151611.GB21461@vestdata.no> <3F26D81C.7010701@trade-india.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F26D81C.7010701@trade-india.com> User-Agent: Mutt/1.5.2i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/301 X-Sequence-Number: 9641 On Wed, Jul 30, 2003 at 01:55:00AM +0530, Rajesh Kumar Mallah wrote: > >One possibility is to run postgresql (regular postgresql - no patches > >required) controlled by heartbeat (http://www.linux-ha.org/) on two > >nodes. Heartbeat will then make sure that only one of the nodes are > >active at any time. > > > >You will have to put the databases on shared storage; either something > >like a shared SCSI RAID, or a software replication device like drdb or > >md+nbd. > > I think it has been pointed out many times in the list > the running postgresql on a shared storage is dangerous. Running _any_ application on shared storage requires meassures to make sure the data is not corrupted. And yes, it is dangerous unless you get it right. Bascily the problem is that is you are not careful both nodes can start postgresql at once, and they _will_ corrupt the database. The HA-software (like heartbeat) and the fencing-software (like stonith) will take care of this, making it safe. -- Ragnar Kjorstad