X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B6D21D1B516 for ; Thu, 16 Oct 2003 14:51:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 17849-09 for ; Thu, 16 Oct 2003 11:50:53 -0300 (ADT) Received: from mail6.bluewin.ch (mail6.bluewin.ch [195.186.4.229]) by svr1.postgresql.org (Postfix) with ESMTP id A88CDD1B4E8 for ; Thu, 16 Oct 2003 11:50:48 -0300 (ADT) Received: from bluewin.ch (81.62.80.10) by mail6.bluewin.ch (Bluewin AG 7.0.020) id 3F8C019E0004A9ED for pgsql-admin@postgresql.org; Thu, 16 Oct 2003 14:50:47 +0000 Message-ID: <3F8EB07D.7040603@bluewin.ch> Date: Thu, 16 Oct 2003 16:51:41 +0200 From: Oli Sennhauser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Second postmaster / second DB cluster Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/179 X-Sequence-Number: 10740 Hello Admins I would like to start a second postmaster on my server. First problem was the lock file /tmp/.s.PGSQL.5432.lock and its socket. But you can workaround that by the -k parameter. So I was able to start at least 3 clusters... But then I run into the problem with the psql-Client. It was not able to connect anymore. Finally I was able to isolate the problem on the -k parameter as the commands below show. But without a propper running -k I do not see a proper way to solve the problem. Could someone please explain me, why 1. the lock file is located in /tmp and not e.g. in the preseen directory /var/lock or like ORACLE does in a directory called $PG_BASE/data/CLUSTER1 ? In my opinion /tmp is to dangerous for such a important file? 2. how do I properly start a second postmaster? I found many comments like * Removing the lock file (igitigit!) * "i don't know why you would like to run multiple postmaster" --> In a perfect world there is may be no reason? but now solutions. Thanks for helping Oli Examples nohup postmaster -D /u00/app/pgsql/data/CLUSTER1 \ >>/u00/app/pgsql/data/CLUSTER1/CLUSTER1.log 2>&1 & --> OK nohup postmaster -D /u00/app/pgsql/data/CLUSTER1 \ -p 5432 \ >>/u00/app/pgsql/data/CLUSTER1/CLUSTER1.log 2>&1 & --> OK nohup postmaster -D /u00/app/pgsql/data/CLUSTER1 \ -p 5433 \ >>/u00/app/pgsql/data/CLUSTER1/CLUSTER1.log 2>&1 & --> OK nohup postmaster -D /u00/app/pgsql/data/CLUSTER1 \ -p 5432 \ -k /u00/app/pgsql/data/CLUSTER1 \ >>/u00/app/pgsql/data/CLUSTER1/CLUSTER1.log 2>&1 & --> ERR postgres@master:~/data/CLUSTER1> psql -l psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? ------------------------------------------------------- Oli Sennhauser Database-Engineer (Oracle & PostgreSQL) Rebenweg 6 CH - 8610 Uster Telefon 01 940 24 82 oder 079 450 49 14