Re: High availability with Postgres

From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: Elior Soliman <elior(dot)soliman(at)correlix(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: High availability with Postgres
Date: 2010-06-21 19:05:52
Message-ID: AANLkTilzZm3fx2wqkWGSsBxo6jJI-BEk7lE1VmfoKtsY@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, Jun 20, 2010 at 10:36, Elior Soliman <elior(dot)soliman(at)correlix(dot)com> wrote:
> Hello,
>
> My company looking for some solution for High availability with Postgres.
>
> Our optional solution is as follows :
> Two DB servers will be using a common external storage (with raid). Both
> servers are going to use the same DB files on the storage (as
> active/passive)
>
> Now I'm trying to understand how Postgres can work with this configuration.
> I.e :
>
> DB_server1 crashed, so we want to start DB_server2 using same files.
> Is it possible ?

Yeah, I have used linux + heartbeat + stonith (shoot the other node in
the head) successfully in the past. Basically if you do this want
want to be really really really careful that both machines are not
running postgres at the same time.

[ Note, I dont run this any more instead I use a simpler pitr setup.
You can of course still use shared external storage, you just need 2
copies of the database :-( ]

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dai, Tino 2010-06-21 19:25:46 Re: Programatically create, dump, copy to other server and restore database
Previous Message Devrim GÜNDÜZ 2010-06-21 19:03:29 Re: Postgre Server stopped during continuous run.