pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Adding another cluster on same machine
Date: Fri, 4 Dec 2020 11:10:04 -0600
Message-ID: <df31b124-ef5b-b36d-beee-60994cfb42d9@gmail.com> (raw)
In-Reply-To: <CALhHtcB4_DCP+XrZQLXp2=7uaTgUX5Nq2W0+_aa6Gxi=kpi3OQ@mail.gmail.com>
References: <CALhHtcD9ogRrF1OZqipRx1dvEWiH9Bw_=EzQDX4=jAfo9UPxLQ@mail.gmail.com>
	<4961e0c7-9d92-0979-31e6-cf64157a4901@gmail.com>
	<CALhHtcB4_DCP+XrZQLXp2=7uaTgUX5Nq2W0+_aa6Gxi=kpi3OQ@mail.gmail.com>


The problem *might* be that you have to do the initdb *after* "systemctl 
start  postgresql-10.service".

On 12/4/20 10:20 AM, Yambu wrote:
> Hi
>
> Centos 7
> Postgres v10
>
> yum install postgresql10-server
>
> /usr/pgsql-10/bin/postgresql-10-setup initdb
>
> systemctl enable postgresql-10.service
> systemctl status  postgresql-10.service
> systemctl start  postgresql-10.service
>
> On Fri, Dec 4, 2020 at 3:34 PM Ron <ronljohnsonjr@gmail.com 
> <mailto:ronljohnsonjr@gmail.com>> wrote:
>
>     On 12/4/20 12:27 AM, Yambu wrote:
>     > Hi
>     >
>     > Im trying to add a second cluster on the same machine, but im getting
>     > error below,what could be the problem?
>     >
>     > -bash-4.2$ /usr/pgsql-10/bin/postgresql-10-setup initdb -D
>     > /var/lib/pgsql/10/data-log -p 5433
>     > systemctl: invalid option -- 'D'
>     > failed to find PGDATA setting in -D.service
>
>     What distro (including version!) are you running?
>     How did you install Postgres?
>
>     -- 
>     Angular momentum makes the world go 'round.
>
>

-- 
Angular momentum makes the world go 'round.

view thread (8+ messages)  latest in thread

Message-ID: <df31b124-ef5b-b36d-beee-60994cfb42d9@gmail.com>
Permalink:  ../df31b124-ef5b-b36d-beee-60994cfb42d9@gmail.com/
Also on:    postgresql.org/message-id/df31b124-ef5b-b36d-beee-60994cfb42d9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Adding another cluster on same machine
  In-Reply-To: <df31b124-ef5b-b36d-beee-60994cfb42d9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox