X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A6C8C9DC86B for ; Wed, 22 Feb 2006 05:25:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79510-03 for ; Wed, 22 Feb 2006 05:25:49 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8E7C79DC857 for ; Wed, 22 Feb 2006 05:25:46 -0400 (AST) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by svr4.postgresql.org (Postfix) with ESMTP id 0BB715AF02E for ; Wed, 22 Feb 2006 09:25:47 +0000 (GMT) Received: from [213.162.97.75] (helo=mail.metronet.co.uk) by pih-relay04.plus.net with esmtp (Exim) id 1FBqFi-0006sZ-JS; Wed, 22 Feb 2006 09:25:43 +0000 Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 5E9B140C21A; Wed, 22 Feb 2006 09:23:01 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 27A1A15EA6; Wed, 22 Feb 2006 09:23:01 +0000 (GMT) Message-ID: <43FC2D74.60306@archonet.com> Date: Wed, 22 Feb 2006 09:23:00 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Nareen S Cc: pgsql-general@postgresql.org Subject: Re: Postgresql Replication References: <1bc2fddb0602212210m22d6eb14m6df6e63b753b2d1@mail.gmail.com> In-Reply-To: <1bc2fddb0602212210m22d6eb14m6df6e63b753b2d1@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.118 required=5 tests=[AWL=0.118] X-Spam-Score: 0.118 X-Spam-Level: X-Archive-Number: 200602/883 X-Sequence-Number: 91548 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 assuming that drbd doesn't mess with how fsync() works, and I seem to remember it doesn't last time I looked. The alternative (assuming you're using the database for user details/routing etc) would be replication (slony/dbmirror/etc) or perhaps even PITR depending on the rate of change of the database. -- Richard Huxton Archonet Ltd