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 6AA6E32A04D for ; Tue, 5 Oct 2004 18:38:46 +0100 (BST) 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 90600-02 for ; Tue, 5 Oct 2004 17:38:36 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id E4731329FEF for ; Tue, 5 Oct 2004 18:38:36 +0100 (BST) 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 i95HcXbx091595 for ; Tue, 5 Oct 2004 17:38:33 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i95HCgd0084444 for pgsql-admin@postgresql.org; Tue, 5 Oct 2004 17:12:42 GMT From: "Gonzales,S" X-Newsgroups: comp.databases.postgresql.admin Subject: Running 2 postmaster Instances on different ports Date: Tue, 05 Oct 2004 19:12:38 +0200 Organization: BELNET - The Belgian Research Network Lines: 25 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@belnet.be User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; nl-NL; rv:1.7.3) Gecko/20040910 X-Accept-Language: nl-be, nl, en-us, en 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: 200410/145 X-Sequence-Number: 15138 Environement: debian, postgresql 7.4.5 This is my problem: "/etc/init.d/postgresql2 restart Stopping PostgreSQL database server: postmasterpg_ctl: could not find /var/lib/postgres/data2/postmaster.pid Is postmaster running? . Starting PostgreSQL database server: postmaster(FAILED) ERROR: pg_ctl: Another postmaster may be running. Trying to start postmaster anyway. pg_ctl: cannot start postmaster Examine the log output." The problem seems to be the "/etc/postmaster.conf", this file seems to be used by both postmaster instances, but since both postmaster instances have different data-dirs (two different clusters), this is a problem. I would like the two clusters to be started at boottime automatically. I changed all the references in the "/etc/init.d/postgresql2" script to the files in data-dir of second instance (with an adapted copy postmaster.conf), but still this doesnt do the trick. How do i solve this problem?