pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: Renney Thomas <renney@cris.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Replication/Failover/HA solution
Date: Tue, 29 Jul 2003 22:35:45 +0200
Message-ID: <20030729203545.GE21461@vestdata.no> (raw)
In-Reply-To: <3F26D81C.7010701@trade-india.com>
References: <3F1C6503.9080205@cris.com>
	<20030729151611.GB21461@vestdata.no>
	<3F26D81C.7010701@trade-india.com>

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



view thread (15+ messages)  latest in thread

Message-ID: <20030729203545.GE21461@vestdata.no>
Permalink:  ../20030729203545.GE21461@vestdata.no/
Also on:    postgresql.org/message-id/20030729203545.GE21461@vestdata.no

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: postgres@ragnark.vestdata.no, mallah@trade-india.com, renney@cris.com
  Subject: Re: Replication/Failover/HA solution
  In-Reply-To: <20030729203545.GE21461@vestdata.no>
  References: <3F1C6503.9080205@cris.com> <20030729151611.GB21461@vestdata.no> <3F26D81C.7010701@trade-india.com> <20030729203545.GE21461@vestdata.no>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox