X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7A474D1B488 for ; Thu, 29 Jul 2004 13:47:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51914-07 for ; Thu, 29 Jul 2004 16:47:20 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id D9273D1B76D for ; Thu, 29 Jul 2004 13:47:19 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i6TGlJqd078202 for ; Thu, 29 Jul 2004 16:47:19 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i6TGTZlr075659 for pgsql-admin@postgresql.org; Thu, 29 Jul 2004 16:29:35 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: replication and linux-ha? Date: Thu, 29 Jul 2004 18:29:10 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 35 Message-ID: <410925D6.5040307@bigfoot.com> References: <200472316751.883245@wood> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Negyesi Karoly User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en In-Reply-To: <200472316751.883245@wood> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/316 X-Sequence-Number: 14384 Negyesi Karoly wrote: > Welcome, > > I am planning to do a linux-ha cluster. Is replication applicable in a > solution like this? The main questions are that after the main node > fails and the slave node becomes the master: > > -- a postmaster, started as slave, will be able to work standalone? > -- after repairing the main node, it will become the slave node, so the > aforementioned postmaster shall become master. Is this possible? > > Thanks > > Karoly Negyei Yes you can, you have to define a service with a IP address, so when the service postgres is relocated in the passive node also the IP is migrated. And you have also to develop a scripts that linux-ha cluster will use in order to know if the service is working. We adopted this solution with the help of a SAN attached with fiber channell (this assure us that only one node can be attached to the common storage) and all is working fine. Regards Gaetano Mendola