Re: Postgresql Replication

From: Alexander Schreiber <als(at)usenet(dot)thangorodrim(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql Replication
Date: 2006-02-22 11:43:52
Message-ID: slrndvojjo.ntm.als@mordor.angband.thangorodrim.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton <dev(at)archonet(dot)com> wrote:
> Nareen S wrote:
>> Current Setup
>> I am having a Mailserver running on Postfix.For the same I had configured a
>> High Availability Solution using Heartbeat and DRBD for
>> replication.Thesetup is like Primary/Secondary Node Servers and all
>> mails are replicated to
>> secondary using DRBD.If primary server fails secondary will be up with mails
>> ..
>> The total number of users is 600 users,and Hardware used is Two Compaq
>> servers with SCSI HDD,1 GB RAM each,
>> Network-100Mbps
>>
>> New Planned Setup
>> Now I am planning for Postgresql server in the same setup.I want to know
>> will it work in the same setup.ie if I configure
>> a new device in drbd can I get HA for postgresql also.If I use DRBD for
>> postgresql also ,will it affects the existing setups.Finally if it is not
>> possible what is the next option for this.
>
> It *should* work as long as you don't start the PostgreSQL server on the
> second machine until you are sure that the first has failed. It will
> then think it is recovering from having crashed.

This is simply not possible. DRBD allows access to the replicated device
only on the primary node and rejects any device access on the secondary
node. So the second machine doesn't even have access to the filesystem
with the PostgreSQL data files. Unless, of course, one accesses the
physical devices below the DRBD layer directly - but when you cheat on
your replication system you're bound to get what you deserve ;-)

Regards,
Alex.
--
"Opportunity is missed by most people because it is dressed in overalls and
looks like work." -- Thomas A. Edison

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Prestation3.EXPLOITATION 2006-02-22 12:03:46 Réf. : Re: Out of memory using ora2pg
Previous Message Prestation3.EXPLOITATION 2006-02-22 10:27:34 Réf. : Re: Out of memory using ora2pg