Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5BD6F4761F6 for ; Fri, 6 Sep 2002 13:06:34 -0400 (EDT) Received: from smtp001.nwlink.com (smtp001.nwlink.com [209.20.130.75]) by postgresql.org (Postfix) with ESMTP id 75792475E02 for ; Fri, 6 Sep 2002 13:06:33 -0400 (EDT) Received: from keter (ip16.gte14.rb1.bel.nwlink.com [207.202.154.16]) by smtp001.nwlink.com (8.12.2/8.12.2) with SMTP id g86H6WHV020278 for ; Fri, 6 Sep 2002 10:06:33 -0700 From: "Ray Madigan" To: "Pgsql-Admin" Subject: Multiple Postmasters Date: Fri, 6 Sep 2002 10:06:38 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/72 X-Sequence-Number: 5611 I am attempting to create a database server with multiple harddrives where each hard drive has an instance of postmaster managing the database cluster on that drive. Currently i am trying to get this scenario to work with two instances, and after i get confidence that it will work i will do it for more. My environment is Linux 7.1 with PostgreSql 7.0.3 The database superuser is postgres and i create two environment variables for that user PGA=/bar/data PGB=/foo/data export PGA PGB I create the data directory in each area and initdb each of the areas. I copied /etc/rc.d/init.d/postgresql to postgrea and postgreb and changed all references of PGDATA to PGA and PGB respectively. Also changes the hard paths to point to the correct place. I modified postmaster.opts.default to include options for a different port for each instance of postmaster in the appropriate data areas. I linked startup and shutdown deamons in the rc5.d and rc6.d directories, rebooted and linux started each instance of postmaster as expected /usr/bin/postmaster -i -p 5433 /usr/bin/postmaster -i -p 5434 I then logged in as postgres and initlocation on each data area. I then attempted to create a user for each location createuser -p 5433 abc psql: connectDBStart ( ) -- connect() failed: No such file or directory Is the postmaster running at 'localhost' and accepting connections on Unix socket '5433'? createuser: creation of user "abc" failed createuser -p 5434 abc CREATE USER the second instance works and the first instance didn't. Im stumped at this point. Help please.