Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klEay-00050A-1O for pgsql-admin@arkaria.postgresql.org; Fri, 04 Dec 2020 17:10:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klEax-0007Sa-0K for pgsql-admin@arkaria.postgresql.org; Fri, 04 Dec 2020 17:10:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klEaw-0007ST-NU for pgsql-admin@lists.postgresql.org; Fri, 04 Dec 2020 17:10:10 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1klEat-0000pn-Fn for pgsql-admin@lists.postgresql.org; Fri, 04 Dec 2020 17:10:09 +0000 Received: by mail-ot1-x32e.google.com with SMTP id j12so5847296ota.7 for ; Fri, 04 Dec 2020 09:10:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=xqktiDyYjjVMomFkIlPmCRmIn10g/kNc34Tcm69QLiI=; b=S/+eE7bt1IfKkAD2oNYWDQnGjR+cUKtfuovyuJP+ml2EyrD42tI8LweACDrAlNp+rg ksbnmt/LPlDBGsPyqc1lCyKi0M3gEX7afit28iOsOY6EQF764Hhz/0Wf3SH3Z3f6NZt+ xCZ5XiAXGvhprW7xLyhTyEpWW7jDvBN/S0neOmOAoXvIN6Mw+eynegIvJNCNGSPAPuJG DhSRs6ljxGn/FsMAfso/GB0p+ysjrW64odLtoiQsef48syud+glenqI4uhzz5x0+J2cE BSb+fAkuNiXk0N4Lu3PhaL1r7Z0kiHgVwS78xIc7gZ+BARP8Csu75fypob5sEDItN5ja S7Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=xqktiDyYjjVMomFkIlPmCRmIn10g/kNc34Tcm69QLiI=; b=b0IXGkEwxMlkdk59i6yKV2JpQfnMp7Xkai3na1sJs1OXNJtGD65LE8cwe4O+Pv9lLK ezLoGOqj8dT7dzTY595OjJSA8LSZDNWG04r0VUAUJ0qUqLlvGd7tgMC4qmUxLNSPNjfG Dj1vtY8Jc3oiBxToygfcCC5bFJ4Lp/hPFciYtasWM5s3CwQKq6mP1bfjkcFMVebwsuEt Rc0TEkDSy3HU6TvAZ4sgaKJiUFLmaUgeOIclPirj8AwJAFFV65kcHFDt0B06K7k+WHx+ vARB+1vRRtiqfOFwTAFmCs/meTK+H7rf6gN5v1+Bk0hOe+y3nOG5ASVtD63ALXctMG5q CCug== X-Gm-Message-State: AOAM530mzNSYk9VCbcGqes9DxEE5+w+yaa+plONHEBngzVaNyl4W89fJ 9t04t8qbVjE8w2NmUfX71yfLlkt2xeK/VQ== X-Google-Smtp-Source: ABdhPJyJu9eiRFgOLkyuaERVP0/f/CWUp4L3Djg+8JYiYDL9bLcmpLqn+h4SQrkuMy8WB3ruJFA3pw== X-Received: by 2002:a05:6830:1f1b:: with SMTP id u27mr4397141otg.339.1607101806655; Fri, 04 Dec 2020 09:10:06 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id x66sm750442oig.56.2020.12.04.09.10.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2020 09:10:05 -0800 (PST) Subject: Re: Adding another cluster on same machine To: Pgsql-admin References: <4961e0c7-9d92-0979-31e6-cf64157a4901@gmail.com> From: Ron Message-ID: Date: Fri, 4 Dec 2020 11:10:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------C69E1E0E6D189268E79F050A" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------C69E1E0E6D189268E79F050A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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. --------------C69E1E0E6D189268E79F050A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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> 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.
--------------C69E1E0E6D189268E79F050A--